Skip to content

Commit 406c2fa

Browse files
Earlopainmatzbot
authored andcommitted
[ruby/syntax_suggest] Fix typo for %I delimiter check
Also add tests for the other types which currently don't have one ruby/syntax_suggest@db2dca2def
1 parent 17e7747 commit 406c2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/syntax_suggest/left_right_lex_count.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def count_lex(lex)
6262
# Means it's a string or a symbol `"{"` rather than being
6363
# part of a data structure (like a hash) `{ a: b }`
6464
# ignore it.
65-
when :on_words_beg, :on_symbos_beg, :on_qwords_beg,
65+
when :on_words_beg, :on_symbols_beg, :on_qwords_beg,
6666
:on_qsymbols_beg, :on_regexp_beg, :on_tstring_beg
6767
# ^^^
6868
# Handle shorthand syntaxes like `%Q{ i am a string }`

0 commit comments

Comments
 (0)