Skip to content

Commit

Permalink
Fix spelling errors (#4127)
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref authored Jan 3, 2025
1 parent c076d47 commit ddb0d37
Show file tree
Hide file tree
Showing 83 changed files with 444 additions and 444 deletions.
2 changes: 1 addition & 1 deletion ASP/ASP.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ contexts:
- match: '{{constants}}'
scope: support.type.vb.asp # maybe this should be constant.language.asp
- match: '{{functions}}'
scope: support.function.vb.asp # TODO: scope opening and closing parens i.e. LBound(var_name) but needs to handle (ignore) nested parens LBound((var_name)). Will also apply to things like Response.Write below. Note that parens are optional (when return value is not used) i.e. on it's own line, `LBound var_name` is valid. In other cases the parens can't be accurately scoped, because we don't know if they are for array access or method params
scope: support.function.vb.asp # TODO: scope opening and closing parens i.e. LBound(var_name) but needs to handle (ignore) nested parens LBound((var_name)). Will also apply to things like Response.Write below. Note that parens are optional (when return value is not used) i.e. on its own line, `LBound var_name` is valid. In other cases the parens can't be accurately scoped, because we don't know if they are for array access or method params
- match: '{{keywords}}'
scope: storage.type.asp
- include: operators
Expand Down
8 changes: 4 additions & 4 deletions Batch File/Batch File.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ contexts:
# b) command terminations via `&` or `|`
# and those which don't.
#
# The challange here is to correctly switch contexts to maintain both
# The challenge here is to correctly switch contexts to maintain both
# "quoted" and "grouped" states at the same time.
#
# Variables may not contain whitespace nor any kind of operator char.
Expand Down Expand Up @@ -1888,7 +1888,7 @@ contexts:
- match: =
scope:
meta.interpolation.substitution.dosbatch
keyword.operator.asignment.dosbatch
keyword.operator.assignment.dosbatch
set: variable-expansion-substitution-replacement
- match: '[^=%!]+'
scope: string.unquoted.dosbatch
Expand Down Expand Up @@ -1946,7 +1946,7 @@ contexts:
- match: =
scope:
meta.interpolation.substitution.dosbatch
keyword.operator.asignment.dosbatch
keyword.operator.assignment.dosbatch
set: variable-delayed-substitution-replacement
- match: '[^=%!]+'
scope: string.unquoted.dosbatch
Expand Down Expand Up @@ -2026,7 +2026,7 @@ contexts:

line-continuation-body:
- meta_include_prototype: false
# The first linefeed diretly following a continuation is treated literal.
# The first linefeed directly following a continuation is treated literal.
# Note: Must consume \n to work.
- match: ^\n
set: bol-pop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
{
"trigger": "title",
"kind": "function",
"details": "Change terminal window's tilte"
"details": "Change terminal window's title"
},
{
"trigger": "type",
Expand Down
50 changes: 25 additions & 25 deletions Batch File/tests/syntax_test_batch_file.bat
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ not a comment
:: <- - comment
:: ^^^^^^^^^^ - comment

::: Test Case : continuation with only litaral caret, no recursive continuation
::: Test Case : continuation with only literal caret, no recursive continuation

REM Line^
^
Expand Down Expand Up @@ -2597,13 +2597,13 @@ put arg1 arg2
:: ^^ keyword.operator.assignment.redirection.dosbatch
:: ^^^ constant.language.null.dosbatch

ECHO <contet.txt and others
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.echo.dosbatch
:: ^^^^^^^^^^^ meta.string.dosbatch meta.redirection.dosbatch - string string
ECHO <content.txt and others
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.echo.dosbatch
:: ^^^^^^^^^^^^ meta.string.dosbatch meta.redirection.dosbatch - string string

ECHO "<contet.txt and others"
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.echo.dosbatch
:: ^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - meta.interpolation - meta.redirection
ECHO "<content.txt and others"
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.echo.dosbatch
:: ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - meta.interpolation - meta.redirection

dir > f.txt 2>&1 /b
:: ^^^^^^^^^^^^^^^^^^^ meta.function-call
Expand Down Expand Up @@ -2954,11 +2954,11 @@ put arg1 arg2
:: ^^^^^ - support.function

ECHO "
:: ^ meta.string.dosbatch string.unquoted.dosbatch - constant - puntuation
:: ^ meta.string.dosbatch string.unquoted.dosbatch - constant - punctuation
:: ^ - meta.string - string

ECHO "^
:: ^^ meta.string.dosbatch string.unquoted.dosbatch - constant - puntuation
:: ^^ meta.string.dosbatch string.unquoted.dosbatch - constant - punctuation
:: ^ - meta.string - string

ECHO "^
Expand Down Expand Up @@ -2989,22 +2989,22 @@ put arg1 arg2
:: ^ - meta.command - meta.string - string

ECHO "foo"
:: ^^^^^ string.unquoted.dosbatch - constant - puntuation
:: ^^^^^ string.unquoted.dosbatch - constant - punctuation
:: ^ - meta.command - meta.string - string

ECHO "foo"bar"baz"
:: ^ - meta.string - string
:: ^^^^^^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - constant - puntuation
:: ^^^^^^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - constant - punctuation
:: ^ - meta.string - string

ECHO foo"bar>nul && echo baz
:: ^ - meta.string - string
:: ^^^^^^^^^^^^^^^^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - constant - puntuation
:: ^^^^^^^^^^^^^^^^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - constant - punctuation
:: ^ - meta.string - string

ECHO foo"bar">nul && echo baz
:: ^ - meta.string - string
:: ^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - constant - puntuation
:: ^^^^^^^^ meta.string.dosbatch string.unquoted.dosbatch - constant - punctuation
:: ^ keyword.operator.assignment.redirection.dosbatch
:: ^^^ constant.language.null.dosbatch
:: ^^ keyword.operator.logical.dosbatch
Expand Down Expand Up @@ -3219,14 +3219,14 @@ no continuation
:: ^^^ variable.other.readwrite.dosbatch
:: ^ punctuation.separator.dosbatch
:: ^^^^ string.unquoted.dosbatch
:: ^ keyword.operator.asignment.dosbatch
:: ^ keyword.operator.assignment.dosbatch
:: ^^^^ string.unquoted.dosbatch
:: ^ punctuation.section.interpolation.end.dosbatch
:: ^ punctuation.section.interpolation.begin.dosbatch
:: ^^^ variable.other.readwrite.dosbatch
:: ^ punctuation.separator.dosbatch
:: ^^^^ string.unquoted.dosbatch
:: ^ keyword.operator.asignment.dosbatch
:: ^ keyword.operator.assignment.dosbatch
:: ^^^^ string.unquoted.dosbatch
:: ^ punctuation.section.interpolation.end.dosbatch

Expand Down Expand Up @@ -3324,7 +3324,7 @@ no continuation
:: ^ punctuation.separator.dosbatch
:: ^ punctuation.section.interpolation.begin.dosbatch
:: ^ punctuation.section.interpolation.end.dosbatch
:: ^ keyword.operator.asignment.dosbatch
:: ^ keyword.operator.assignment.dosbatch
:: ^ punctuation.section.interpolation.begin.dosbatch
:: ^^^ variable.other.readwrite.dosbatch
:: ^^ punctuation.separator.dosbatch
Expand All @@ -3350,7 +3350,7 @@ no continuation
:: ^ punctuation.separator.dosbatch
:: ^ punctuation.section.interpolation.begin.dosbatch
:: ^ punctuation.section.interpolation.end.dosbatch
:: ^ keyword.operator.asignment.dosbatch
:: ^ keyword.operator.assignment.dosbatch
:: ^ punctuation.section.interpolation.begin.dosbatch
:: ^^^ variable.other.readwrite.dosbatch
:: ^^ punctuation.separator.dosbatch
Expand Down Expand Up @@ -3927,7 +3927,7 @@ no continuation
:: ^ punctuation.section.interpolation.begin.dosbatch
:: ^^^^ variable.other.readwrite.dosbatch
:: ^ punctuation.separator.dosbatch
:: ^ keyword.operator.asignment.dosbatch
:: ^ keyword.operator.assignment.dosbatch
:: ^ string.unquoted.dosbatch
:: ^ punctuation.section.interpolation.end.dosbatch

Expand Down Expand Up @@ -4731,7 +4731,7 @@ no continuation
:: ^^^^ support.function.builtin.dosbatch

:: even number of quotes in l-value
:: quoted value with missing end quotation markd
:: quoted value with missing end quotation mark
set /p today="enter %date%: not a comment & echo done
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down Expand Up @@ -4765,7 +4765,7 @@ no continuation
:: ^^^^ support.function.builtin.dosbatch

:: even number of quotes in l-value
:: quoted value with even number of quotes, & ignoredd within quotes
:: quoted value with even number of quotes, & ignored within quotes
set /p today="enter %date%: not a comment & echo done" ignored
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down Expand Up @@ -4868,7 +4868,7 @@ no continuation
:: ^ - punctuation

:: odd number of quotes in l-value
:: quoted value with missing end quotation markd
:: quoted value with missing end quotation mark
set /p today"="enter %date%: not a comment & echo done
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down Expand Up @@ -4903,7 +4903,7 @@ no continuation
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.ignored.dosbatch

:: odd number of quotes in l-value
:: quoted value with even number of quotes, & ignoredd within quotes
:: quoted value with even number of quotes, & ignored within quotes
set /p today"="enter %date%: not a comment & echo done" text
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down Expand Up @@ -5190,7 +5190,7 @@ no continuation
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.ignored.dosbatch

:: quoted prompt, even number of quotes in l-value
:: quoted value with even number of quotes, & ignoredd within quotes
:: quoted value with even number of quotes, & ignored within quotes
set /p "today="enter %date%: ignored content & echo done" end
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down Expand Up @@ -5292,7 +5292,7 @@ no continuation
:: ^^^^ support.function.builtin.dosbatch

:: quoted prompt, odd number of quotes in l-value
:: quoted value with missing end quotation markd
:: quoted value with missing end quotation mark
set /p "today"="enter %date%: not a comment & echo done
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down Expand Up @@ -5322,7 +5322,7 @@ no continuation
:: ^^^^ support.function.builtin.dosbatch

:: quoted prompt, odd number of quotes in l-value
:: quoted value with even number of quotes, & ignoredd within quotes
:: quoted value with even number of quotes, & ignored within quotes
set /p "today"="enter %date%: not a comment & echo done" text
:: ^^^^^^^ meta.command.set.dosbatch - meta.string
:: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.command.set.dosbatch meta.prompt.dosbatch - meta.string
Expand Down
2 changes: 1 addition & 1 deletion C#/tests/syntax_test_Comments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Hello
void dcscmm(Transpose TransA, int m, int n, int k,
double alpha,
double[] val, int offsetval,
int[] indx, int offsetindx,
int[] idx, int offsetidx,
int[] pntrb, int offsetpntrb,
//int[] pntre, int offsetpntre,
double[] b, int offsetb, int ldb,
Expand Down
4 changes: 2 additions & 2 deletions C#/tests/syntax_test_Using.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void UsingFont([Usage("help text")] string x)
/// ^ meta.method meta.block meta.block punctuation.section.block.end
}

public void dcsrmm(double[] val, int offsetval, int[] indx, int offsetindx, int[] pntrb, int offsetpntrb, double[] b, int offsetb, int ldb, double beta, double[] c, int offsetc, int ldc)
public void dcsrmm(double[] val, int offsetval, int[] idx, int offsetidx, int[] pntrb, int offsetpntrb, double[] b, int offsetb, int ldb, double beta, double[] c, int offsetc, int ldc)
{
fixed (Double* bp = &b[offsetb])
/// ^ keyword.control.other.fixed
Expand All @@ -122,7 +122,7 @@ public void dcsrmm(double[] val, int offsetval, int[] indx, int offsetindx, int[
/// ^ punctuation.separator.variables
/// ^ punctuation.section.group.end
{
cblas_dcsrmm(valp, indxp, pntrbp, bp, ldb, beta, cp, ldc);
cblas_dcsrmm(valp, idxp, pntrbp, bp, ldb, beta, cp, ldc);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion C#/tests/syntax_test_indentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void IndentationTest (int arg1) {
default:
Console.WriteLine("More than 10");
break;
// NOTE (continutation)... because they can only unindent one level at a time and here would need 2 levels
// NOTE (continuation)... because they can only unindent one level at a time and here would need 2 levels
}

var myValue = (args.Length > 0) switch { true => int.Parse(args[0]), _ => 4 };
Expand Down
4 changes: 2 additions & 2 deletions C++/C++ Standard Includes.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"kind": ["namespace", "h", "Header"]
},
{
// C-style time/date utilites
// C-style time/date utilities
"trigger": "ctime",
"contents": "ctime",
"kind": ["namespace", "h", "Header"]
Expand Down Expand Up @@ -123,7 +123,7 @@
"kind": ["namespace", "h", "Header"]
},

// Dynmamic memory management utilities
// Dynamic memory management utilities
{
// Low-level memory management utilities
"trigger": "new",
Expand Down
2 changes: 1 addition & 1 deletion C++/C++.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ contexts:
# Reusable contexts
#
# The follow contexts are currently constructed to be reused in the
# Objetive-C++ syntax. They are specifically constructed to not push into
# Objective-C++ syntax. They are specifically constructed to not push into
# sub-contexts, which ensures that Objective-C++ code isn't accidentally
# lexed as plain C++.
#
Expand Down
2 changes: 1 addition & 1 deletion C++/syntax_test_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ int f(int x, \
/* <- keyword.control.import */ \
/* ^ string.unquoted */ \
be splitted into two lines to prevent large lines. // comment
#error "Eplicitly quoted string wrapped, \
#error "Explicitly quoted string wrapped, \
ensuring that the string quoting stops at some point \
"
#warning This is a short warning
Expand Down
2 changes: 1 addition & 1 deletion C++/syntax_test_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ A<B<C>> f(std::function<A<B<C>>()> g) {
}
int main() {
std::function<C()> foo1;
/* ^ - variabe.function */
/* ^ - variable.function */
std::function<B<C>()> foo2;
/* ^ - variable.function */
auto f = [](std::function<A<B<C>>()> g) { return g(); };
Expand Down
8 changes: 4 additions & 4 deletions CSS/CSS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ variables:

logical_operators: (?i:and|or|not|only)

# Block punctuations
# Block punctuation
# Provides an easy and safe interface for template syntaxes to override
# block punctuation patterns to prevent ambiguities with interpolations.
# It helps to correctly highlight {{ tag }} { {{prop}}: {{value}} }
Expand Down Expand Up @@ -1235,7 +1235,7 @@ contexts:
- meta_scope: entity.other.attribute-name.class.css
- include: identifier-content

# Id Selectors
# ID Selectors
# https://drafts.csswg.org/selectors-4/#id-selectors
selector-ids:
- match: \#
Expand Down Expand Up @@ -2425,10 +2425,10 @@ contexts:
- match: \b(?i:(?:repeating-)?linear-gradient)(?=\()
scope: meta.function-call.identifier.css support.function.gradient.css
push:
- linear-gradient-function-argurments-list-body
- linear-gradient-function-arguments-list-body
- function-arguments-list-begin

linear-gradient-function-argurments-list-body:
linear-gradient-function-arguments-list-body:
- meta_content_scope: meta.function-call.arguments.css meta.group.css
- include: function-arguments-prototype
- include: comma-delimiters
Expand Down
2 changes: 1 addition & 1 deletion CSS/Default.sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
]
},
// Move the caret to the next line and leave the terminating semicolon untouched.
// This is to not bother with semicolons even though completions end up with the caret directy in front of it.
// This is to not bother with semicolons even though completions end up with the caret directly in front of it.
{ "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro", "hide_from_menu": true} , "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
Expand Down
2 changes: 1 addition & 1 deletion CSS/Indentation Rules.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<string><![CDATA[(?x)
# any text
^.*
# follwed by opening bracket
# followed by opening bracket
[(\[{]
# optionally followed by...
(?<balanced>
Expand Down
Loading

0 comments on commit ddb0d37

Please sign in to comment.