Skip to content

Commit 0aaf30b

Browse files
authored
feat(grammar): Finalize grammar (#58)
Fix #17
1 parent 5367c99 commit 0aaf30b

20 files changed

+83867
-98137
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Updated to tree-sitter v0.22.6
1818
- grammar:
1919
+ Only structured events (+ projections) are allowed, not scalar ones.
20+
+ The grammar was updated and finalized.
2021

2122
### Fixed
2223

docs/cds-compiler-differences.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ artifact definitions. The syntax highlighter should still work with such code.
99
Furthermore, the official `@sap/cds-compiler` project allows more constructs
1010
than tree-sitter-cds. That's because `@sap/cds-compiler` has put a lot of work
1111
into allowing keywords as identifiers at places that tree-sitter-cds does not
12-
allow or possibly can't allow.
12+
allow or possibly can't allow.
1313

1414
That is, tree-sitter-cds does not allow to use certain keywords as identifiers,
1515
for example, `many` and `array` can't be used as unquoted identifiers, only as
16-
quoted ones such as `![many]`.
16+
delimited identifiers such as `![many]`.
1717

1818
We also restrict some constructs to make the tree-sitter grammar easier to read
1919
and to avoid custom lexer coding. Differences include, but are not limited to:

0 commit comments

Comments
 (0)