diff options
author | Adrian Thurston <thurston@complang.org> | 2011-08-02 05:50:31 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2011-08-02 05:50:31 +0000 |
commit | cc9cbea65918af97006f1acb83f4d6905573e4fb (patch) | |
tree | 35c6cfbc13fd572e727e0e01607cad60b74cf2f0 /colm/lmscan.rl | |
parent | 8ff6331f13faafee0c03213e5d50ca2cba942ff6 (diff) | |
download | colm-cc9cbea65918af97006f1acb83f4d6905573e4fb.tar.gz |
Allow the ending ' of single-literal strings to be omitted. The string ends at
newline, which is consistent with double-literal and tilde-literal strings.
refs #313.
Diffstat (limited to 'colm/lmscan.rl')
-rw-r--r-- | colm/lmscan.rl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/colm/lmscan.rl b/colm/lmscan.rl index 298d1178..4deb3c50 100644 --- a/colm/lmscan.rl +++ b/colm/lmscan.rl @@ -491,7 +491,7 @@ void Scanner::endSection( ) token( '"' ); }; - s_literal => { + "'" ([^'\\\n] | '\\' (any | NL))* ( "'" | NL ) => { token( TK_Literal, ts, te ); }; |