Skip to content

Commit

Permalink
feature: add multiline support (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvalabs-sarthak authored Dec 27, 2023
1 parent ff69727 commit 3537057
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions syntaxes/coco.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,40 +402,43 @@
"patterns": [
{
"name": "string.quoted.other.multiline.coco",
"begin": "f\"",
"end": "\"",
"begin": "{",
"end": "}",
"patterns": [
{
"name": "embedded-expression",
"begin": "\\{",
"end": "\\}",
"patterns": [
{
"include": "source.coco"
}
]
},
{
"name": "punctuation.other.bracket.curly.coco",
"match": "\\{|\\}"
},
{
"match": "(?=\")",
"name": "string.quoted.other.multiline.coco",
"pop": true
"include": "source.coco"
}
]
},
{
"name": "punctuation.other.bracket.curly.coco",
"match": "\\{|\\}"
},
{
"match": "[^\"{\\\\}]+|\\{",
"name": "string.quoted.other.multiline.coco"
},
{
"match": "\\\\.",
"name": "constant.character.escape.coco"
},
{
"match": "(?=\")",
"name": "string.quoted.other.multiline.coco",
"pop": true
}
]
},
{
"name": "constant.character.escape.coco",
"match": "\\\\."
},
{
"name": "string.quoted.double.coco",
"begin": "\"",
"end": "\""
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.coco",
"match": "\\\\."
}
]
}
]
},
Expand Down

0 comments on commit 3537057

Please sign in to comment.