Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygments/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def get_tokens_unprocessed(self, text, stack=('root',)):
"""
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
Expand Down
4 changes: 2 additions & 2 deletions pygments/lexers/compiled.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def get_tokens_unprocessed(self, text):
# abort function naming ``foo = Function(...)``
next_token_is_function = False
# if we are in a function block we count the open
# braces because ootherwise it's impossible to
# braces because otherwise it's impossible to
# determine the end of the modifier context
if in_function_block or in_property_block:
if scanner.match == '(':
Expand All @@ -897,7 +897,7 @@ def get_tokens_unprocessed(self, text):
elif lowercase_name in self.keywords:
token = Keyword
# if we are in a special block and a
# block ending keyword occours (and the parenthesis
# block ending keyword occurs (and the parenthesis
# is balanced) we end the current block context
if (in_function_block or in_property_block) and \
lowercase_name in self.BLOCK_KEYWORDS and \
Expand Down
4 changes: 2 additions & 2 deletions pygments/lexers/dotnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class GenericAspxLexer(RegexLexer):
#TODO support multiple languages within the same source file
class CSharpAspxLexer(DelegatingLexer):
"""
Lexer for highligting C# within ASP.NET pages.
Lexer for highlighting C# within ASP.NET pages.
"""

name = 'aspx-cs'
Expand All @@ -513,7 +513,7 @@ def analyse_text(text):

class VbNetAspxLexer(DelegatingLexer):
"""
Lexer for highligting Visual Basic.net within ASP.NET pages.
Lexer for highlighting Visual Basic.net within ASP.NET pages.
"""

name = 'aspx-vb'
Expand Down
4 changes: 2 additions & 2 deletions pygments/lexers/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -2691,9 +2691,9 @@ def blob_callback(lexer, match, ctx):
r'signed|sizeof|static_cast|struct|template|typedef|typeid|'
r'typename|union|unsigned|using|virtual|volatile|'
r'wchar_t)\b', Keyword.Reserved),
# deprecated keywords, use a meaningfull token when available
# deprecated keywords, use a meaningful token when available
(r'(?:emit|foreach|internal|loopn|static)\b', Keyword),
# ignored keywords, use a meaningfull token when available
# ignored keywords, use a meaningful token when available
(r'(?:private|protected|public)\b', Keyword),
(r'(?:var|do|const|function|class)\b', Keyword.Declaration),
(r'(?:true|false|nil|void)\b', Keyword.Constant),
Expand Down
4 changes: 2 additions & 2 deletions pygments/lexers/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ def analyse_text(text):

class HtmlSmartyLexer(DelegatingLexer):
"""
Subclass of the `SmartyLexer` that highighlights unlexed data with the
Subclass of the `SmartyLexer` that highlights unlexed data with the
`HtmlLexer`.

Nested Javascript and CSS is highlighted too.
Expand Down Expand Up @@ -1247,7 +1247,7 @@ def analyse_text(text):

class HtmlDjangoLexer(DelegatingLexer):
"""
Subclass of the `DjangoLexer` that highighlights unlexed data with the
Subclass of the `DjangoLexer` that highlights unlexed data with the
`HtmlLexer`.

Nested Javascript and CSS is highlighted too.
Expand Down
2 changes: 1 addition & 1 deletion pygments/lexers/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class JSONLexer(RegexLexer):
],


# the root of a json document whould be a value
# the root of a json document would be a value
'root': [
include('value'),
],
Expand Down