-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: Lexis" | ||
weight: 100 | ||
--- |
18 changes: 18 additions & 0 deletions
18
hugo/content/docs/recipes/lexis/case-insensitive-languages.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: "Case-insensitive languages" | ||
weight: 100 | ||
--- | ||
|
||
* case-insensitive languages are more suitable for beginners, because they don't have to worry about the case of identifiers and keywords | ||
* there are basically two options you can choose from: | ||
* you can either make Langium case-insensitive by configuration | ||
* or you can include case-insensitivity only where you need it | ||
|
||
## Case-insensitive Langium | ||
|
||
* to make Langium case-insensitive, you have to set the `caseInsensitive` option in the `LangiumConfig` object | ||
|
||
## Case-insensitivity on demand | ||
|
||
* if you want to include case-insensitivity only where you need it, you can use the `i` flag inside of your grammar regexes | ||
* do not forget to adjust your scoping as well! |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: "Syntax" | ||
weight: 200 | ||
--- |
Empty file.
Empty file.