Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion HashSyntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def replace_hashes(self, edit, region):
# Get the selected text
s = self.view.substr(region)
# Transform Ruby 1.8 hash syntax to 1.9
s = re.sub(r'([^\:])\:([a-zA-Z_0-9]+[\?\!]?)(\s*)=\>(\s*)', new_style_hash, s)
s = re.sub(r'([^\:]?)\:([a-zA-Z_0-9]+[\?\!]?)(\s*)=\>(\s*)', new_style_hash, s)
# Replace the selection with transformed text
self.view.replace(edit, region, s)