public
Created

Hacked my way around not being able to have obj.default() as a method call.. probably would need to add more scope around this however

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11
--- lexer.l.orig 2011-10-07 14:48:04.000000000 +0000
+++ lexer.l 2011-10-07 14:53:36.000000000 +0000
@@ -23,7 +23,7 @@
<INITIAL>"finally" return 'FINALLY';
<INITIAL>"case" return 'CASE';
<INITIAL>"switch" return 'SWITCH';
-<INITIAL>"default" return 'DEFAULT';
+<INITIAL>[^\.]"default" { return 'DEFAULT'; }
<INITIAL>"this" return 'THIS';
<INITIAL>"with" return 'WITH';
<INITIAL>"#!"[ ]*[/].* return 'SHBANG';

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.