numbers
This commit is contained in:
parent
204299827e
commit
896e9a5e45
@ -5,6 +5,12 @@
|
|||||||
{
|
{
|
||||||
"include": "#keywords"
|
"include": "#keywords"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"include": "#operators"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#numbers"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"include": "#strings"
|
"include": "#strings"
|
||||||
},
|
},
|
||||||
@ -23,16 +29,32 @@
|
|||||||
"name": "keyword.operator.phi",
|
"name": "keyword.operator.phi",
|
||||||
"match": "\\b(and|or|not)\\b"
|
"match": "\\b(and|or|not)\\b"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "keyword.operator.phi",
|
|
||||||
"match": "\\+|\\-|\\*|\\/|=|(\\+=)|(\\-=)|(==)|(!=)|<|>|(<=)|(>=)"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "constant.phi",
|
"name": "constant.phi",
|
||||||
"match": "\\b(null|true|false)\\b"
|
"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": {
|
"strings": {
|
||||||
"name": "string.quoted.double.phi",
|
"name": "string.quoted.double.phi",
|
||||||
"begin": "\"",
|
"begin": "\"",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user