Skip to content

Commit

Permalink
\e is not defined in C90
Browse files Browse the repository at this point in the history
https://github.com/ruby/rbs/runs/5827948727?check_suite_focus=true
```
../../../../ext/rbs_extension/unescape.c(25): warning C4129: e: unrecognized character escape sequence
```
  • Loading branch information
nobu committed Apr 5, 2022
1 parent 3ef3022 commit c6fdaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rbs_extension/unescape.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void rbs_unescape_string(VALUE string) {
rb_global_variable(&HASH);
rb_hash_aset(HASH, rb_str_new_literal("\\a"), rb_str_new_literal("\a"));
rb_hash_aset(HASH, rb_str_new_literal("\\b"), rb_str_new_literal("\b"));
rb_hash_aset(HASH, rb_str_new_literal("\\e"), rb_str_new_literal("\e"));
rb_hash_aset(HASH, rb_str_new_literal("\\e"), rb_str_new_literal("\033"));
rb_hash_aset(HASH, rb_str_new_literal("\\f"), rb_str_new_literal("\f"));
rb_hash_aset(HASH, rb_str_new_literal("\\n"), rb_str_new_literal("\n"));
rb_hash_aset(HASH, rb_str_new_literal("\\r"), rb_str_new_literal("\r"));
Expand Down

0 comments on commit c6fdaaa

Please sign in to comment.