Closed intgr closed 2 years ago
Name of the lexer TSX
Code sample
Type arguments to generic components are not recognized by Rouge.
const render = () => ( <MyComponent attr={value} foo="bar" /> ); const render2 = () => ( <MyComponent<Type> attr={value} foo="bar" /> // ^^^^^^ unhandled syntax );
Notice that the highlighting of the attributes following the type arg are dfferent in the top and bottom examples.
http://rouge.jneen.net/v3.29.0/tsx/Y29uc3QgcmVuZGVyID0gKCkgPT4gKAogICAgPE15Q29tcG9uZW50IGF0dHI9e3ZhbHVlfSBmb289ImJhciIgLz4KKTsKCmNvbnN0IHJlbmRlcjIgPSAoKSA9PiAoCiAgICA8TXlDb21wb25lbnQ8VHlwZT4gYXR0cj17dmFsdWV9IGZvbz0iYmFyIiAvPgogICAgLy8gICAgICAgICAgXl5eXl5eIHVuaGFuZGxlZCBzeW50YXgKKTsK
Name of the lexer TSX
Code sample
Type arguments to generic components are not recognized by Rouge.
Notice that the highlighting of the attributes following the type arg are dfferent in the top and bottom examples.
http://rouge.jneen.net/v3.29.0/tsx/Y29uc3QgcmVuZGVyID0gKCkgPT4gKAogICAgPE15Q29tcG9uZW50IGF0dHI9e3ZhbHVlfSBmb289ImJhciIgLz4KKTsKCmNvbnN0IHJlbmRlcjIgPSAoKSA9PiAoCiAgICA8TXlDb21wb25lbnQ8VHlwZT4gYXR0cj17dmFsdWV9IGZvbz0iYmFyIiAvPgogICAgLy8gICAgICAgICAgXl5eXl5eIHVuaGFuZGxlZCBzeW50YXgKKTsK