This commit is contained in:
sfj 2025-09-10 09:57:36 +02:00
parent 204299827e
commit 896e9a5e45

View File

@ -5,6 +5,12 @@
{
"include": "#keywords"
},
{
"include": "#operators"
},
{
"include": "#numbers"
},
{
"include": "#strings"
},
@ -23,16 +29,32 @@
"name": "keyword.operator.phi",
"match": "\\b(and|or|not)\\b"
},
{
"name": "keyword.operator.phi",
"match": "\\+|\\-|\\*|\\/|=|(\\+=)|(\\-=)|(==)|(!=)|<|>|(<=)|(>=)"
},
{
"name": "constant.phi",
"match": "\\b(null|true|false)\\b"
}
]
},
"operators": {
"patterns": [
{
"name": "keyword.operator.phi",
"match": "\\+|\\-|\\*|\\/|=|(\\+=)|(\\-=)|(==)|(!=)|<|>|(<=)|(>=)"
}
]
},
"numbers": {
"patterns": [
{
"name": "constant.numeric.phi",
"match": "\\b0\\b"
},
{
"name": "constant.numeric.phi",
"match": "\\b[1-9][0-9]*(\\.[0-9]+)?\\b"
}
]
},
"strings": {
"name": "string.quoted.double.phi",
"begin": "\"",