1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Regard %w[] as static

This commit is contained in:
Takashi Kokubun 2015-11-28 17:48:06 +09:00
parent 69a50a375f
commit 5d68d8d432
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@ module Hamlit
on_tstring_beg on_tstring_end on_tstring_content
on_embexpr_beg on_embexpr_end
on_lbracket on_rbracket
on_qwords_beg on_words_sep on_qwords_sep
on_lparen on_rparen
on_lbrace on_rbrace on_label
on_int on_float on_imaginary

View file

@ -12,6 +12,7 @@ describe Hamlit::StaticAnalyzer do
it { assert_static(true, '()') }
it { assert_static(true, '(nil)') }
it { assert_static(true, '[true, false, nil, (true)]') }
it { assert_static(true, '%w[1 2 3]') }
it { assert_static(true, '3') }
it { assert_static(true, '1.2') }
it { assert_static(true, '[3, 1.2, [false, "hello #{ 123 } world"]]') }