Skip to content

Commit

Permalink
Update all the keywords in language server
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Nov 11, 2023
1 parent 7cc712a commit adf03d8
Showing 1 changed file with 49 additions and 9 deletions.
58 changes: 49 additions & 9 deletions syntaxes/3body.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,34 @@
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.3body",
"match": "\\b(if|while|for|return)\\b"
"name": "keyword.control.basic",
"match": "\\b(if|else|return)\\b"
}, {
"name": "keyword.reserved.basic",
"match": "\\b(let)\\b"
}, {
"name": "keyword.opeator.basic",
"match": "\\b(>|<|==)\\b"
}]
},
"strings": {
"name": "string.quoted.double.3body",
"begin": "\"",
"end": "\"",
"operators": {
"patterns": [
{
"name": "constant.character.escape.3body",
"match": "\\\\."
"match": "!=|<=|>=|==|<|>",
"name": "keyword.operator.comparison.basic"
},
{
"match": "%|\\*|/|-|\\+|前进|降维",
"name": "keyword.operator.basic"
}
]
}
},
"scopeName": "text.3body.basic",
"patterns": [
{
"include": "#keywords"
},
{
"begin": "\"",
"beginCaptures": {
Expand All @@ -38,9 +48,36 @@
"name": "string.quoted.double.3body"
},
{
"match": "(面壁|破壁|延绪)",
"match": "\\b(面壁|破壁|延绪)\\b",
"name": "keyword.control.3body"
},
{
"match": "\\b(给|思想钢印|法则)\\b",
"name": "keyword.reserved.3body"
},
{
"match": "\\b(这是计划的一部分)\\b",
"name": "constant.language.boolean.true.3body"
},
{
"match": "\\b(主不在乎)\\b",
"name": "constant.language.boolean.false.3body"
},
{
"match": "\\b(广播|冬眠|二向箔清理|毁灭|没关系的都一样)\\b",
"name": "support.function.builtin.coffee"
},
{
"match": "([\u4e00-\u9fa5_a-zA-Z0-9$_][\\w$]*)?\\s*(=|以)",
"captures": {
"1": {
"name": "variable.assignment.3body"
},
"2": {
"name": "keyword.operator.assignment.3body"
}
}
},
{
"begin": "//",
"beginCaptures": {
Expand All @@ -50,6 +87,9 @@
},
"end": "$",
"name": "comment.line.number-sign.3body"
},
{
"include": "#operators"
}
]
}

0 comments on commit adf03d8

Please sign in to comment.