Skip to content

Commit bd4954b

Browse files
committed
Don't use Local Myst as a name -.-
1 parent 069898e commit bd4954b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

myst.sublime-syntax

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%YAML 1.2
22
---
33
# http://www.sublimetext.com/docs/3/syntax.html
4-
name: Local Myst
4+
name: Myst
55
comment: Sublime Syntax highlighting for the Myst programming language.
66
file_extensions:
77
- mt
@@ -10,6 +10,7 @@ scope: source.myst
1010
variables:
1111
def_op: '\!|\+|\-|\*|\/|\%|\[\]=?|==|!='
1212
identifier: '([a-zA-Z][a-zA-Z0-9]*|_[a-zA-Z0-9]*)'
13+
constant: '[A-Z][_a-zA-Z0-9]*'
1314
magic_constants: '__LINE__|__FILE__|__DIR__'
1415
contexts:
1516
main:
@@ -88,7 +89,7 @@ contexts:
8889
- match: \bfn\b
8990
scope: keyword.control.anonymous.myst
9091
push: anonymous_function
91-
- match: ^\s*(deftype|defmodule)\W([A-Z][_a-zA-Z0-9]*)
92+
- match: ^\s*(deftype|defmodule)\W([A-Z][_a-zA-Z0-9]*)(\s\:\s ())?)
9293
captures:
9394
1: keyword.control.type.myst
9495
# Both `type` and `class` are added so that Sublime sees type

0 commit comments

Comments
 (0)