| 247 | } |
| 248 | |
| 249 | function tokenLexer(stream, state) { |
| 250 | indentInfo = null; |
| 251 | var style = state.tokenize(stream, state); |
| 252 | var current = stream.current(); |
| 253 | |
| 254 | // Handle '.' connected identifiers |
| 255 | if (current === '.') { |
| 256 | style = stream.match(identifiers, false) ? null : ERRORCLASS; |
| 257 | if (style === null && state.lastStyle === 'meta') { |
| 258 | // Apply 'meta' style to '.' connected identifiers when |
| 259 | // appropriate. |
| 260 | style = 'meta'; |
| 261 | } |
| 262 | return style; |
| 263 | } |
| 264 | |
| 265 | return style; |
| 266 | } |
| 267 | |
| 268 | var external = { |
| 269 | startState: function() { |