numbers
This commit is contained in:
parent
204299827e
commit
896e9a5e45
@ -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": "\"",
|
||||
|
Loading…
x
Reference in New Issue
Block a user