Browse Source

Updated README about syntax highlighting for intellij

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.6
Erez Sh 5 years ago
parent
commit
61b76a1fd0
3 changed files with 4 additions and 0 deletions
  1. +1
    -0
      README.md
  2. +1
    -0
      docs/index.md
  3. +2
    -0
      lark/lark.py

+ 1
- 0
README.md View File

@@ -44,6 +44,7 @@ Lark provides syntax highlighting for its grammar files (\*.lark):

- [Sublime Text & TextMate](https://github.com/lark-parser/lark_syntax)
- [vscode](https://github.com/lark-parser/vscode-lark)
- [Intellij & PyCharm](https://github.com/lark-parser/intellij-syntax-highlighting)

### Clones



+ 1
- 0
docs/index.md View File

@@ -24,6 +24,7 @@ $ pip install lark-parser

- [Sublime Text & TextMate](https://github.com/lark-parser/lark_syntax)
- [Visual Studio Code](https://github.com/lark-parser/vscode-lark) (Or install through the vscode plugin system)
- [Intellij & PyCharm](https://github.com/lark-parser/intellij-syntax-highlighting)

-----



+ 2
- 0
lark/lark.py View File

@@ -172,6 +172,8 @@ class Lark(Serialize):

cache_fn = None
if self.options.cache:
if self.options.parser != 'lalr':
raise NotImplementedError("cache only works with parser='lalr' for now")
if isinstance(self.options.cache, STRING_TYPE):
cache_fn = self.options.cache
else:


Loading…
Cancel
Save