From 6b80e1efb6a44e3eb647eb396499db17cc6def47 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Sun, 14 Feb 2016 15:09:15 +0100 Subject: remove obsolete flag, fix order of rules --- lib/coderay/scanners/lua2.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay') 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 -- cgit v1.2.1