naomi icon indicating copy to clipboard operation
naomi copied to clipboard

Space after `function` breaks highlighting

Open boycce opened this issue 3 years ago • 0 comments

Space after function seems to break highlighting for a method inside an object literal.

image

Here are the scope names that are being returned for the method names:

# First (good)
source.js meta.object-literal.js.fjsx15 meta.block.js.fjsx15 meta.declaration.function.js.fjsx15 meta.object-literal.key.js.fjsx15 entity.name.function.js.fjsx15

# Second (bad)
source.js meta.object-literal.js.fjsx15 meta.block.js.fjsx15 meta.object-literal.key.js.fjsx15 string.unquoted.js.fjsx15

boycce avatar May 06 '21 20:05 boycce