@@ -137,7 +137,7 @@ CodeMirror.defineMode("clojure", function (options) {
137137 "with-local-vars" , "with-meta" , "with-open" , "with-out-str" ,
138138 "with-precision" , "with-redefs" , "with-redefs-fn" , "xml-seq" , "zero?" ,
139139 "zipmap" ] ;
140- var formsThatHaveBodyParameter = [
140+ var haveBodyParameter = [
141141 "binding" , "bound-fn" , "case" , "catch" , "comment" , "cond" , "cond->" ,
142142 "cond->>" , "condp" , "def" , "definterface" , "defmethod" , "defn" ,
143143 "defmacro" , "defprotocol" , "defrecord" , "defstruct" , "deftype" , "do" ,
@@ -153,9 +153,9 @@ CodeMirror.defineMode("clojure", function (options) {
153153 var atom = createLookupMap ( atoms ) ;
154154 var specialForm = createLookupMap ( specialForms ) ;
155155 var coreSymbol = createLookupMap ( coreSymbols ) ;
156- var hasBodyParameter = createLookupMap ( formsThatHaveBodyParameter ) ;
156+ var hasBodyParameter = createLookupMap ( haveBodyParameter ) ;
157157 var numberLiteral = / ^ [ + \- ] ? \d + (?: (?: N | (?: [ e E ] [ + \- ] ? \d + ) ) | (?: \. ? \d * (?: M | (?: [ e E ] [ + \- ] ? \d + ) ) ? ) | \/ \d + | [ x X ] [ 0 - 9 a - f A - F ] + | r [ 0 - 9 a - z A - Z ] + ) ? / ;
158- var symbol = / [ ! # ' * + \- . \/ : < > ? _ \w \xa1 - \uffff ] / ;
158+ var symbolCharacter = / [ ! # ' * + \- . \/ : < > ? _ \w \xa1 - \uffff ] / ;
159159
160160 function base ( stream , state ) {
161161 if ( stream . eatSpace ( ) ) return [ "space" , null ] ;
@@ -170,12 +170,12 @@ CodeMirror.defineMode("clojure", function (options) {
170170 if ( ch === ";" ) { stream . skipToEnd ( ) ; return [ "space" , "comment" ] ; }
171171 if ( is ( ch , / [ # ' @ ^ ` ~ ] / ) ) return [ null , "meta" ] ;
172172
173- var name = readSymbol ( stream ) ;
173+ var symbol = readSymbol ( stream ) ;
174174
175- if ( name === "comment" && state . lastToken === "(" )
175+ if ( symbol === "comment" && state . lastToken === "(" )
176176 return ( state . tokenize = inComment ) ( stream , state ) ;
177- if ( is ( name , atom ) || name . charAt ( 0 ) === ":" ) return [ "symbol" , "atom" ] ;
178- if ( is ( name , specialForm ) || is ( name , coreSymbol ) ) return [ "symbol" , "keyword" ] ;
177+ if ( is ( symbol , atom ) || symbol . charAt ( 0 ) === ":" ) return [ "symbol" , "atom" ] ;
178+ if ( is ( symbol , specialForm ) || is ( symbol , coreSymbol ) ) return [ "symbol" , "keyword" ] ;
179179 if ( state . lastToken === "(" ) return [ "symbol" , "builtin" ] ; // other operator
180180
181181 return [ "symbol" , "variable" ] ;
@@ -214,7 +214,7 @@ CodeMirror.defineMode("clojure", function (options) {
214214
215215 while ( ch = stream . next ( ) ) {
216216 if ( ch === "\\" ) stream . next ( ) ;
217- else if ( ! is ( ch , symbol ) ) { stream . backUp ( 1 ) ; break ; }
217+ else if ( ! is ( ch , symbolCharacter ) ) { stream . backUp ( 1 ) ; break ; }
218218 }
219219
220220 return stream . current ( ) ;
0 commit comments