File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11%YAML 1.2 
22---
33#  http://www.sublimetext.com/docs/3/syntax.html
4- name : Local  Myst
4+ name : Myst 
55comment : Sublime Syntax highlighting for the Myst programming language. 
66file_extensions :
77  - mt 
@@ -10,6 +10,7 @@ scope: source.myst
1010variables :
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__' 
1415contexts :
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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments