Files
newt/newt-vscode/syntaxes/newt.tmLanguage.json

37 lines
800 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|instance|case|of|let|if|then|else|forall|∀|in|U|module|import|ptype|pfunc|infix|infixl|infixr)\\b"
},
{
"name": "string.js",
"begin": ":=\\s*\"",
"end": "\"",
"patterns": [
{ "include": "source.js" }
]
},
{
"name": "string.newt",
"begin": "\"",
"end": "\""
}
]
}