summaryrefslogtreecommitdiff
path: root/pygments/lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r--pygments/lexer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py
index 33d738a8..dcbfcb8e 100644
--- a/pygments/lexer.py
+++ b/pygments/lexer.py
@@ -618,7 +618,7 @@ class RegexLexer(Lexer, metaclass=RegexLexerMeta):
"""
Split ``text`` into (tokentype, text) pairs.
- ``stack`` is the inital stack (default: ``['root']``)
+ ``stack`` is the initial stack (default: ``['root']``)
"""
pos = 0
tokendefs = self._tokens
@@ -792,7 +792,7 @@ def do_insertions(insertions, tokens):
# iterate over the token stream where we want to insert
# the tokens from the insertion list.
for i, t, v in tokens:
- # first iteration. store the postition of first item
+ # first iteration. store the position of first item
if realpos is None:
realpos = i
oldi = 0