1
0
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:
Maxime Mangel 2022-04-26 16:36:37 +02:00 committed by Alec Thomas
parent 396f5726a4
commit 5559bcca67
3 changed files with 21 additions and 1 deletions

View File

@ -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"/>

View File

@ -0,0 +1,4 @@
open type System.Math
module A =
open type System.Math

View 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"}
]