summaryrefslogtreecommitdiff
path: root/lib/coderay
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-02-14 15:09:15 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2016-02-14 15:09:15 +0100
commit6b80e1efb6a44e3eb647eb396499db17cc6def47 (patch)
tree319a8932360156f4bbed88ff0b1a8e661151093d /lib/coderay
parent13ac3fdc6fa5330c9eacc6ac9be92a869ab8d3be (diff)
downloadcoderay-6b80e1efb6a44e3eb647eb396499db17cc6def47.tar.gz
remove obsolete flag, fix order of rules
Diffstat (limited to 'lib/coderay')
-rw-r--r--lib/coderay/scanners/lua2.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/lua2.rb b/lib/coderay/scanners/lua2.rb
index 8426834..1aba769 100644
--- a/lib/coderay/scanners/lua2.rb
+++ b/lib/coderay/scanners/lua2.rb
@@ -82,8 +82,8 @@ module Scanners
on check_if { |brace_depth| brace_depth == 0 }, %r/\}/, :error # Mismatched brace
on %r/\}/, :inline_delimiter, pop, decrement(:brace_depth)
- on %r/'/, push(:single_quoted_string, :string), :delimiter, set(:start_delim, :match) # String delimiters " and '
- on %r/"/, push(:double_quoted_string, :string), :delimiter, set(:start_delim, :match)
+ on %r/"/, push(:double_quoted_string, :string), :delimiter # String delimiters " and '
+ on %r/'/, push(:single_quoted_string, :string), :delimiter
# ↓Prefix hex number ←|→ decimal number
on %r/-? (?:0x\h* \. \h+ (?:p[+\-]?\d+)? | \d*\.\d+ (?:e[+\-]?\d+)?)/ix, :float # hexadecimal constants have no E power, decimal ones no P power
# ↓Prefix hex number ←|→ decimal number