Repository navigation
Conversation
SqlSchemaName is a class keyword in IRIS, but _class_sql_name_keyword only listed SqlRowIdName and SqlTableName, so a class that set it produced an ERROR node on its first line. Add it to the same rule so it takes the same values and yields the same query_name node as its two neighbours. Four corpus cases in udl and objectscript: simple, underscore, inside a keyword list, mixed case. Generated files come from tree-sitter-cli 0.27.2, which reproduces the committed files exactly before this change.
Member
|
thanks! @isc-tdyar this PR looks good to merge, but the version just needs to be bumped so the change can be published. Could you bump the version to |
Bump the version in CMakeLists.txt, the Cargo manifests, common.mak, package.json, package-lock.json, pyproject.toml and tree-sitter.json, and regenerate all five grammars.
Member
Author
|
Thanks, Hannah. I bumped the version to 2.0.1 in |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

SqlSchemaNameis a class keyword in IRIS, but_class_sql_name_keywordonly acceptsSqlRowIdNameandSqlTableName. A class that sets it fails to parse:On v2.0.0 this gives an
ERRORnode on the first line, alone or in a list such as[ Abstract, SqlSchemaName = Demo_Sql ]. TheSqlTableNameandSqlRowIdNameforms parse fine.This adds
SqlSchemaNameto the same rule, so it takes the same values and produces the samequery_namenode as its two neighbours.udlandobjectscript: simple, with an underscore, inside a keyword list, and mixed case.tree-sitter testpasses in all five grammars.udlandobjectscriptwith it before this change reproduces the committed files exactly.