]> git.lizzy.rs Git - micro.git/commitdiff
Fix syntax highlighting of single-quoted strings (#2425)
authorLars Müller <34514239+appgurueu@users.noreply.github.com>
Sun, 15 May 2022 20:00:29 +0000 (22:00 +0200)
committerGitHub <noreply@github.com>
Sun, 15 May 2022 20:00:29 +0000 (13:00 -0700)
runtime/syntax/php.yaml

index 82fd443a6981d7a9be55e421148dab81113c2b50..56b003f2906ae9f494faed871009666cd2e139a2 100644 (file)
@@ -38,6 +38,12 @@ rules:
         skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]"
+    - constant.string:
+        start: "\'"
+        end: "\'"
+        skip: "\\\\."
+        rules:
+            - constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]"
     - symbol.brackets: "(\\[|\\]|\\{|\\}|[()])"
     - comment: "(^|[[:space:]])//.*"
     - comment: "(^|[[:space:]])#.*"