skylighting-core 0.13.1.2 → 0.13.2
raw patch · 6 files changed
+21/−8 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +2/−2
- changelog.md +6/−0
- skylighting-core.cabal +1/−1
- xml/javascript.xml +3/−1
- xml/markdown.xml +6/−1
- xml/nim.xml +3/−3
README.md view
@@ -9,8 +9,8 @@ highlighting descriptions. Formatters are no longer included in this package: see-`skylighting-format-ansi`, `skylighting-format-blaze-html`, and-`skylighting-format-latex`.+`skylighting-format-ansi`, `skylighting-format-blaze-html`,+`skylighting-format-context`, and `skylighting-format-latex`. For details on how to use this package, see the Haddock documentation and the [Skylighting README](https://github.com/jgm/skylighting/blob/master/skylighting/README.md).
changelog.md view
@@ -1,5 +1,11 @@ # Revision history for skylighting and skylighting-core +## 0.13.2++ * Support ConTeXt output via skylighting-format-context (Albert Krewinkel).++ * Update syntax definitions for markdown, nim, javascript.+ ## 0.13.1.2 * Update syntax definitions for c, cmake, commonmlisp, css, go, ini, isocpp,
skylighting-core.cabal view
@@ -1,5 +1,5 @@ name: skylighting-core-version: 0.13.1.2+version: 0.13.2 synopsis: syntax highlighting library description: Skylighting is a syntax highlighting library. It derives its tokenizers from XML syntax
xml/javascript.xml view
@@ -23,7 +23,7 @@ * QML * CoffeeScript (embedded) -->-<language name="JavaScript" version="23" kateversion="5.53" section="Scripts" extensions="*.js;*.mjs;*.cjs;*.kwinscript;*.julius"+<language name="JavaScript" version="24" kateversion="5.53" section="Scripts" extensions="*.js;*.mjs;*.cjs;*.kwinscript;*.julius" mimetype="text/x-javascript;application/x-javascript;application/javascript;text/javascript" indenter="cstyle" author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license=""> @@ -60,6 +60,8 @@ <item>typeof</item> <item>var</item> <item>void</item>+ <item>set</item>+ <item>get</item> </list> <list name="reserved"> <item>async</item>
xml/markdown.xml view
@@ -90,7 +90,7 @@ <!ENTITY checkbox "\[[ x]\](?=\s)"> ]> -<language name="Markdown" version="22" kateversion="5.79" section="Markup" extensions="*.md;*.mmd;*.markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD">+<language name="Markdown" version="23" kateversion="5.79" section="Markup" extensions="*.md;*.mmd;*.markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD"> <highlighting> <contexts> <!-- Start of the Markdown document: find metadata or code block -->@@ -344,6 +344,7 @@ <RegExpr attribute="Fenced Code" context="#pop!ruby-code" String="&fcode;\s*(?:ruby|rbx?|rjs|rake|f?cgi|gemspec|irbrc|ru|prawn|Appraisals|(?:Rake|Cap|Chef|Gem|Guard|Hobo|Vagrant||Rant|Berks|Thor|Puppet)file|rxml|(?:xml|js)\.erb)&end;" insensitive="true"/> <RegExpr attribute="Fenced Code" context="#pop!rust-code" String="&fcode;\s*(?:rust|rs)&end;" insensitive="true"/> <RegExpr attribute="Fenced Code" context="#pop!mysql-code" String="&fcode;\s*(?:mysql|sql|ddl)&end;" insensitive="true"/> <!-- Included in the PHP definition -->+ <RegExpr attribute="Fenced Code" context="#pop!nim-code" String="&fcode;\s*(?:nims?)&end;" insensitive="true"/> <RegExpr attribute="Fenced Code" context="#pop!typescript-code" String="&fcode;\s*(?:typescript|ts)&end;" insensitive="true"/> <RegExpr attribute="Fenced Code" context="#pop!xml-code" String="&fcode;\s*(?:xml|xsd|xspf|tld|jsp|c?pt|dtml|rss|opml|svg|daml|rdf|ui|kcfg|qrc|wsdl|scxml|xbel|dae|sch|brd|docbook)&end;" insensitive="true"/> <RegExpr attribute="Fenced Code" context="#pop!code" String="&fcode;.*$"/>@@ -470,6 +471,10 @@ <context attribute="Normal Text" lineEndContext="#stay" name="mysql-code"> <IncludeRules context="code"/> <IncludeRules context="##SQL (MySQL)" includeAttrib="true"/>+ </context>+ <context attribute="Normal Text" lineEndContext="#stay" name="nim-code">+ <IncludeRules context="code"/>+ <IncludeRules context="##Nim" includeAttrib="true"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="typescript-code"> <IncludeRules context="code"/>
xml/nim.xml view
@@ -20,10 +20,10 @@ <language name="Nim"- version="3"+ version="4" kateversion="5.53" section="Sources"- extensions="*.nim"+ extensions="*.nim;*.nims;*.nimble" mimetype="text/x-nim" indenter="python" author="github.com/juancarlospaco"@@ -224,7 +224,7 @@ </context> <context name="stringescape" attribute="String" lineEndContext="#stay">- <RegExpr attribute="String Char" String="\\["abfnrtv]" context="#stay"/>+ <RegExpr attribute="String Char" String="\\["abfnrtv\\]" context="#stay"/> </context> <context name="string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">