sublimehq / Packages

Syntax highlighting files shipped with Sublime Text and Sublime Merge
https://sublimetext.com
Other
2.95k stars 587 forks source link

[JavaScript] Fix module declaration #4011

Closed deathaxe closed 2 months ago

deathaxe commented 2 months ago

Fixes #4010

This commit...

  1. adds support for unquoted identifiers in module declarations
  2. scopes quoted identifiers entity.name.modules, instead of "string".
  3. adds module declaration names to symbol list and global symbol index.
  4. removes possible leading and trailing quotes from symbols.