Pandoc: Razor
This commit is contained in:
30
razor.xml
Normal file
30
razor.xml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE language SYSTEM "language.dtd">
|
||||||
|
<language name="Razor" version="1" kateversion="2.4" section="Markup" extensions="*.cshtml;*.razor" mimetype="text/x-cshtml" author="Antigravity" license="MIT">
|
||||||
|
<highlighting>
|
||||||
|
<contexts>
|
||||||
|
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<!-- Razor specific tags -->
|
||||||
|
<StringDetect String="@{" attribute="Control Flow" context="CSharpBlock" />
|
||||||
|
<StringDetect String="@(" attribute="Control Flow" context="CSharpExpr" />
|
||||||
|
<RegExpr String="@[a-zA-Z_][a-zA-Z0-9_.]*" attribute="Control Flow" context="#stay" />
|
||||||
|
<!-- Fallback to HTML -->
|
||||||
|
<IncludeRules context="##HTML" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="CSharpBlock" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar char="}" attribute="Control Flow" context="#pop" />
|
||||||
|
<IncludeRules context="##C#" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="CSharpExpr" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar char=")" attribute="Control Flow" context="#pop" />
|
||||||
|
<IncludeRules context="##C#" />
|
||||||
|
</context>
|
||||||
|
</contexts>
|
||||||
|
<itemDatas>
|
||||||
|
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||||
|
<itemData name="Control Flow" defStyleNum="dsControlFlow" />
|
||||||
|
</itemDatas>
|
||||||
|
</highlighting>
|
||||||
|
</language>
|
||||||
Reference in New Issue
Block a user