Use consistent styling
Prefix public symbols with "p_". User lowercase for all type aliases. Clean up some comments.
This commit is contained in:
1 parent
c7bca74d3e
commit
ce22e3465b
3 files changed
+250
-166
No files matched your search
@@ -183,7 +183,7 @@ class Propane
|
||||
# Expanded user code block.
|
||||
def expand_code(code, parser, rule, pattern)
|
||||
code = code.gsub(/\$token\(([$\w]+)\)/) do |match|
|
||||
"Token(TOKEN_#{Token.code_name($1)})"
|
||||
"TOKEN_#{Token.code_name($1)}"
|
||||
end
|
||||
if parser
|
||||
code = code.gsub(/\$\$/) do |match|
|
||||
|
||||
Reference in new issue
Block a user