]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/javascript.micro
Update docs and add some comments
[micro.git] / runtime / syntax / javascript.micro
index 02e5f8c2d3e006670f60d627364a1f548ef5f2e9..434b2befb0ef46de8f9f82883f02527dd824e04d 100644 (file)
@@ -1,4 +1,4 @@
-syntax "JavaScript" "\.js$"
+syntax "javascript" "\.js$"
 
 color blue   "\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\b"
 color blue   "\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
@@ -17,4 +17,4 @@ color constant   "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
 color comment "(^|[[:space:]])//.*"
 color comment "/\*.+\*/"
 color todo "TODO:?"
-color constant ""(\\.|[^"])*"|'(\\.|[^'])*'"
+color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"