mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-17 20:58:08 +02:00
Add support for F# open static class
This commit is contained in:
parent
396f5726a4
commit
5559bcca67
@ -133,7 +133,7 @@
|
||||
<token type="LiteralString"/>
|
||||
<push state="string"/>
|
||||
</rule>
|
||||
<rule pattern="\b(open|module)(\s+)([\w.]+)">
|
||||
<rule pattern="\b(open type|open|module)(\s+)([\w.]+)">
|
||||
<bygroups>
|
||||
<token type="Keyword"/>
|
||||
<token type="Text"/>
|
||||
|
4
lexers/testdata/fsharp/fsharp_open_static_class.actual
vendored
Normal file
4
lexers/testdata/fsharp/fsharp_open_static_class.actual
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
open type System.Math
|
||||
|
||||
module A =
|
||||
open type System.Math
|
16
lexers/testdata/fsharp/fsharp_open_static_class.expected
vendored
Normal file
16
lexers/testdata/fsharp/fsharp_open_static_class.expected
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
[
|
||||
{"type":"Keyword","value":"open type"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameNamespace","value":"System.Math"},
|
||||
{"type":"Text","value":"\n\n"},
|
||||
{"type":"Keyword","value":"module"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameNamespace","value":"A"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Operator","value":"="},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Keyword","value":"open type"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameNamespace","value":"System.Math"},
|
||||
{"type":"Text","value":"\n"}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user