Skip to content

Commit

Permalink
Fix usage of 'Chevrotrain' -> 'Chevrotain'
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-fleck-at committed Nov 27, 2023
1 parent 3b8ae8c commit 36bf635
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
19 changes: 5 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
"source.fixAll.eslint": true,
"source.fixAll.markdownlint": true
},
"eslint.validate": [
"javascript",
"typescript"
],
"eslint.validate": ["javascript", "typescript"],
"search.exclude": {
"**/node_modules": true,
"**/out": true,
Expand Down Expand Up @@ -56,19 +53,15 @@
"ul_multi": 3
},
"no-inline-html": {
"allowed_elements": [
"br",
"details",
"summary"
]
"allowed_elements": ["br", "details", "summary"]
}
},
"jest.jestCommandLine": "yarn test",
"jest.debugMode": true,
"cSpell.enabled": true,
"cSpell.words": [
"Langium",
"Chevrotrain",
"Chevrotain",
"CrossModel",
"Modelserver",
"CrossBreeze",
Expand All @@ -89,7 +82,5 @@
"typescript",
"typescriptreact"
],
"cSpell.ignoreRegExpList": [
"/^\\s*import.*from.*/gm"
]
}
"cSpell.ignoreRegExpList": ["/^\\s*import.*from.*/gm"]
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ The repository itself contains the following components structured as follows:

## Used libraries and license

- mui-x : MUI X is open core—base components are MIT-licensed, while more advanced features require a Pro or Premium commercial license. We are currently only using core-base
- react-tabs: MIT
- chevrotrain: This library is a dependency of langium. To get the Yaml language working in crossmodel an example implementation of the python language of chevrotrain has been used. This example has been modified to make it work for the yaml language.
- <https://github.com/Chevrotain/chevrotain>
- example that has been used: <https://github.com/Chevrotain/chevrotain/tree/master/examples/lexer/python_indentation>
- mui-x : MUI X is open core—base components are MIT-licensed, while more advanced features require a Pro or Premium commercial license. We are currently only using core-base
- react-tabs: MIT
- chevrotain: This library is a dependency of langium. To get the Yaml language working in crossmodel an example implementation of the python language of chevrotain has been used. This example has been modified to make it work for the yaml language.
- <https://github.com/Chevrotain/chevrotain>
- example that has been used: <https://github.com/Chevrotain/chevrotain/tree/master/examples/lexer/python_indentation>
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class CrossModelLexer extends DefaultLexer {

// add remaining dedents
while (indentStack.pop()) {
// chevrotrain uses 1-based indices for tokens which Langium transforms into 0-based indices by deducting 1
// chevrotain uses 1-based indices for tokens which Langium transforms into 0-based indices by deducting 1
// see for instance https://github.com/eclipse-langium/langium/blob/eea5bc2/packages/langium/src/utils/cst-util.ts#L49
const startOffset = text.length || 1;
const endOffset = text.length || 1;
Expand Down

0 comments on commit 36bf635

Please sign in to comment.