diff options
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml')
-rw-r--r-- | src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml | 73 |
1 files changed, 64 insertions, 9 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml index 39ffaf77af..f88848729f 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml @@ -35,7 +35,7 @@ <!ENTITY strikeoutregex "[~]{2}[^~].*[^~][~]{2}"> <!-- pandoc style --> ]> -<language name="Markdown" version="3" kateversion="3.8" section="Markup" extensions="*.md;*.mmd;*.markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD"> +<language name="Markdown" version="6" kateversion="5.0" section="Markup" extensions="*.md;*.mmd;*.markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD"> <highlighting> <contexts> <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> @@ -74,13 +74,57 @@ <context attribute="comment" lineEndContext="#stay" name="comment"> <RegExpr String="-->" attribute="comment" context="#pop" endRegion="comment"/> </context> + <context attribute="code" lineEndContext="#stay" name="bash-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##Bash" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="cmake-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##CMake" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="cpp-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##C++" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="css-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##CSS" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="email-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##Email" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="haskell-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##Haskell" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="html-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##HTML" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="json-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##JSON" includeAttrib="true"/> + </context> <context attribute="code" lineEndContext="#stay" name="php-code"> <WordDetect attribute="code" context="#pop" String="```"/> - <IncludeRules context="phpsource##PHP/PHP"/> + <IncludeRules context="phpsource##PHP/PHP" includeAttrib="true"/> </context> <context attribute="code" lineEndContext="#stay" name="python-code"> <WordDetect attribute="code" context="#pop" String="```"/> - <IncludeRules context="##Python"/> + <IncludeRules context="##Python" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="qml-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##QML" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="rust-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##Rust" includeAttrib="true"/> + </context> + <context attribute="code" lineEndContext="#stay" name="xml-code"> + <WordDetect attribute="code" context="#pop" String="```"/> + <IncludeRules context="##XML" includeAttrib="true"/> </context> <context attribute="code" lineEndContext="#stay" name="code"> <WordDetect attribute="code" context="#pop" String="```"/> @@ -98,8 +142,19 @@ <RegExpr attribute="mailtolink" String="&mailtolinkregex;"/> <RegExpr attribute="strikeout" minimal="true" String="&strikeoutregex;"/> <RegExpr attribute="linebreak" minimal="true" String="&linebreakregex;"/> + <WordDetect attribute="code" context="bash-code" String="```bash"/> + <WordDetect attribute="code" context="cmake-code" String="```cmake"/> + <WordDetect attribute="code" context="cpp-code" String="```cpp"/> + <WordDetect attribute="code" context="css-code" String="```css"/> + <WordDetect attribute="code" context="email-code" String="```email"/> + <WordDetect attribute="code" context="haskell-code" String="```haskell"/> + <WordDetect attribute="code" context="html-code" String="```html"/> + <WordDetect attribute="code" context="json-code" String="```json"/> <WordDetect attribute="code" context="php-code" String="```php"/> <WordDetect attribute="code" context="python-code" String="```python"/> + <WordDetect attribute="code" context="qml-code" String="```qml"/> + <WordDetect attribute="code" context="rust-code" String="```rust"/> + <WordDetect attribute="code" context="xml-code" String="```xml"/> <StringDetect attribute="code" context="code" String="```"/> </context> </contexts> @@ -121,12 +176,12 @@ <itemData name="blockquote" defStyleNum="dsDataType"/> <itemData name="bq-emphasis" defStyleNum="dsDataType" italic="true"/> <itemData name="bq-strong" defStyleNum="dsDataType" bold="true"/> - <itemData name="bullet" defStyleNum="dsFloat"/> - <itemData name="bl-emphasis" defStyleNum="dsFloat" italic="true"/> - <itemData name="bl-strong" defStyleNum="dsFloat" bold="true"/> - <itemData name="numlist" defStyleNum="dsFloat"/> - <itemData name="nl-emphasis" defStyleNum="dsFloat" italic="true"/> - <itemData name="nl-strong" defStyleNum="dsFloat" bold="true"/> + <itemData name="bullet" defStyleNum="dsString"/> + <itemData name="bl-emphasis" defStyleNum="dsString" italic="true"/> + <itemData name="bl-strong" defStyleNum="dsString" bold="true"/> + <itemData name="numlist" defStyleNum="dsString"/> + <itemData name="nl-emphasis" defStyleNum="dsString" italic="true"/> + <itemData name="nl-strong" defStyleNum="dsString" bold="true"/> <itemData name="comment" defStyleNum="dsComment"/> <itemData name="code" defStyleNum="dsBaseN"/> <itemData name="reflink" defStyleNum="dsOthers" underline="true"/> |