Skip to content

Commit

Permalink
Fix multi line literal expressions within ruby expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon J committed Oct 17, 2024
1 parent a42c3fe commit 67be1c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
58 changes: 29 additions & 29 deletions src/main/gen/com/mwnciau/rblade/RBladeLexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,35 +177,35 @@ private static int zzUnpackRowMap(String packed, int offset, int [] result) {
"\12\6\1\7\2\6\1\10\14\6\1\11\1\6\3\12"+
"\1\13\1\14\1\12\1\15\1\16\1\17\4\12\1\20"+
"\15\12\1\21\3\22\1\23\2\22\1\24\1\22\1\25"+
"\4\22\1\26\15\22\1\27\2\30\1\22\2\30\1\31"+
"\21\30\1\32\4\30\4\33\1\34\1\33\1\35\23\33"+
"\1\36\1\37\12\6\1\0\2\6\1\0\14\6\1\0"+
"\1\6\6\0\1\40\43\0\6\41\1\42\2\41\1\0"+
"\1\41\1\42\5\0\1\43\26\0\1\44\1\0\4\12"+
"\1\0\1\12\3\0\4\12\1\0\15\12\1\0\3\12"+
"\1\45\1\0\1\12\3\0\4\12\1\0\15\12\35\0"+
"\2\14\1\0\11\14\1\17\5\14\1\46\6\14\1\46"+
"\2\14\21\0\1\47\45\0\1\17\3\0\1\50\44\0"+
"\1\25\40\0\1\51\45\0\1\25\32\0\1\52\1\0"+
"\2\53\1\0\31\53\4\33\1\0\1\33\1\0\23\33"+
"\2\0\2\34\1\0\17\34\1\54\6\34\1\54\2\34"+
"\5\0\1\55\5\0\1\56\21\0\1\57\5\0\1\60"+
"\6\0\11\41\1\0\2\41\3\0\1\57\5\0\1\60"+
"\6\0\7\41\1\61\1\41\1\0\2\41\5\0\1\62"+
"\41\0\1\63\22\0\4\12\1\0\1\12\3\0\4\12"+
"\1\0\15\12\1\17\2\14\1\0\31\14\23\0\1\64"+
"\33\0\1\65\10\0\2\34\1\0\31\34\6\55\1\66"+
"\25\55\13\0\1\67\21\0\1\57\5\0\1\60\25\0"+
"\1\57\5\0\1\60\6\0\1\41\1\70\7\41\1\0"+
"\2\41\13\0\1\71\42\0\1\72\33\0\1\73\13\0"+
"\6\55\1\66\5\55\1\74\17\55\1\0\1\57\5\0"+
"\1\60\6\0\10\41\1\75\1\0\2\41\2\0\11\71"+
"\1\76\22\71\24\0\1\77\3\0\1\100\1\77\26\0"+
"\1\101\3\0\1\102\1\101\2\0\11\71\1\103\22\71"+
"\25\0\1\104\32\0\1\77\4\0\1\77\27\0\1\105"+
"\32\0\1\101\4\0\1\101\2\0\11\71\1\103\21\71"+
"\1\106\17\0\1\107\33\0\1\110\14\0\11\71\1\76"+
"\21\71\1\111\26\0\1\17\33\0\1\25\5\0";
"\4\22\1\26\15\22\1\27\5\30\1\31\21\30\1\32"+
"\4\30\4\33\1\34\1\33\1\35\23\33\1\36\1\37"+
"\12\6\1\0\2\6\1\0\14\6\1\0\1\6\6\0"+
"\1\40\43\0\6\41\1\42\2\41\1\0\1\41\1\42"+
"\5\0\1\43\26\0\1\44\1\0\4\12\1\0\1\12"+
"\3\0\4\12\1\0\15\12\1\0\3\12\1\45\1\0"+
"\1\12\3\0\4\12\1\0\15\12\35\0\2\14\1\0"+
"\11\14\1\17\5\14\1\46\6\14\1\46\2\14\21\0"+
"\1\47\45\0\1\17\3\0\1\50\44\0\1\25\40\0"+
"\1\51\45\0\1\25\32\0\1\52\1\0\34\53\4\33"+
"\1\0\1\33\1\0\23\33\2\0\2\34\1\0\17\34"+
"\1\54\6\34\1\54\2\34\5\0\1\55\5\0\1\56"+
"\21\0\1\57\5\0\1\60\6\0\11\41\1\0\2\41"+
"\3\0\1\57\5\0\1\60\6\0\7\41\1\61\1\41"+
"\1\0\2\41\5\0\1\62\41\0\1\63\22\0\4\12"+
"\1\0\1\12\3\0\4\12\1\0\15\12\1\17\2\14"+
"\1\0\31\14\23\0\1\64\33\0\1\65\10\0\2\34"+
"\1\0\31\34\6\55\1\66\25\55\13\0\1\67\21\0"+
"\1\57\5\0\1\60\25\0\1\57\5\0\1\60\6\0"+
"\1\41\1\70\7\41\1\0\2\41\13\0\1\71\42\0"+
"\1\72\33\0\1\73\13\0\6\55\1\66\5\55\1\74"+
"\17\55\1\0\1\57\5\0\1\60\6\0\10\41\1\75"+
"\1\0\2\41\2\0\11\71\1\76\22\71\24\0\1\77"+
"\3\0\1\100\1\77\26\0\1\101\3\0\1\102\1\101"+
"\2\0\11\71\1\103\22\71\25\0\1\104\32\0\1\77"+
"\4\0\1\77\27\0\1\105\32\0\1\101\4\0\1\101"+
"\2\0\11\71\1\103\21\71\1\106\17\0\1\107\33\0"+
"\1\110\14\0\11\71\1\76\21\71\1\111\26\0\1\17"+
"\33\0\1\25\5\0";

private static int [] zzUnpacktrans() {
int [] result = new int[1568];
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/com/mwnciau/rblade/RBlade.flex
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ NON_RBLADE_STRING={NON_RBLADE_CHARACTER}+
yybegin(STATE_STRING_LITERAL_INTERPOLATION);
}
}
\\. { }
. {
\\[^] { }
[^] {
if (yycharat(0) == stringDelimiterStack.getFirst()) {
stringDelimiterStack.removeFirst();
yybegin(stateStack.removeFirst());
Expand Down

0 comments on commit 67be1c5

Please sign in to comment.