diff --git a/.gitignore b/.gitignore index 192d9af..953c12e 100644 --- a/.gitignore +++ b/.gitignore @@ -7,8 +7,8 @@ /spec/reports/ /tmp/ scratch.rb +/*.lock # rspec failure tracking .rspec_status .DS_Store - diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 83a55d8..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,85 +0,0 @@ -PATH - remote: . - specs: - syntax_suggest (2.0.0) - -GEM - remote: https://rubygems.org/ - specs: - ast (2.4.2) - benchmark-ips (2.12.0) - diff-lcs (1.5.0) - json (2.7.0) - language_server-protocol (3.17.0.3) - lint_roller (1.1.0) - parallel (1.23.0) - parser (3.2.2.4) - ast (~> 2.4.1) - racc - prism (0.18.0) - racc (1.7.3) - rainbow (3.1.1) - rake (12.3.3) - regexp_parser (2.8.3) - rexml (3.2.6) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.1) - rubocop (1.57.2) - json (~> 2.3) - language_server-protocol (>= 3.17.0) - parallel (~> 1.10) - parser (>= 3.2.2.4) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.30.0) - parser (>= 3.2.1.0) - rubocop-performance (1.19.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - ruby-prof (1.6.3) - ruby-progressbar (1.13.0) - stackprof (0.2.25) - standard (1.32.1) - language_server-protocol (~> 3.17.0.2) - lint_roller (~> 1.0) - rubocop (~> 1.57.2) - standard-custom (~> 1.0.0) - standard-performance (~> 1.2) - standard-custom (1.0.2) - lint_roller (~> 1.0) - rubocop (~> 1.50) - standard-performance (1.2.1) - lint_roller (~> 1.1) - rubocop-performance (~> 1.19.1) - unicode-display_width (2.5.0) - -PLATFORMS - ruby - -DEPENDENCIES - benchmark-ips - prism - rake (~> 12.0) - rspec (~> 3.0) - ruby-prof - stackprof - standard - syntax_suggest! - -BUNDLED WITH - 2.4.21 diff --git a/lib/syntax_suggest/lex_value.rb b/lib/syntax_suggest/lex_value.rb index 008cc10..b46a332 100644 --- a/lib/syntax_suggest/lex_value.rb +++ b/lib/syntax_suggest/lex_value.rb @@ -28,7 +28,7 @@ def initialize(line, type, token, state, last_lex = nil) @is_end = false @is_kw = false return if type != :on_kw - # + return if last_lex && last_lex.fname? # https://github.com/ruby/ruby/commit/776759e300e4659bb7468e2b97c8c2d4359a2953 case token