From: Lars Müller <34514239+appgurueu@users.noreply.github.com> Date: Sun, 15 May 2022 20:00:29 +0000 (+0200) Subject: Fix syntax highlighting of single-quoted strings (#2425) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=176d1aa17a606dbd5d3e348a6f226ac39a8976f0;p=micro.git Fix syntax highlighting of single-quoted strings (#2425) --- diff --git a/runtime/syntax/php.yaml b/runtime/syntax/php.yaml index 82fd443a..56b003f2 100644 --- a/runtime/syntax/php.yaml +++ b/runtime/syntax/php.yaml @@ -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:]])#.*"