diff options
author | murphy <murphy@rubychan.de> | 2010-10-15 22:53:25 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-10-15 22:53:25 +0000 |
commit | 2652f00e77cc93fc6083c137a18ba0718268ced8 (patch) | |
tree | 01362366c16e17348da9fb83fe5a5babde5c5968 /lib/coderay/scanners/clojure.rb | |
parent | 4a36a3f08860669eed726fbd3b0638717312e03b (diff) | |
download | coderay-2652f00e77cc93fc6083c137a18ba0718268ced8.tar.gz |
Cleanup and fix Clojure scanner.
Diffstat (limited to 'lib/coderay/scanners/clojure.rb')
-rw-r--r-- | lib/coderay/scanners/clojure.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/clojure.rb b/lib/coderay/scanners/clojure.rb index ead788a..a16abdc 100644 --- a/lib/coderay/scanners/clojure.rb +++ b/lib/coderay/scanners/clojure.rb @@ -86,8 +86,8 @@ module CodeRay add(CORE_FORMS, :reserved). add(PREDEFINED_CONSTANTS, :pre_constant) - BASIC_IDENTIFYER = /[a-zA-Z$%*\/_+!?&<>\-=][a-zA-Z0-9ยง$&*+!\/_?<>\-\#]*/ - IDENTIFIER = /(?:[@']?(?:#{BASIC_IDENTIFYER}\.)*#{BASIC_IDENTIFYER}(?:\/#{BASIC_IDENTIFYER})?\.?)|\.\.?/ + BASIC_IDENTIFIER = /[a-zA-Z$%*\/_+!?&<>\-=][a-zA-Z0-9$&*+!\/_?<>\-\#]*/ + IDENTIFIER = /(?:[@']?(?:#{BASIC_IDENTIFIER}\.)*#{BASIC_IDENTIFIER}(?:\/#{BASIC_IDENTIFIER})?\.?)|\.\.?/ SYMBOL = /::?#{IDENTIFIER}/o DIGIT = /\d/ DIGIT10 = DIGIT |