Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/typescript-react.xml
Show All 32 Lines | 19 | <!-- | |||
---|---|---|---|---|---|
33 | (typescript.xml). | 33 | (typescript.xml). | ||
34 | IMPORTANT: Keep sync with "javascript-react.xml". | 34 | IMPORTANT: Keep sync with "javascript-react.xml". | ||
35 | 35 | | |||
36 | Based on the XML syntax highlighting (v7), by Wilbert Berendsen | 36 | Based on the XML syntax highlighting (v7), by Wilbert Berendsen | ||
37 | (wilbert@kde.nl), and the TypeScript React grammar files, | 37 | (wilbert@kde.nl), and the TypeScript React grammar files, | ||
38 | available at: https://github.com/Microsoft/TypeScript-TmLanguage | 38 | available at: https://github.com/Microsoft/TypeScript-TmLanguage | ||
39 | 39 | | |||
40 | Change log: | 40 | Change log: | ||
41 | * v7 [2019-11-19]: Rename definition "TypeScript React" to "TypeScript React (TSX)". | ||||
41 | * v6 [2019-10-01]: Highlight "<T extends" as a type assertion, not as a Tag. | 42 | * v6 [2019-10-01]: Highlight "<T extends" as a type assertion, not as a Tag. | ||
42 | * v5 [2019-08-30]: Adapt to version 5 of "typescript.xml". | 43 | * v5 [2019-08-30]: Adapt to version 5 of "typescript.xml". | ||
43 | * v4 [2019-07-16]: Adapt to version 4 of "typescript.xml". | 44 | * v4 [2019-07-16]: Adapt to version 4 of "typescript.xml". | ||
44 | * v3 [2019-02-20]: Don't highlight tags within declarations of | 45 | * v3 [2019-02-20]: Don't highlight tags within declarations of | ||
45 | types, variables, classes and interfaces. | 46 | types, variables, classes and interfaces. | ||
46 | Fixes tags after substitutions in templates. | 47 | Fixes tags after substitutions in templates. | ||
47 | Adapt to version 3 of "typescript.xml". | 48 | Adapt to version 3 of "typescript.xml". | ||
48 | * v2 [2018-12-30]: Adapt to version 2 of "typescript.xml". | 49 | * v2 [2018-12-30]: Adapt to version 2 of "typescript.xml". | ||
49 | Allow type assertion in the tag name. | 50 | Allow type assertion in the tag name. | ||
50 | Allow tags after the keywords "await" & "yield". | 51 | Allow tags after the keywords "await" & "yield". | ||
51 | Allow empty tags and non-ASCII tag name & attributes. | 52 | Allow empty tags and non-ASCII tag name & attributes. | ||
52 | * v1 [2018-11-18]: Initial version | 53 | * v1 [2018-11-18]: Initial version | ||
53 | --> | 54 | --> | ||
54 | 55 | | |||
55 | <language name="TypeScript React" version="6" kateversion="5.53" section="Scripts" indenter="cstyle" | 56 | <language name="TypeScript React (TSX)" version="7" kateversion="5.53" section="Scripts" indenter="cstyle" | ||
56 | priority="8" extensions="*.tsx" mimetype="text/tsx;text/x-tsx;application/tsx;application/x-tsx;" | 57 | priority="9" extensions="*.tsx" mimetype="text/tsx;text/x-tsx;application/tsx;application/x-tsx;" | ||
57 | author="Nibaldo González (nibgonz@gmail.com)" license="MIT"> | 58 | author="Nibaldo González (nibgonz@gmail.com)" license="MIT"> | ||
58 | 59 | | |||
59 | <highlighting> | 60 | <highlighting> | ||
60 | 61 | | |||
61 | <contexts> | 62 | <contexts> | ||
62 | 63 | | |||
63 | <context name="Shebang" attribute="Normal Text" lineEndContext="#pop!Normal" lineEmptyContext="#pop!Normal" fallthrough="true" fallthroughContext="#pop!Normal"> | 64 | <context name="Shebang" attribute="Normal Text" lineEndContext="#pop!Normal" lineEmptyContext="#pop!Normal" fallthrough="true" fallthroughContext="#pop!Normal"> | ||
64 | <Detect2Chars context="ShebangLine" attribute="Comment" char="#" char1="!" column="0" /> | 65 | <Detect2Chars context="ShebangLine" attribute="Comment" char="#" char1="!" column="0" /> | ||
▲ Show 20 Lines • Show All 432 Lines • Show Last 20 Lines |