View Code? Open in Web Editor
NEW
Editor integration for Pluto, a Lua dialect, with syntax highlighting, snippets, build systems, etc.
Home Page: https://pluto-lang.org/docs/Editor%20Integration
License: The Unlicense
XML 90.10%
JSON 5.65%
PHP 1.11%
Lua 2.85%
Ignore List 0.29%
syntax-highlighting's People
Contributors
Watchers
syntax-highlighting's Issues
inst :method ?()
inst ?:method ()
inst ?:method ?()
inst ?:optmethod ?()
The righthand argument should be classified as a typename. Should be similar to new
.
I don't want to consider :
to be an operator because it looks odd with tables, but ternary expression does it like an operator, so something would have to be done about this.
"end" in "RendererEnum" is being classified as the end of the Renderer class (or the end of something?)
What it looks like:
What it should look like:
Lua grammar:
Pluto grammar:
function f (a : string | int ): string |int
local b : string |int = a
end
In this case, 'decode' should be highlighted as the callee, not 'json':
This is being highlighted like it's an enum called "class"
local w = wcall (|| -> warn (" Bad!" ))
print (w ? (w :strip ()) : " No warnings" )
From lua/testes/calls.lua:
Also it doesn't look brilliantly on new
. Handling for this is pretty good with function
, tho.
This is valid syntax since 0.7.0 but not correctly highlighted yet:
Currently, this kind of thing looks wrong:
Currently default arguments are not classified correctly: