Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5697b15

Browse files
committed
Change quote locked to better handle single or double quotes
1 parent b581a7e commit 5697b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/syntax_tree/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3904,7 +3904,7 @@ module Quotes
39043904
# quotes, then single quotes would deactivate it.)
39053905
def self.locked?(node)
39063906
node.parts.any? do |part|
3907-
part.is_a?(TStringContent) && part.value.match?(/\\|#[@${]/)
3907+
!part.is_a?(TStringContent) || part.value.match?(/\\|#[@${]/)
39083908
end
39093909
end
39103910

0 commit comments

Comments
 (0)