(indentation, multiLine)
| 46 | } |
| 47 | } |
| 48 | function comment(indentation, multiLine) { |
| 49 | return function(stream, state) { |
| 50 | if (stream.sol() && stream.indentation() <= indentation) { |
| 51 | state.tokenizer = tokenBase; |
| 52 | return tokenBase(stream, state); |
| 53 | } |
| 54 | |
| 55 | if (multiLine && stream.skipTo("*/")) { |
| 56 | stream.next(); |
| 57 | stream.next(); |
| 58 | state.tokenizer = tokenBase; |
| 59 | } else { |
| 60 | stream.skipToEnd(); |
| 61 | } |
| 62 | |
| 63 | return "comment"; |
| 64 | }; |
| 65 | } |
| 66 | |
| 67 | function buildStringTokenizer(quote, greedy) { |
| 68 | if (greedy == null) { greedy = true; } |