37 lines
1014 B
JSON
37 lines
1014 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
"name": "Q&",
|
|
"patterns": [
|
|
{
|
|
"name": "keyword.control.qamp",
|
|
"match": "\\b(if|else|while|return|function|fq|funq|do|for|print)\\b"
|
|
},
|
|
{
|
|
"name": "number.literal.qamp",
|
|
"match": "\\b(\\d+?)\\b"
|
|
},
|
|
{
|
|
"name": "string.quoted.double.qamp",
|
|
"begin": "\"",
|
|
"end": "\"",
|
|
"patterns": [
|
|
{
|
|
"name": "constant.character.escape.qamp",
|
|
"match": "\\\\."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "string.quoted.single.qamp",
|
|
"begin": "'",
|
|
"end": "'",
|
|
"patterns": [
|
|
{
|
|
"name": "constant.character.escape.qamp",
|
|
"match": "\\\\."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"scopeName": "source.qamp"
|
|
} |