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.
This commit is contained in:
Martin Marier 2016-10-05 03:51:37 -03:00 committed by GitHub
parent 820c3b3cd4
commit 6d6ec77634

View file

@ -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