Skip to content

Commit

Permalink
Docs: small addition to address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsh committed Jun 15, 2024
1 parent c2084da commit 1be22db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lark/indenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ class DedentError(LarkError):
pass

class Indenter(PostLex, ABC):
"""A postlexer that "injects" indent/dedent tokens based on indentation.
"""This is a postlexer that "injects" indent/dedent tokens based on indentation.
It keeps track of the current indentation, as well as the current level of parentheses.
Inside parentheses, the indentation is ignored, and no indent/dedent tokens get generated.
Note: This is an abstract class. To use it, inherit and implement all its abstract methods:
- tab_len
Expand Down

0 comments on commit 1be22db

Please sign in to comment.