Skip to content

Commit

Permalink
Fix bug #132
Browse files Browse the repository at this point in the history
Fix #132.  Incorrect regexp caused methods names with a capital letter to be interpreted as a class name.  Adding a start of word \\< seems to fix it.
  • Loading branch information
marierm authored Oct 5, 2016
1 parent 2159d02 commit 0425a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editors/scel/el/sclang-language.el
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The expressions are joined as alternatives with the \\| operator."
"Regular expression matching method names.")

(defconst sclang-class-name-regexp
"\\(?:Meta_\\)?[A-Z]\\(?:\\sw\\|\\s_\\)*"
"\\<\\(?:Meta_\\)?[A-Z]\\(?:\\sw\\|\\s_\\)*"
"Regular expression matching class names.")

(defconst sclang-primitive-name-regexp
Expand Down

0 comments on commit 0425a8d

Please sign in to comment.