summaryrefslogtreecommitdiffstats
path: root/kate/data/markdown.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-06-11 19:37:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-06-11 19:37:23 +0900
commitb2144c1a8560180c677761731218801dc3d7c23c (patch)
tree20058902ea74c6ce51837823d880ecfc08cf5d1b /kate/data/markdown.xml
parentd633f38f6ffd57c5d03aa0eaf37dc0f6d5c42fad (diff)
downloadtdelibs-b2144c1a8560180c677761731218801dc3d7c23c.tar.gz
tdelibs-b2144c1a8560180c677761731218801dc3d7c23c.zip
kate syntax highlighting - markdown: fixed strong emphasis visualization
and ruler's regex. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kate/data/markdown.xml')
-rw-r--r--kate/data/markdown.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kate/data/markdown.xml b/kate/data/markdown.xml
index a132f6d63..7d99d02ed 100644
--- a/kate/data/markdown.xml
+++ b/kate/data/markdown.xml
@@ -30,13 +30,13 @@
<!ENTITY refimageregex '\!\[[^\]\^]+\]\[[^\[]*\]'>
<!ENTITY autolinkregex '&lt;(https?|ftp):[^\"&gt;\s]+&gt;'>
<!ENTITY mailtolinkregex '&lt;(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)&gt;'>
- <!ENTITY rulerregex '\s*([\*\-_]\s?){3,}\s*'>
+ <!ENTITY rulerregex '^\s*([\*\-_]){3,}\s*$'>
<!-- two spaces at end of line generates linebreak -->
<!ENTITY linebreakregex " $">
<!ENTITY strikeoutregex "[~]{2}[^~].*[^~][~]{2}"> <!-- pandoc style -->
]>
-<language name="Markdown" version="1.2" section="Markup"
+<language name="Markdown" version="1.3" section="Markup"
extensions="*.text;*.md;*.mmd;*.mdwn" priority="15"
author="Darrin Yeager, Claes Holmerson"
license="GPL,BSD" >
@@ -50,10 +50,10 @@
<RegExpr attribute="h3" String="^###\s.*[#]?$" />
<RegExpr attribute="h4" String="^####\s.*[#]?$" />
<RegExpr attribute="h5" String="^#####\s.*[#]?$" />
- <RegExpr attribute="ruler" String="&rulerregex;" />
+ <RegExpr attribute="strongemphasis" String="&strongemphasisregex;" />
<RegExpr attribute="strong" String="&strongregex;" />
<RegExpr attribute="emphasis" String="&emphasisregex;" />
- <RegExpr attribute="strongemphasis" String="&strongemphasisregex;" />
+ <RegExpr attribute="ruler" String="&rulerregex;" />
<RegExpr attribute="code" String="^([\s]{4,}|\t+).*$" />
<RegExpr context="bullet" String="^[\*\+\-]\s" />
<RegExpr context="numlist" String="^[\d]+\.\s" />
@@ -102,9 +102,9 @@
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="common" defStyleNum="dsNormal" />
- <itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/>
<itemData name="emphasis" defStyleNum="dsNormal" italic="true" />
<itemData name="strong" defStyleNum="dsNormal" bold="true" />
+ <itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/>
<itemData name="ruler" defStyleNum="dsNormal" bold="true" />
<itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true" />
<itemData name="linebreak" defStyleNum="dsNormal" underline="true" color="#999999"/>