Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Nov 15, 2021
1 parent d25aadc commit 4f65832
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions syntaxes/scarpet.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,30 @@
]
},
{
"match": "(\\w+)(\\(.*?\\))",
"captures": {
"begin": "(\\w+)(\\()",
"end": "\\)",
"beginCaptures": {
"1": {
"name": "entity.name.function"
},
"2": {
"patterns": [{
"include": "#paren-expression"
}]
"name": "punctuation.paren.open"
}
}
},
"endCaptures": {
"0": {
"name": "punctuation.paren.close"
}
},
"contentName": "expression.group",
"patterns": [
{
"include": "#expression"
},
{
"include": "#statements"
}
]
},
{
"name": "variable.name",
Expand All @@ -170,6 +183,16 @@
"name": "string.quoted.single",
"begin": "'",
"end": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end"
}
},
"patterns": [{
"name": "constant.character.escape.scarpet",
"match": "\\\\."
Expand Down

0 comments on commit 4f65832

Please sign in to comment.