Browse Source

Fix broken comments

masad-frost 7 years ago
parent
commit
18e09b4100
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/clojure/clojure.ts

+ 4 - 4
src/clojure/clojure.ts

@@ -211,10 +211,10 @@ export const language = <ILanguage>{
         ],
 
         comment: [
-            [/[^\(comment]+/, 'comment'],
-            [/\)/, 'comment', '@push'],
-            [/\(comment/, 'comment', '@pop'],
-            [/[\)]/, 'comment'],
+            [/[^comment\(\)]+/, 'comment'],
+            [/\(comment/, 'comment', '@push'],
+            [/\)/, 'comment', '@pop'],
+            [/[comment\(\)]/, 'comment'],
         ],
 
         whitespace: [