Closed Penguin98kStudio closed 2 years ago
in "brackets":
in // Angle
section; in "language_list":
add JSX
and TSX
in the list
i.e
"brackets": [
...
// Angle
{
"name": "angle",
...
"language_list": [
+ "JSX",
+ "TSX",
...
[
"tag_mode": [
+ {"mode": "jsx", "syntax": ["JSX", "TSX"]},
...
}
"tag_style": {
+ "jsx": "tag",
...
}
"tag_scope_exclude": {
+ "jsx": ["string", "comment"],
...
}
"optional_tag_patterns": {
+ "jsx": null,
...
}
"void_tag_patterns": {
+ "jsx": null,
...
}
"self_closing_tag_patterns": {
+ "jsx": "[\\w:\\.\\-]+",
...
}
"tag_name": {
+ "jsx": "[\\w:\\.\\-]+",
...
}
"attributes":
+ "jsx": "(([\\w:@][-\\w\\d:.]*(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|{{[^{}]+}}|{[^{}]+}))?)|{...[\\w\\d]+})",
...
}
"start_tag": {
+ "jsx": "<(%(tag_name)s)(?:(?:\\s+|(?<=['\"]))%(attributes)s)*\\s*(/?)>",
...
}
"end_tag": {
+ "jsx": "</([\\w\\:\\.\\-]+)[^>]*>",
]
Glad you figured it out :).
Description
In Html/XML brackethighlighter counts as brackets
how do i make that work in jsx, so i can do things like
just like i can in html/xml