From d8c9161dc174e364fc4a3e8e9df1d45262c5cc4a Mon Sep 17 00:00:00 2001 From: murphy Date: Sun, 17 Apr 2011 14:03:02 +0000 Subject: renamed pre_* token kinds to predefined_* --- lib/coderay/scanners/clojure.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay/scanners/clojure.rb') 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) -- cgit v1.2.1