Skip to content

Commit

Permalink
Merge branch 'nightroman-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Jan 15, 2024
2 parents 24519c8 + 36e8a24 commit 2d1da29
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions hrc/hrc/base/csharp.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
<entity name="type_space" value="\w[\w\[\]\s.,&lt;&gt;*]*?\??\s+"/>
<entity name="string_escape" value="\\([&apos;&quot;\\0abfnrtv]|x%hex;{1,4}|u%hex;{4}|U00%hex;{6})"/>

<!--raw string-->
<scheme name="RawString">
<block scheme="def:empty" start="/(?{start}\$*(?{Quot}&quot;{3,}))/" end="/(?{end}(?{Quot}\y{Quot}))/" region="String"/>
</scheme>

<!--interpolated verbatim string-->
<scheme name="IVString">
<block scheme="IVStringContent" start="/(?{start}(?{Quot}\$@&quot;))/" end="/(?{end}(?{Quot}&quot;))/" region="String"/>
Expand Down Expand Up @@ -79,6 +84,7 @@
</scheme>

<scheme name="csharp">
<inherit scheme="RawString"/>
<inherit scheme="IVString"/>
<inherit scheme="IString"/>
<inherit scheme="VString"/>
Expand Down Expand Up @@ -116,11 +122,11 @@
/x
</regexp>

<!--class, struct, interface, enum-->
<!--class, struct, interface, enum, record-->
<regexp>
/
((?{Keyword}partial)\s+)?
(?{Keyword}class|struct|interface|enum)\s+
(?{Keyword}class|struct|interface|enum|record(?:\s+(?:struct|class))?)\s+
(?{def:Outlined}(?{Class}\w+))
/x
</regexp>
Expand Down

0 comments on commit 2d1da29

Please sign in to comment.