diff options
author | murphy <murphy@rubychan.de> | 2011-04-17 14:03:02 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-04-17 14:03:02 +0000 |
commit | d8c9161dc174e364fc4a3e8e9df1d45262c5cc4a (patch) | |
tree | 0f079cd03bb4fb43c36ee5c161b210c7a9cbd189 /lib/coderay/scanners/clojure.rb | |
parent | 84bbaddb495a1657433106a85274424e5a56259e (diff) | |
download | coderay-d8c9161dc174e364fc4a3e8e9df1d45262c5cc4a.tar.gz |
renamed pre_* token kinds to predefined_*
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 a16abdc..4d7ff3e 100644 --- a/lib/coderay/scanners/clojure.rb +++ b/lib/coderay/scanners/clojure.rb @@ -84,7 +84,7 @@ module CodeRay IDENT_KIND = CaseIgnoringWordList.new(:ident). add(SPECIAL_FORMS, :reserved). add(CORE_FORMS, :reserved). - add(PREDEFINED_CONSTANTS, :pre_constant) + add(PREDEFINED_CONSTANTS, :predefined_constant) BASIC_IDENTIFIER = /[a-zA-Z$%*\/_+!?&<>\-=][a-zA-Z0-9$&*+!\/_?<>\-\#]*/ IDENTIFIER = /(?:[@']?(?:#{BASIC_IDENTIFIER}\.)*#{BASIC_IDENTIFIER}(?:\/#{BASIC_IDENTIFIER})?\.?)|\.\.?/ @@ -154,7 +154,7 @@ module CodeRay elsif match = scan(/\#\\(?:newline|space|.?)/) encoder.text_token match, :char elsif match = scan(/\#[ft]/) - encoder.text_token match, :pre_constant + encoder.text_token match, :predefined_constant elsif match = scan(/#{IDENTIFIER}/o) encoder.text_token match, ident_kind[matched] elsif match = scan(/#{SYMBOL}/o) |