summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/_cocoa_builtins.py2
-rw-r--r--pygments/lexers/_mapping.py4
-rw-r--r--pygments/lexers/asm.py2
-rw-r--r--pygments/lexers/c_cpp.py2
-rw-r--r--pygments/lexers/cddl.py2
-rw-r--r--pygments/lexers/devicetree.py2
-rw-r--r--pygments/lexers/ecl.py2
-rw-r--r--pygments/lexers/grammar_notation.py2
-rw-r--r--pygments/lexers/haxe.py2
-rw-r--r--pygments/lexers/html.py2
-rw-r--r--pygments/lexers/jvm.py2
-rw-r--r--pygments/lexers/lilypond.py2
-rw-r--r--pygments/lexers/lisp.py2
-rw-r--r--pygments/lexers/mime.py2
-rw-r--r--pygments/lexers/ml.py2
-rw-r--r--pygments/lexers/pascal.py2
-rw-r--r--pygments/lexers/praat.py2
-rw-r--r--pygments/lexers/prolog.py6
-rw-r--r--pygments/lexers/rust.py2
-rw-r--r--pygments/lexers/scripting.py4
-rw-r--r--pygments/lexers/textedit.py2
-rw-r--r--pygments/lexers/urbi.py6
22 files changed, 28 insertions, 28 deletions
diff --git a/pygments/lexers/_cocoa_builtins.py b/pygments/lexers/_cocoa_builtins.py
index 72d86db1..5f2a5223 100644
--- a/pygments/lexers/_cocoa_builtins.py
+++ b/pygments/lexers/_cocoa_builtins.py
@@ -5,7 +5,7 @@
This file defines a set of types used across Cocoa frameworks from Apple.
There is a list of @interfaces, @protocols and some other (structs, unions)
- File may be also used as standalone generator for aboves.
+ File may be also used as standalone generator for above.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py
index cccf58f2..0230d4e5 100644
--- a/pygments/lexers/_mapping.py
+++ b/pygments/lexers/_mapping.py
@@ -2,7 +2,7 @@
pygments.lexers._mapping
~~~~~~~~~~~~~~~~~~~~~~~~
- Lexer mapping definitions. This file is generated by itself. Everytime
+ Lexer mapping definitions. This file is generated by itself. Every time
you change something on a builtin lexer definition, run this script from
the lexers folder to update it.
@@ -563,7 +563,7 @@ if __name__ == '__main__': # pragma: no cover
content = fp.read()
# replace crnl to nl for Windows.
#
- # Note that, originally, contributers should keep nl of master
+ # Note that, originally, contributors should keep nl of master
# repository, for example by using some kind of automatic
# management EOL, like `EolExtension
# <https://www.mercurial-scm.org/wiki/EolExtension>`.
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py
index e5f795f4..37052123 100644
--- a/pygments/lexers/asm.py
+++ b/pygments/lexers/asm.py
@@ -861,7 +861,7 @@ class TasmLexer(RegexLexer):
include('punctuation'),
(register, Name.Builtin),
(identifier, Name.Variable),
- # Do not match newline when it's preceeded by a backslash
+ # Do not match newline when it's preceded by a backslash
(r'(\\)(\s*)(;.*)([\r\n])', bygroups(Text, Whitespace, Comment.Single, Whitespace)),
(r'[\r\n]+', Whitespace, '#pop'),
include('whitespace')
diff --git a/pygments/lexers/c_cpp.py b/pygments/lexers/c_cpp.py
index 4adc2b3f..168c15da 100644
--- a/pygments/lexers/c_cpp.py
+++ b/pygments/lexers/c_cpp.py
@@ -59,7 +59,7 @@ class CFamilyLexer(RegexLexer):
(r'\\\n', Text), # line continuation
(r'//(\n|[\w\W]*?[^\\]\n)', Comment.Single),
(r'/(\\\n)?[*][\w\W]*?[*](\\\n)?/', Comment.Multiline),
- # Open until EOF, so no ending delimeter
+ # Open until EOF, so no ending delimiter
(r'/(\\\n)?[*][\w\W]*', Comment.Multiline),
],
'statements': [
diff --git a/pygments/lexers/cddl.py b/pygments/lexers/cddl.py
index 5c949802..de603769 100644
--- a/pygments/lexers/cddl.py
+++ b/pygments/lexers/cddl.py
@@ -122,7 +122,7 @@ class CddlLexer(RegexLexer):
include("commentsandwhitespace"),
# tag types
(r"#(\d\.{uint})?".format(uint=_re_uint), Keyword.Type), # type or any
- # occurence
+ # occurrence
(
r"({uint})?(\*)({uint})?".format(uint=_re_uint),
bygroups(Number, Operator, Number),
diff --git a/pygments/lexers/devicetree.py b/pygments/lexers/devicetree.py
index cb25a330..68778a7a 100644
--- a/pygments/lexers/devicetree.py
+++ b/pygments/lexers/devicetree.py
@@ -51,7 +51,7 @@ class DevicetreeLexer(RegexLexer):
(r'\\\n', Text), # line continuation
(r'//(\n|[\w\W]*?[^\\]\n)', Comment.Single),
(r'/(\\\n)?[*][\w\W]*?[*](\\\n)?/', Comment.Multiline),
- # Open until EOF, so no ending delimeter
+ # Open until EOF, so no ending delimiter
(r'/(\\\n)?[*][\w\W]*', Comment.Multiline),
],
'statements': [
diff --git a/pygments/lexers/ecl.py b/pygments/lexers/ecl.py
index 47cad222..bca852ea 100644
--- a/pygments/lexers/ecl.py
+++ b/pygments/lexers/ecl.py
@@ -124,7 +124,7 @@ class ECLLexer(RegexLexer):
def analyse_text(text):
"""This is very difficult to guess relative to other business languages.
- -> in conjuction with BEGIN/END seems relatively rare though."""
+ -> in conjunction with BEGIN/END seems relatively rare though."""
result = 0
if '->' in text:
diff --git a/pygments/lexers/grammar_notation.py b/pygments/lexers/grammar_notation.py
index ff57c999..e7ff2b24 100644
--- a/pygments/lexers/grammar_notation.py
+++ b/pygments/lexers/grammar_notation.py
@@ -39,7 +39,7 @@ class BnfLexer(RegexLexer):
* We don't distinguish any operators and punctuation except
`::=`.
- Though these desision making might cause too minimal highlighting
+ Though these decision making might cause too minimal highlighting
and you might be disappointed, but it is reasonable for us.
.. versionadded:: 2.1
diff --git a/pygments/lexers/haxe.py b/pygments/lexers/haxe.py
index ee587e99..2fdcfb30 100644
--- a/pygments/lexers/haxe.py
+++ b/pygments/lexers/haxe.py
@@ -906,7 +906,7 @@ class HxmlLexer(RegexLexer):
tokens = {
'root': [
- # Seperator
+ # Separator
(r'(--)(next)', bygroups(Punctuation, Generic.Heading)),
# Compiler switches with one dash
(r'(-)(prompt|debug|v)', bygroups(Punctuation, Keyword.Keyword)),
diff --git a/pygments/lexers/html.py b/pygments/lexers/html.py
index 2e29f453..706cda39 100644
--- a/pygments/lexers/html.py
+++ b/pygments/lexers/html.py
@@ -285,7 +285,7 @@ class HamlLexer(ExtendedRegexLexer):
flags = re.IGNORECASE
# Haml can include " |\n" anywhere,
# which is ignored and used to wrap long lines.
- # To accomodate this, use this custom faux dot instead.
+ # To accommodate this, use this custom faux dot instead.
_dot = r'(?: \|\n(?=.* \|)|.)'
# In certain places, a comma at the end of the line
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py
index 4ffc5c7f..20ac9d65 100644
--- a/pygments/lexers/jvm.py
+++ b/pygments/lexers/jvm.py
@@ -334,7 +334,7 @@ class ScalaLexer(RegexLexer):
(r'(\.)(type)\b', bygroups(Punctuation, Keyword)),
],
'inline': [
- # inline is a soft modifer, only highlighted if followed by if,
+ # inline is a soft modifier, only highlighted if followed by if,
# match or parameters.
(r'\b(inline)(?=\s+(%s|%s)\s*:)' % (plainid, backQuotedId),
Keyword),
diff --git a/pygments/lexers/lilypond.py b/pygments/lexers/lilypond.py
index 9705cbad..302d6557 100644
--- a/pygments/lexers/lilypond.py
+++ b/pygments/lexers/lilypond.py
@@ -99,7 +99,7 @@ class LilyPondLexer(SchemeLexer):
# - chord: < >,
# - bar check: |,
# - dot in nested properties: \revert NoteHead.color,
- # - equals sign in assignemnts and lists for various commands:
+ # - equals sign in assignments and lists for various commands:
# \override Stem.color = red,
# - comma as alternative syntax for lists: \time 3,3,2 4/4,
# - colon in tremolos: c:32,
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py
index 5628e336..bf59ae77 100644
--- a/pygments/lexers/lisp.py
+++ b/pygments/lexers/lisp.py
@@ -119,7 +119,7 @@ class SchemeLexer(RegexLexer):
(r';.*?$', Comment.Single),
# multi-line comment
(r'#\|', Comment.Multiline, 'multiline-comment'),
- # commented form (entire sexpr folliwng)
+ # commented form (entire sexpr following)
(r'#;\s*\(', Comment, 'commented-form'),
# signifies that the program text that follows is written with the
# lexical and datum syntax described in r6rs
diff --git a/pygments/lexers/mime.py b/pygments/lexers/mime.py
index 6dcc8155..c9f6d442 100644
--- a/pygments/lexers/mime.py
+++ b/pygments/lexers/mime.py
@@ -88,7 +88,7 @@ class MIMELexer(RegexLexer):
pos_body_start = pos_body_start + 1
entire_body = entire_body[1:]
- # if it is not a mulitpart
+ # if it is not a multipart
if not self.content_type.startswith("multipart") or not self.boundary:
for i, t, v in self.get_bodypart_tokens(entire_body):
yield pos_body_start + i, t, v
diff --git a/pygments/lexers/ml.py b/pygments/lexers/ml.py
index 60bd8b9d..5fc9f4be 100644
--- a/pygments/lexers/ml.py
+++ b/pygments/lexers/ml.py
@@ -55,7 +55,7 @@ class SMLLexer(RegexLexer):
# A character constant is a sequence of the form #s, where s is a string
# constant denoting a string of size one character. This setup just parses
# the entire string as either a String.Double or a String.Char (depending
- # on the argument), even if the String.Char is an erronous
+ # on the argument), even if the String.Char is an erroneous
# multiple-character string.
def stringy(whatkind):
return [
diff --git a/pygments/lexers/pascal.py b/pygments/lexers/pascal.py
index 0d1ac3fd..1b2d2a95 100644
--- a/pygments/lexers/pascal.py
+++ b/pygments/lexers/pascal.py
@@ -363,7 +363,7 @@ class DelphiLexer(Lexer):
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 \
diff --git a/pygments/lexers/praat.py b/pygments/lexers/praat.py
index 8fbae8c5..c76ea306 100644
--- a/pygments/lexers/praat.py
+++ b/pygments/lexers/praat.py
@@ -287,7 +287,7 @@ class PraatLexer(RegexLexer):
(r'(boolean)(\s+\S+\s*)(0|1|"?(?:yes|no)"?)',
bygroups(Keyword, Text, Name.Variable)),
- # Ideally processing of the number would happend in the 'number'
+ # Ideally processing of the number would happen in the 'number'
# but that doesn't seem to work
(r'(real|natural|positive|integer)([ \t]+\S+[ \t]*)([+-]?)(\d+(?:\.\d*)?'
r'(?:[eE][-+]?\d+)?%?)',
diff --git a/pygments/lexers/prolog.py b/pygments/lexers/prolog.py
index 21c81362..7d255813 100644
--- a/pygments/lexers/prolog.py
+++ b/pygments/lexers/prolog.py
@@ -200,9 +200,9 @@ class LogtalkLexer(RegexLexer):
(r'(>>|<<|/\\|\\\\|\\)', Operator),
# Predicate aliases
(r'\bas\b', Operator),
- # Arithemtic evaluation
+ # Arithmetic evaluation
(r'\bis\b', Keyword),
- # Arithemtic comparison
+ # Arithmetic comparison
(r'(=:=|=\\=|<|=<|>=|>)', Operator),
# Term creation and decomposition
(r'=\.\.', Operator),
@@ -213,7 +213,7 @@ class LogtalkLexer(RegexLexer):
# Evaluable functors
(r'(//|[-+*/])', Operator),
(r'\b(e|pi|div|mod|rem)\b', Operator),
- # Other arithemtic functors
+ # Other arithmetic functors
(r'\b\*\*\b', Operator),
# DCG rules
(r'-->', Operator),
diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py
index d01f73e4..06c5cd65 100644
--- a/pygments/lexers/rust.py
+++ b/pygments/lexers/rust.py
@@ -104,7 +104,7 @@ class RustLexer(RegexLexer):
# Prelude (taken from Rust's src/libstd/prelude.rs)
builtin_funcs_types,
builtin_macros,
- # Path seperators, so types don't catch them.
+ # Path separators, so types don't catch them.
(r'::\b', Text),
# Types in positions.
(r'(?::|->)', Text, 'typename'),
diff --git a/pygments/lexers/scripting.py b/pygments/lexers/scripting.py
index 9a1e63d6..ad089e5d 100644
--- a/pygments/lexers/scripting.py
+++ b/pygments/lexers/scripting.py
@@ -798,7 +798,7 @@ class RexxLexer(RegexLexer):
def analyse_text(text):
"""
- Check for inital comment and patterns that distinguish Rexx from other
+ Check for initial comment and patterns that distinguish Rexx from other
C-like languages.
"""
if re.search(r'/\*\**\s*rexx', text, re.IGNORECASE):
@@ -975,7 +975,7 @@ class EasytrieveLexer(RegexLexer):
# * apostrophe (')
# * period (.)
# * comma (,)
- # * paranthesis ( and )
+ # * parenthesis ( and )
# * colon (:)
#
# Additionally words end once a '*' appears, indicatins a comment.
diff --git a/pygments/lexers/textedit.py b/pygments/lexers/textedit.py
index 0e567bca..169fdae9 100644
--- a/pygments/lexers/textedit.py
+++ b/pygments/lexers/textedit.py
@@ -83,7 +83,7 @@ class SedLexer(RegexLexer):
mimetypes = ['text/x-sed']
flags = re.MULTILINE
- # Match the contents within delimeters such as /<contents>/
+ # Match the contents within delimiters such as /<contents>/
_inside_delims = r'((?:(?:\\[^\n]|[^\\])*?\\\n)*?(?:\\.|[^\\])*?)'
tokens = {
diff --git a/pygments/lexers/urbi.py b/pygments/lexers/urbi.py
index d9c1c9f8..25ad3cd0 100644
--- a/pygments/lexers/urbi.py
+++ b/pygments/lexers/urbi.py
@@ -51,7 +51,7 @@ class UrbiscriptLexer(ExtendedRegexLexer):
ctx.pos += len(result)
return
- # if blob is well formated, yield as Escape
+ # if blob is well formatted, yield as Escape
blob_text = blob_start + ctx.text[match.end():match.end()+blob_size] + ")"
yield match.start(), String.Escape, blob_text
ctx.pos = match.end() + blob_size + 1 # +1 is the ending ")"
@@ -78,9 +78,9 @@ class UrbiscriptLexer(ExtendedRegexLexer):
'struct', 'template', 'typedef', 'typeid', 'typename', 'union',
'unsigned', 'using', 'virtual', 'volatile', 'wchar_t'), suffix=r'\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),