- forward declaration of records - fixes to projections - drop record accessors (use projections instead) - changes to names to disambiguate
37 lines
899 B
JSON
37 lines
899 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|record|constructor|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.single.newt",
|
|
"match": "'(.|\\\\.)'"
|
|
},
|
|
{
|
|
"name": "string.double.newt",
|
|
"match": "\"(.|\\\\.)\""
|
|
}
|
|
]
|
|
}
|