summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm')
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm29
1 files changed, 16 insertions, 13 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm
index 8a9a100dc26..e50c66d25d0 100644
--- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm
+++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Tokens.pm
@@ -26,28 +26,31 @@ my $ifelsefiSpecial = "!-!";
# the %tokens hash is passed around many modules
our %tokens = (
- environment=>$beginningToken."ENVIRONMENT",
- ifelsefiSpecial=>$ifelsefiSpecial,
- ifelsefi=>$ifelsefiSpecial.$beginningToken."IFELSEFI",
- item=>$beginningToken."ITEMS",
+ # user-facing naming convention
+ environments=>$beginningToken."ENVIRONMENT",
+ commands=>$beginningToken."COMMAND",
+ optionalArguments=>$beginningToken."OPTIONAL-ARGUMENT",
+ mandatoryArguments=>$beginningToken."MANDATORY-ARGUMENT",
+ ifElseFi=>$ifelsefiSpecial.$beginningToken."IFELSEFI",
+ items=>$beginningToken."ITEMS",
+ keyEqualsValuesBracesBrackets=>$beginningToken."KEY-VALUE-BRACES",
+ namedGroupingBracesBrackets=>$beginningToken."GROUPING-BRACES",
+ UnNamedGroupingBracesBrackets=>$beginningToken."UN-NAMED-GROUPING-BRACES",
+ specialBeginEnd=>$beginningToken."SPECIAL",
+ afterHeading=>$beginningToken."HEADING",
+ filecontents=>$beginningToken."FILECONTENTS",
+ # internal-facing naming convention
trailingComment=>"latexindenttrailingcomment",
+ ifelsefiSpecial=>$ifelsefiSpecial,
blanklines=>$beginningToken."blank-line",
arguments=>$beginningToken."ARGUMENTS",
- optionalArgument=>$beginningToken."OPTIONAL-ARGUMENT",
- mandatoryArgument=>$beginningToken."MANDATORY-ARGUMENT",
roundBracket=>$beginningToken."ROUND-BRACKET",
verbatim=>$beginningToken."VERBATIM",
- command=>$beginningToken."COMMAND",
- key_equals_values_braces=>$beginningToken."KEY-VALUE-BRACES",
- groupingBraces=>$beginningToken."GROUPING-BRACES",
- unNamedgroupingBraces=>$beginningToken."UN-NAMED-GROUPING-BRACES",
- special=>$beginningToken."SPECIAL",
- heading=>$beginningToken."HEADING",
- filecontents=>$beginningToken."FILECONTENTS",
preamble=>$beginningToken."preamble",
beginOfToken=>$beginningToken,
doubleBackSlash=>$beginningToken."DOUBLEBACKSLASH",
alignmentBlock=>$beginningToken."ALIGNMENTBLOCK",
+ paragraph=>$beginningToken."PARA",
endOfToken=>"-END",
);