Sublime Forum

Syntax on styled-components

#1

I’ve got a problem with this syntax with naomi syntax theme. (https://github.com/borela/naomi)

Could you help me to understand why?

0 Likes

#2

It looks like a bug. I recommend reporting it on Naomi’s issue tracker.

Alternatively, I can confirm that the bug does not occur with JS Custom.

0 Likes

#3

Yeah @ThomSmith I already did an issue but I wanted to help the maintainer, and I don’t know how to begin the debug in fact. Any tips?

0 Likes

#4

Are you generally familiar with the sublime-syntax format and how it works?

0 Likes

#5

Not so much, that’s why :frowning:

0 Likes

#6

I took a brief look myself and couldn’t spot the error, which bodes poorly for my ability to explain said error. Naomi’s syntaxes are organized in an unorthodox fashion; I’d probably need to do a bit more digging.

One of these days, I need to write an in-depth explanation of how Sublime’s parser works. The official documentation isn’t bad, but it’s short on examples and isn’t really oriented toward insight into the internals.

1 Like

#7

Thank you @ThomSmith for your time and your explanation. I’ll try to debug it too. :slight_smile:

0 Likes