Skip to content

Commit

Permalink
[Perl] Rename concat operator scope (#2766)
Browse files Browse the repository at this point in the history
This commit renames concat operator scope
  from: `keyword.operator.concat.perl`
  to: `keyword.operator.concatenation.perl`

for consistency with LUA and D.
  • Loading branch information
deathaxe authored Apr 8, 2021
1 parent 1dcb05b commit 1c712d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Perl/Perl.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ contexts:
push: expressions-begin
# string concat
- match: \.=?
scope: keyword.operator.concat.perl
scope: keyword.operator.concatenation.perl
push: expressions-begin
# string concation
# "string" x 10
Expand Down
18 changes: 9 additions & 9 deletions Perl/syntax_test_perl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,9 @@ =head1 B<--param>
~
# ^ keyword.operator.bitwise.perl
.
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
.=
# ^^ keyword.operator.concat.perl
# ^^ keyword.operator.concatenation.perl
..
# ^^ keyword.operator.range.perl
\ \\ \\\
Expand Down Expand Up @@ -1205,7 +1205,7 @@ =head1 B<--param>
0b1.0b1
# ^^ meta.number.integer.binary.perl constant.numeric.base.perl
# ^ meta.number.integer.binary.perl constant.numeric.value.perl
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^ meta.number.integer.binary.perl constant.numeric.base.perl
# ^ meta.number.integer.binary.perl constant.numeric.value.perl
0b11__011 # binary integer
Expand Down Expand Up @@ -1242,7 +1242,7 @@ =head1 B<--param>
0x9.0x10 # hexadecimal integer
# ^^ meta.number.integer.hexadecimal.perl constant.numeric.base.perl
# ^ meta.number.integer.hexadecimal.perl constant.numeric.value.perl
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^ meta.number.integer.hexadecimal.perl constant.numeric.base.perl
# ^^ meta.number.integer.hexadecimal.perl constant.numeric.value.perl
01.1 # normal float
Expand Down Expand Up @@ -1550,7 +1550,7 @@ =head1 B<--param>
# ^ keyword.operator.dereference.perl
# ^ punctuation.definition.variable.begin.perl
# ^^^^^^^^^^^^^ string.quoted.double.perl
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^^^ variable.other.readwrite.perl
# ^ punctuation.section.item-access.begin.perl
# ^^^ constant.other.key.perl
Expand Down Expand Up @@ -3452,9 +3452,9 @@ =head1 B<--param>
# ^^^^^^^^^^^^^^^^^^^ meta.preprocessor.require.perl - meta.path
# ^^^^^^^ keyword.control.import.require.perl
# ^^^ meta.string.perl string.unquoted.perl
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^^^ variable.other.readwrite.perl
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^ variable.function.perl
# ^ punctuation.terminator.statement.perl
require-name;
Expand All @@ -3468,7 +3468,7 @@ =head1 B<--param>
# ^^^^^^^^^^^^ meta.preprocessor.require.perl - meta.path
# ^ - meta.preprocessor.require
# ^^^^^^^ keyword.control.import.require.perl
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^^^ variable.function.perl
# ^ punctuation.terminator.statement.perl
CORE::require;
Expand Down Expand Up @@ -3733,7 +3733,7 @@ =head1 B<--param>
# ^^^^^^^ support.function.perl
# ^^^^^ meta.string.perl string.quoted.double.perl
# ^^ constant.other.placeholder
# ^ keyword.operator.concat.perl
# ^ keyword.operator.concatenation.perl
# ^^^^^^ meta.string.perl string.quoted.double.perl
# ^^^^ constant.other.placeholder
# ^ keyword.operator.arithmetic.perl
Expand Down

0 comments on commit 1c712d5

Please sign in to comment.