Differences From Artifact [165f2920b68bc5f6]:
- File
polemy/lex.d
- 2010-11-21 11:11:49 - part of checkin [2bdfb8a182] on branch trunk - moved build sciprt for documents into Poseidon environment (user: kinaba) [annotate]
To Artifact [ad028a2a26b6c7bc]:
- File
polemy/lex.d
- 2010-11-21 14:24:33 - part of checkin [3995a5eb6a] on branch trunk - added iikagen pattern match (user: kinaba) [annotate]
109 109 this.current = (current is null ? readNext() : current);
110 110 }
111 111
112 112 public static
113 113 {
114 114 bool isSpace (dchar c) { return std.ctype.isspace(c)!=0; }
115 115 bool isSymbol (dchar c) { return 0x21<=c && c<=0x7f && !std.ctype.isalnum(c) && c!='_' && c!='\''; }
116 - bool isSSymbol (dchar c) { return "()[]{};@".canFind(c); }
116 + bool isSSymbol (dchar c) { return "()[]{};,@".canFind(c); }
117 117 bool isMSymbol (dchar c) { return isSymbol(c) && !isSSymbol(c) && c!='"' && c!='#'; }
118 118 bool isLetter (dchar c) { return !isSpace(c) && !isSymbol(c); }
119 119 }
120 120
121 121 string readQuoted(const LexPosition pos){char[] buf; return readQuoted(pos,buf);}
122 122 string readQuoted(const LexPosition pos, ref char[] buf)
123 123 {