Skip to content
Snippets Groups Projects
Commit 5d72fc80 authored by Franco Leonardo Bulgarelli's avatar Franco Leonardo Bulgarelli
Browse files

Fixing prolog lexer issue on camelCase atoms

Although camelCase atoms - as well as functor's and predicate's names -
are sometimes considered a bad practice, they are actually valid.

Before this commit, a camelCaseAtom would be highlighted as **camel**CaseAtom.
Now, it is properly highlighted as **camelCaseAtom**
parent 70ba4d13
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -30,7 +30,7 @@ module Rouge
end
 
state :atoms do
rule /[[:lower:]]([_[:lower:][:digit:]])*/, Str::Symbol
rule /[[:lower:]]([_[:word:][:digit:]])*/, Str::Symbol
rule /'[^']*'/, Str::Symbol
end
 
Loading
Loading
Loading
Loading
@@ -4,6 +4,7 @@ x
blue
'Burrito'
'some atom'
camelCaseAtom
 
# Numbers
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment