#1 Fix dashes in a pattern not being escaped

Fermé
pgimeno veut fusionner 1 commits à partir de pgimeno/pg-fix-long-comment-dashes vers pgimeno/master
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      data/core/syntax.lua

+ 1 - 1
data/core/syntax.lua

@@ -39,7 +39,7 @@ syntax.add {
     { pattern = { '"', '"', '\\' },       type = "string"   },
     { pattern = { "'", "'", '\\' },       type = "string"   },
     { pattern = { "%[%[", "%]%]" },       type = "string"   },
-    { pattern = { "--%[%[", "%]%]"},      type = "comment"  },
+    { pattern = { "%-%-%[%[", "%]%]" },   type = "comment"  },
     { pattern = "%-%-.-\n",               type = "comment"  },
     { pattern = "-?0x%x+",                type = "number"   },
     { pattern = "-?%d+[%d%.eE]*",         type = "number"   },