Sublime Forum

Match "meta.block.js" but not "meta.block.js meta.block.js"

#1

I have an issue with JS and some function names showing their scope as “source.js meta.block.js variable.other.readwrite.js” instead of “source.js meta.block.js entity.name.label.js”. This is using the most recent version of sublime.

I can get around the issue almost, except that variables inside the problematic function are “source.js meta.block.js meta.block.js variable.other.readwrite.js”

In color themes, is it possible to match specifically match “source.js meta.block.js variable.other.readwrite.js” and disregard it if there are two meta.block.js in a row?

You can see this through the execute and getDialogueEntries functions, where-in the getDialogueEntries function entries is the same color because the scopes are almost identical.

0 Likes

#2

try source.js meta.block.js variable.other.readwrite.js - meta.block.js meta.block.js

0 Likes

#3

Ah, thank you, it worked! I had tried - meta.block.js but for some reason didn’t think to try - meta.block.js twice

0 Likes