Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Lookup grammars with "langpck." scope name prefix if not found #602

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented Oct 28, 2023

The tm4e language pack plugin registers all languages with a langpck. scope name prefix. If a grammar references, for example, scope.python, the grammar registered by the language pack will not be found, resulting in WARNING: CANNOT find grammar for scopeName [source.python]. With this commit the language will automatically be looked up via langpck.source.python as a fallback.

The tm4e language pack plugin registers all languages with a "langpck."
scope name prefix. If a grammar references, for example, "scope.python",
the grammar registered by the language pack will not be found, resulting
in "WARNING: CANNOT find grammar for scopeName [source.python]". With
this commit the language will automatically be looked up via
"langpck.source.python" as a fallback.
@sebthom sebthom merged commit 0944cc2 into eclipse-tm4e:main Nov 1, 2023
5 checks passed
@sebthom sebthom deleted the lngpck-fallback branch November 1, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant