Skip to content
Snippets Groups Projects
Commit dbdd4e7d authored by Jeanine Adkisson's avatar Jeanine Adkisson
Browse files

Merge pull request #274 from mumuki/issue-mixed-case-prolog-atoms

Fixing prolog lexer issue on camelCase atoms
parents 70ba4d13 5d72fc80
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