浏览代码

Fix broken comments

masad-frost 7 年之前
父节点
当前提交
18e09b4100
共有 1 个文件被更改,包括 4 次插入4 次删除
  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: [