@@ -42,42 +42,34 @@ CodeMirror.defineMode("tcl", function() {
4242 var beforeParams = state . beforeParams ;
4343 state . beforeParams = false ;
4444 var ch = stream . next ( ) ;
45- if ( ( ch == '"' || ch == "'" ) && state . inParams )
45+ if ( ( ch == '"' || ch == "'" ) && state . inParams ) {
4646 return chain ( stream , state , tokenString ( ch ) ) ;
47- else if ( / [ \[ \] { } \( \) , ; \. ] / . test ( ch ) ) {
47+ } else if ( / [ \[ \] { } \( \) , ; \. ] / . test ( ch ) ) {
4848 if ( ch == "(" && beforeParams ) state . inParams = true ;
4949 else if ( ch == ")" ) state . inParams = false ;
5050 return null ;
51- }
52- else if ( / \d / . test ( ch ) ) {
51+ } else if ( / \d / . test ( ch ) ) {
5352 stream . eatWhile ( / [ \w \. ] / ) ;
5453 return "number" ;
55- }
56- else if ( ch == "#" && stream . eat ( "*" ) ) {
54+ } else if ( ch == "#" && stream . eat ( "*" ) ) {
5755 return chain ( stream , state , tokenComment ) ;
58- }
59- else if ( ch == "#" && stream . match ( / * \[ * \[ / ) ) {
56+ } else if ( ch == "#" && stream . match ( / * \[ * \[ / ) ) {
6057 return chain ( stream , state , tokenUnparsed ) ;
61- }
62- else if ( ch == "#" && stream . eat ( "#" ) ) {
58+ } else if ( ch == "#" && stream . eat ( "#" ) ) {
6359 stream . skipToEnd ( ) ;
6460 return "comment" ;
65- }
66- else if ( ch == '"' ) {
61+ } else if ( ch == '"' ) {
6762 stream . skipTo ( / " / ) ;
6863 return "comment" ;
69- }
70- else if ( ch == "$" ) {
64+ } else if ( ch == "$" ) {
7165 stream . eatWhile ( / [ $ _ a - z 0 - 9 A - Z \. { : ] / ) ;
7266 stream . eatWhile ( / } / ) ;
7367 state . beforeParams = true ;
7468 return "builtin" ;
75- }
76- else if ( isOperatorChar . test ( ch ) ) {
69+ } else if ( isOperatorChar . test ( ch ) ) {
7770 stream . eatWhile ( isOperatorChar ) ;
7871 return "comment" ;
79- }
80- else {
72+ } else {
8173 stream . eatWhile ( / [ \w \$ _ { } \xa1 - \uffff ] / ) ;
8274 var word = stream . current ( ) . toLowerCase ( ) ;
8375 if ( keywords && keywords . propertyIsEnumerable ( word ) )
0 commit comments