mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-16 14:24:05 +02:00
Add XML support
This commit is contained in:
parent
a249476e45
commit
1ed4613437
3 changed files with 48 additions and 0 deletions
|
@ -9,6 +9,15 @@ is based on `Keep a Changelog`_ and this project adheres to `Semantic
|
|||
Versioning`_.
|
||||
|
||||
|
||||
Unreleased
|
||||
##########
|
||||
|
||||
Added
|
||||
=====
|
||||
|
||||
- XML support
|
||||
|
||||
|
||||
[0.3.0] 2023-12-24
|
||||
##################
|
||||
|
||||
|
|
15
queries/xml/rainbow-delimiters.scm
Normal file
15
queries/xml/rainbow-delimiters.scm
Normal file
|
@ -0,0 +1,15 @@
|
|||
(element
|
||||
(STag
|
||||
"<" @delimiter
|
||||
(Name) @delimiter
|
||||
">" @delimiter)
|
||||
(ETag
|
||||
"</" @delimiter
|
||||
(Name) @delimiter
|
||||
">" @delimiter @sentinel))@container
|
||||
|
||||
(element
|
||||
(EmptyElemTag
|
||||
"<" @delimiter
|
||||
(Name) @delimiter
|
||||
"/>" @delimiter @sentinel)) @container
|
24
test/highlight/xml/regular.xml
Normal file
24
test/highlight/xml/regular.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>Example of MathML embedded in an XHTML file</title>
|
||||
<meta name="description" content="Example of MathML embedded in an XHTML file"/>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Example of MathML embedded in an XHTML file</h1>
|
||||
<p>
|
||||
The area of a circle is
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mi>π<!-- π --></mi>
|
||||
<mo>⁢<!-- ⁢ --></mo>
|
||||
<msup>
|
||||
<mi>r</mi>
|
||||
<mn>2</mn>
|
||||
</msup>
|
||||
</math>
|
||||
.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue