Skip to content

Commit

Permalink
Fix invalid identifier regex (overlapping range)
Browse files Browse the repository at this point in the history
The overlapping range [A-z] includes non-identifier characters: "[^`".
  • Loading branch information
juergenhoetzel authored and LefterisJP committed May 5, 2021
1 parent b833549 commit 383ac14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solidity-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Possible values are:
"Built in constructs of the solidity language.")

(defvar solidity-identifier-regexp
"\\([a-zA-z0-9]\\|_\\)+")
"\\([a-zA-Z0-9]\\|_\\)+")

(defvar solidity-variable-attributes
"\\(&\\|*\\|~\\)"
Expand Down

0 comments on commit 383ac14

Please sign in to comment.