diff options
author | zeripath <art27@cantab.net> | 2021-12-20 02:49:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 02:49:38 +0000 |
commit | 25677cdc5b11f7100ca2e4b0819e02ca62e22ab1 (patch) | |
tree | 78711f6d0e55eea067a0846460ebcb3b955ccc5f /vendor/github.com/alecthomas/chroma/lexers/circular/php.go | |
parent | fb5f7791ef0c4bd176a031729623c9d0c1310efb (diff) | |
download | gitea-25677cdc5b11f7100ca2e4b0819e02ca62e22ab1.tar.gz gitea-25677cdc5b11f7100ca2e4b0819e02ca62e22ab1.zip |
Update chroma (#18033)
Update chroma to 0.9.4
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'vendor/github.com/alecthomas/chroma/lexers/circular/php.go')
-rw-r--r-- | vendor/github.com/alecthomas/chroma/lexers/circular/php.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/alecthomas/chroma/lexers/circular/php.go b/vendor/github.com/alecthomas/chroma/lexers/circular/php.go index 517fb69077..e4bbc67d94 100644 --- a/vendor/github.com/alecthomas/chroma/lexers/circular/php.go +++ b/vendor/github.com/alecthomas/chroma/lexers/circular/php.go @@ -52,7 +52,7 @@ func phpCommonRules() Rules { {`\d+e[+-]?[0-9]+`, LiteralNumberFloat, nil}, {`0[0-7]+`, LiteralNumberOct, nil}, {`0x[a-f0-9_]+`, LiteralNumberHex, nil}, - {`[\d_]+`, LiteralNumberInteger, nil}, + {`\d[\d_]*`, LiteralNumberInteger, nil}, {`0b[01]+`, LiteralNumberBin, nil}, {`'([^'\\]*(?:\\.[^'\\]*)*)'`, LiteralStringSingle, nil}, {"`([^`\\\\]*(?:\\\\.[^`\\\\]*)*)`", LiteralStringBacktick, nil}, |