Add vscode extension, command line argument, and positioned error handling.
This commit is contained in:
48
newt-vscode/syntaxes/newt.tmLanguage.json
Normal file
48
newt-vscode/syntaxes/newt.tmLanguage.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"$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": "variable.other.constant",
|
||||
"match": "([\\w]+)\\."
|
||||
},
|
||||
{
|
||||
"name": "entity.name.variable",
|
||||
"match": "\\.([\\w]+)"
|
||||
},
|
||||
{
|
||||
"name": "punctuation",
|
||||
"match": ":|=>|\\"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.operator.newt",
|
||||
"match": "[\\p{Math}:!#$%&*+.,/<=>?@\\^|-]+"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "keyword.command.newt",
|
||||
"match": "\\b(module)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.newt",
|
||||
"match": "\\b(data)\\b"
|
||||
},
|
||||
// {
|
||||
// "name": "variable.other.constant.newt",
|
||||
// "match": "\\b(Type|Id|refl|sym|Gel|ungel)\\b",
|
||||
// "comment": "These are in the emacs mode, but some are user defined"
|
||||
// }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user