Skip to content

Commit 071203c

Browse files
authored
Merge pull request #189 from SeeSharpSoft/fb_backslash_lexer_fix
[FIX] consider escape char inside quotes as escaped text
2 parents 4b7ccd9 + 1647d1c commit 071203c

File tree

2 files changed

+2
-1
lines changed
  • src
    • main/java/net/seesharpsoft/intellij/plugins/csv
    • test/resources/intention/UnquoteAllBackslash

2 files changed

+2
-1
lines changed

src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvLexer.flex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ WHITE_SPACE=[ \f]+
9393
default:
9494
throw new RuntimeException("unhandled state: " + yystate());
9595
}
96+
return CsvTypes.ESCAPED_TEXT;
9697
}
9798
return CsvTypes.TEXT;
9899
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Header \\1\\, "Header, 2"
1+
"Header \\1\\", "Header, 2"
22
"Value \"1\"", Value 2
33
"back\\\"\"\\slash\\"

0 commit comments

Comments
 (0)