Skip to content

Commit

Permalink
Update YAML definition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mattmikolay committed Jul 30, 2020
1 parent ba784f6 commit eb85e99
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Octo.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ patterns:

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

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

- comment: Assertion command
name: support.function.octo
match: (?<=^|\s)(?:\:assert)(?=$|\s)

- comment: Memory monitor command
name: support.function.octo
match: (?<=^|\s)(?:\:monitor)(?=$|\s)
Expand Down Expand Up @@ -86,4 +90,10 @@ patterns:
name: entity.name.function.octo
match: (?<=^|\s):\s+\S+(?=$|\s)

...
- comment: String Literals
name: string.quoted.double.octo
begin: '"'
end: '"'
patterns:
- match: \\[tnrv0\\"]
name: constant.character.escape.octo

0 comments on commit eb85e99

Please sign in to comment.