Skip to content

Commit eb85e99

Browse files
committed
Update YAML definition
This commit updates the Octo-YAML.tmLanguage definition to add support for string literals, :stringmode, and :assert, based upon John's changes to the XML in #2.
1 parent ba784f6 commit eb85e99

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Octo.YAML-tmLanguage

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,16 @@ patterns:
4444

4545
- comment: Metaprogramming commands
4646
name: support.function.octo
47-
match: (?<=^|\s)(?:\:macro|\:calc|\:byte)(?=$|\s)
47+
match: (?<=^|\s)(?:\:macro|\:calc|\:byte|\:stringmode)(?=$|\s)
4848

4949
- comment: Breakpoint command
5050
name: support.function.octo
5151
match: (?<=^|\s)(?:\:breakpoint)(?=$|\s)
5252

53+
- comment: Assertion command
54+
name: support.function.octo
55+
match: (?<=^|\s)(?:\:assert)(?=$|\s)
56+
5357
- comment: Memory monitor command
5458
name: support.function.octo
5559
match: (?<=^|\s)(?:\:monitor)(?=$|\s)
@@ -86,4 +90,10 @@ patterns:
8690
name: entity.name.function.octo
8791
match: (?<=^|\s):\s+\S+(?=$|\s)
8892

89-
...
93+
- comment: String Literals
94+
name: string.quoted.double.octo
95+
begin: '"'
96+
end: '"'
97+
patterns:
98+
- match: \\[tnrv0\\"]
99+
name: constant.character.escape.octo

0 commit comments

Comments
 (0)