diff options
author | murphy <murphy@rubychan.de> | 2010-10-15 22:52:46 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-10-15 22:52:46 +0000 |
commit | 4a36a3f08860669eed726fbd3b0638717312e03b (patch) | |
tree | e895a7da227f4abe42c68a3ccd74d18dde746a4b /lib/coderay/scanners | |
parent | 4aabd0a914459291a3a38ab769b4554d2a2a6dc5 (diff) | |
download | coderay-4a36a3f08860669eed726fbd3b0638717312e03b.tar.gz |
Cleanup CSS scanner.
Diffstat (limited to 'lib/coderay/scanners')
-rw-r--r-- | lib/coderay/scanners/css.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/coderay/scanners/css.rb b/lib/coderay/scanners/css.rb index b3f116e..5222c3c 100644 --- a/lib/coderay/scanners/css.rb +++ b/lib/coderay/scanners/css.rb @@ -14,12 +14,11 @@ module Scanners ] # :nodoc: module RE # :nodoc: - NonASCII = /[\x80-\xFF]/ Hex = /[0-9a-fA-F]/ Unicode = /\\#{Hex}{1,6}(?:\r\n|\s)?/ # differs from standard because it allows uppercase hex too Escape = /#{Unicode}|\\[^\r\n\f0-9a-fA-F]/ - NMChar = /[-_a-zA-Z0-9]|#{NonASCII}|#{Escape}/ - NMStart = /[_a-zA-Z]|#{NonASCII}|#{Escape}/ + NMChar = /[-_a-zA-Z0-9]|#{Escape}/ + NMStart = /[_a-zA-Z]|#{Escape}/ NL = /\r\n|\r|\n|\f/ String1 = /"(?:[^\n\r\f\\"]|\\#{NL}|#{Escape})*"?/ # FIXME: buggy regexp String2 = /'(?:[^\n\r\f\\']|\\#{NL}|#{Escape})*'?/ # FIXME: buggy regexp |