Skip to content

Commit ea63aec

Browse files
committed
syntax highlighting: change attributeNameTest from 'storage.type' to 'variable.parameter'
1 parent aceb66f commit ea63aec

File tree

3 files changed

+38
-9
lines changed

3 files changed

+38
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"storage.type"
100100
],
101101
"attributeNameTest": [
102-
"storage.type"
102+
"variable.parameter"
103103
],
104104
"xslElementName": [
105105
"storage.type"

sample/highlight.xsl

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
4+
xmlns:array="http://www.w3.org/2005/xpath-functions/array"
5+
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
6+
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
7+
exclude-result-prefixes="#all"
8+
expand-text="yes"
9+
version="3.0">
10+
11+
<xsl:output method="xml" indent="yes"/>
12+
<xsl:mode on-no-match="shallow-copy"/>
13+
<xsl:param name="prefixes" as="" select=""/>
14+
15+
<?process 8798?>
16+
<xsl:template match="item[@class eq 'random']" mode="#all">
17+
<!-- Gather together -->
18+
<xsl:variable name="list" as="xs:string*"
19+
select="
20+
for $num in 1 to 20 return
21+
substring($prefixes[$num], 5) =>
22+
string-join('end' || $num)"/>
23+
24+
<body id="{$list[2]}">
25+
<text>All prefixes '{$list}' &lt;included.</text>
26+
</body>
27+
</xsl:template>
28+
29+
30+
31+
</xsl:stylesheet>

sample/importSat.xsl

+6-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88

99
version="3.0">
1010

11-
<xsl:import href="sat.xsl"/>
11+
<xsl:template match="*" mode="#default one two">
12+
<xsl:apply-templates select="*" mode="two"/>
13+
</xsl:template>
1214

13-
<xsl:variable name="test" as="xs:string" select="$map.new ! ?a"/>
14-
15-
<xsl:variable name="map.new" as="xs:string" select="
16-
let $a := map {
17-
'a': ('test')
18-
}
19-
return $a"/>
15+
<xsl:template match="any" mode="#default">
16+
<xsl:apply-templates select="six" mode="one"/>
17+
</xsl:template>
2018

2119
</xsl:stylesheet>

0 commit comments

Comments
 (0)