Syntax highlighting support for the MLscript programming language.
- Highlight MLscript source files (ending with
.mls
). - Highlight most keywords and identifiers.
- Highlight comments created by
DiffTests
. - This is not a language server.
This extension does not have settings currently.
- Some token scopes might be wrong.
- Types, terms and declarations in comments are not highlighted.
- Highlight
type
inclass Foo[type A]
. - Highlight nested
DiffTests
flags (e.g.:ducs:postprocess.result
).
- Include trailing single quotes as a part of entity names.
- Recognize trailing single quotes as a part of words. So, if you press ⌥← or ⌥→, the editor will select names including the trailing single quotes.
- Comments can follow
DiffTests
flags.
- Support hexidecimal, octal, and binary integer literals. #199
- Support floating-point decimal literals. #199
- The rule for parameter lists should not be at top-level.
- Highlight some keywords even they are not in a valid declaration.
- Highlight keyword
rec
. - Highlight normal variables.
- Highlight modifiers
declare
andvirtual
for function declarations. - Highlight modifiers
declare
,private
,abstract
, anddata
for class declarations. - Highlight modifier
private
for trait declarations. - Highlight modifiers
declare
andprivate
for module declarations. - Highlight
mixin
declarations. - Highlight keyword
super
. - Highlight modifiers
declare
andvirtual
for function declarations. - Highlight
val
declarations with modifiersdeclare
,private
, andlazy
. - Highlight
in
/out
variance modifiers and type variables starting with a single quote in parameter lists. - Highlight field selections. For example, the
size
inthis.size
. Note that the highlighting isn’t based on semantics, it simply matches identifiers after a period.
- Set the scope of
[ERROR]
and[WARNING]
tomarkup.bold
as I found many VSCode themes does not colorize scopemessage.error
. - Set
this
,true
,false
, andnull
to the correctconstant
scope. - Do not automatically close single quotations becuase they are also used in
variable names and type variable names. (The
notIn
property ofautoClosingPairs
does not support user-defined scope names.)
- Highlight functions with user-defined symbolic operators (#177).
- Support folding error and warning blocks generated by DiffTests.
- Add two simple snippets. I'm just trying it out.
- Fix minor bugs.
- Only
string
instringOf
will be highlighted.
- Only
- Add more string escape sequences.
Create the extension and add basic syntax support.