You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
4.6 KiB
JSON
127 lines
4.6 KiB
JSON
3 years ago
|
{
|
||
|
"case_insensitive": true,
|
||
|
"keywords": {
|
||
|
"keyword": "div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",
|
||
|
"literal": "false true"
|
||
|
},
|
||
|
"illegal": "\\\/\\*",
|
||
|
"contains": [
|
||
|
{
|
||
|
"className": "string",
|
||
|
"begin": "'",
|
||
|
"end": "'",
|
||
|
"contains": [
|
||
|
{
|
||
|
"begin": "''"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"className": "string",
|
||
|
"begin": "(#\\d+)+"
|
||
|
},
|
||
|
{
|
||
|
"className": "number",
|
||
|
"begin": "\\b\\d+(\\.\\d+)?(DT|D|T)",
|
||
|
"relevance": 0
|
||
|
},
|
||
|
{
|
||
|
"className": "string",
|
||
|
"begin": "\"",
|
||
|
"end": "\""
|
||
|
},
|
||
|
{
|
||
|
"className": "number",
|
||
|
"begin": "\\b\\d+(\\.\\d+)?",
|
||
|
"relevance": 0
|
||
|
},
|
||
|
{
|
||
|
"className": "class",
|
||
|
"begin": "OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",
|
||
|
"returnBegin": true,
|
||
|
"contains": [
|
||
|
{
|
||
|
"className": "title",
|
||
|
"begin": "[a-zA-Z]\\w*",
|
||
|
"relevance": 0
|
||
|
},
|
||
|
{
|
||
|
"className": "function",
|
||
|
"beginKeywords": "procedure",
|
||
|
"end": "[:;]",
|
||
|
"keywords": "procedure|10",
|
||
|
"contains": [
|
||
|
{
|
||
|
"$ref": "#contains.5.contains.0"
|
||
|
},
|
||
|
{
|
||
|
"className": "params",
|
||
|
"begin": "\\(",
|
||
|
"end": "\\)",
|
||
|
"keywords": "div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",
|
||
|
"contains": [
|
||
|
{
|
||
|
"$ref": "#contains.0"
|
||
|
},
|
||
|
{
|
||
|
"$ref": "#contains.1"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"className": "comment",
|
||
|
"begin": "\/\/",
|
||
|
"end": "$",
|
||
|
"contains": [
|
||
|
{
|
||
|
"begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
|
||
|
},
|
||
|
{
|
||
|
"className": "doctag",
|
||
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
||
|
"relevance": 0
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"className": "comment",
|
||
|
"begin": "\\{",
|
||
|
"end": "\\}",
|
||
|
"contains": [
|
||
|
{
|
||
|
"$ref": "#contains.5.contains.1.contains.2.contains.0"
|
||
|
},
|
||
|
{
|
||
|
"className": "doctag",
|
||
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
||
|
"relevance": 0
|
||
|
}
|
||
|
],
|
||
|
"relevance": 0
|
||
|
},
|
||
|
{
|
||
|
"className": "comment",
|
||
|
"begin": "\\(\\*",
|
||
|
"end": "\\*\\)",
|
||
|
"contains": [
|
||
|
{
|
||
|
"$ref": "#contains.5.contains.1.contains.2.contains.0"
|
||
|
},
|
||
|
{
|
||
|
"className": "doctag",
|
||
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
||
|
"relevance": 0
|
||
|
}
|
||
|
],
|
||
|
"relevance": 10
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"$ref": "#contains.5.contains.1"
|
||
|
}
|
||
|
]
|
||
|
}
|