37 lines
820 B
JSON
37 lines
820 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
"name": "newt",
|
|
"scopeName": "source.newt",
|
|
"patterns": [
|
|
{
|
|
"name": "comment.block.newt",
|
|
"begin": "/-",
|
|
"end": "-/",
|
|
"contentName": "comment.block.newt"
|
|
},
|
|
{
|
|
"name": "comment.line.newt",
|
|
"begin": "--",
|
|
"end": "\\n"
|
|
},
|
|
{
|
|
"name": "keyword.newt",
|
|
"match": "\\b(λ|=>|<-|->|→|:=|\\$|data|where|do|class|uses|instance|case|of|let|if|then|else|forall|∀|in|U|module|import|ptype|pfunc|infix|infixl|infixr)\\b"
|
|
},
|
|
{
|
|
"name": "string.js",
|
|
"begin": "`",
|
|
"end": "`",
|
|
"patterns": [
|
|
{ "include": "source.js" }
|
|
]
|
|
},
|
|
{
|
|
"name": "string.newt",
|
|
"begin": "\"",
|
|
"end": "\""
|
|
}
|
|
|
|
]
|
|
}
|