on master help sign in
808 files changed+61380−5889
since splitsnapshots
unifiedsplit
.github/.codecov.yml+1 .github/FUNDING.yml+1−3 .github/ISSUE_TEMPLATE/bug_report.md+41−16 .github/ISSUE_TEMPLATE/config.yml−1 .github/ISSUE_TEMPLATE/feature_request.md+9 .github/ISSUE_TEMPLATE/question.md+11 .github/ISSUE_TEMPLATE/syntax_request.md+2−2 .github/dependabot.yml+18 .github/workflows/CICD.yml+482 .gitignore+3 .gitmodules+133−62 .travis.yml−107 CHANGELOG.md+1020 CONTRIBUTING.md+70 Cargo.lock+648−1013 Cargo.toml+69−31 LICENSE-MIT+1−1 NOTICE+6 README.md+283−93 appveyor.yml−49 assets/README.md−41 assets/acknowledgements.bin assets/completions/_bat.ps1.in+92 assets/completions/bat.bash.in+101 assets/completions/bat.fish.in+4−2 assets/completions/bat.zsh.in+99 assets/create.sh+25−9 assets/manual/bat.1.in+146−68 assets/patches/C#.sublime-syntax.patch+13 assets/patches/Groff.sublime-syntax.patch+16 assets/JavaDoc.sublime-syntax.patch → assets/patches/JavaDoc.sublime-syntax.patch+3−3 assets/patches/Makefile.sublime-syntax.patch+81 assets/patches/Markdown.sublime-syntax.patch+177 assets/patches/MediaWiki.sublime-syntax.patch+13 assets/patches/Monokai-Extended.tmTheme.patch+36 assets/patches/Python.sublime-syntax.patch+15 assets/patches/Rust.sublime-syntax.patch+13 assets/patches/ShellScript.sublime-syntax.patch+20 assets/patches/XML.sublime-syntax.patch+12 assets/syntaxes.bin assets/syntaxes/01_Packages+1 assets/syntaxes/02_Extra/AWK+1 assets/syntaxes/02_Extra/Apache+1 assets/syntaxes/02_Extra/Apache.sublime-syntax+221 assets/syntaxes/02_Extra/AsciiDoc+1 assets/syntaxes/02_Extra/AsciiDoc.sublime-syntax+997 assets/syntaxes/Assembly (ARM) → assets/syntaxes/02_Extra/Assembly (ARM) assets/syntaxes/Assembly (ARM).sublime-syntax → assets/syntaxes/02_Extra/Assembly (ARM).sublime-syntax assets/syntaxes/Assembly (x86_64).sublime-syntax → assets/syntaxes/02_Extra/Assembly (x86_64).sublime-syntax assets/syntaxes/02_Extra/CMake+1 assets/syntaxes/02_Extra/CSV.sublime-syntax+78 assets/syntaxes/Cabal.sublime-syntax → assets/syntaxes/02_Extra/Cabal.sublime-syntax assets/syntaxes/02_Extra/CoffeeScript+1 assets/syntaxes/02_Extra/CoffeeScript.sublime-syntax+271 assets/syntaxes/CpuInfo.sublime-syntax → assets/syntaxes/02_Extra/CpuInfo.sublime-syntax assets/syntaxes/02_Extra/Crystal+1 assets/syntaxes/Crystal.sublime-syntax → assets/syntaxes/02_Extra/Crystal.sublime-syntax+4−3 assets/syntaxes/02_Extra/Dart+1 assets/syntaxes/02_Extra/Dart.sublime-syntax+211 assets/syntaxes/Docker → assets/syntaxes/02_Extra/Docker assets/syntaxes/02_Extra/DotENV+1 assets/syntaxes/DotENV.sublime-syntax → assets/syntaxes/02_Extra/DotENV.sublime-syntax+4−2 assets/syntaxes/02_Extra/Elixir+1 assets/syntaxes/02_Extra/Elm+1 assets/syntaxes/02_Extra/Email+1 assets/syntaxes/02_Extra/FSharp+1 assets/syntaxes/02_Extra/Fish+1 assets/syntaxes/02_Extra/Fortran+1 assets/syntaxes/Fstab.sublime-syntax → assets/syntaxes/02_Extra/Fstab.sublime-syntax+2 assets/syntaxes/02_Extra/GLSL+1 assets/syntaxes/02_Extra/GraphQL+1 assets/syntaxes/02_Extra/Groff+1 assets/syntaxes/Group.sublime-syntax → assets/syntaxes/02_Extra/Group.sublime-syntax assets/syntaxes/HTML (Twig) → assets/syntaxes/02_Extra/HTML (Twig) assets/syntaxes/HTML (Twig).sublime-syntax → assets/syntaxes/02_Extra/HTML (Twig).sublime-syntax assets/syntaxes/Hosts.sublime-syntax → assets/syntaxes/02_Extra/Hosts.sublime-syntax assets/syntaxes/INI → assets/syntaxes/02_Extra/INI assets/syntaxes/INI.sublime-syntax → assets/syntaxes/02_Extra/INI.sublime-syntax+4−3 assets/syntaxes/02_Extra/JavaScript (Babel)+1 assets/syntaxes/Javascript (Babel).sublime-syntax → assets/syntaxes/02_Extra/JavaScript (Babel).sublime-syntax+2 assets/syntaxes/Jinja2 → assets/syntaxes/02_Extra/Jinja2 assets/syntaxes/Jsonnet → assets/syntaxes/02_Extra/Jsonnet assets/syntaxes/02_Extra/Julia+1 assets/syntaxes/Kotlin → assets/syntaxes/02_Extra/Kotlin assets/syntaxes/Kotlin.sublime-syntax → assets/syntaxes/02_Extra/Kotlin.sublime-syntax assets/syntaxes/02_Extra/LESS+1 assets/syntaxes/02_Extra/LLVM+1 assets/syntaxes/02_Extra/Lean+1 assets/syntaxes/02_Extra/Lean.sublime-syntax+125 assets/syntaxes/02_Extra/LiveScript+1 assets/syntaxes/02_Extra/LiveScript.sublime-syntax+400 assets/syntaxes/02_Extra/Manpage.sublime-syntax+171 assets/syntaxes/02_Extra/MediaWiki+1 assets/syntaxes/MemInfo.sublime-syntax → assets/syntaxes/02_Extra/MemInfo.sublime-syntax assets/syntaxes/02_Extra/Nginx+1 assets/syntaxes/Nim.sublime-syntax → assets/syntaxes/02_Extra/Nim.sublime-syntax+1 assets/syntaxes/02_Extra/Ninja+1 assets/syntaxes/02_Extra/Ninja.sublime-syntax+52 assets/syntaxes/Nix → assets/syntaxes/02_Extra/Nix assets/syntaxes/Nix.sublime-syntax → assets/syntaxes/02_Extra/Nix.sublime-syntax assets/syntaxes/Org mode → assets/syntaxes/02_Extra/Org mode assets/syntaxes/Org mode.sublime-syntax → assets/syntaxes/02_Extra/Org mode.sublime-syntax assets/syntaxes/Passwd.sublime-syntax → assets/syntaxes/02_Extra/Passwd.sublime-syntax assets/syntaxes/02_Extra/PowerShell+1 assets/syntaxes/PowerShell.sublime-syntax → assets/syntaxes/02_Extra/PowerShell.sublime-syntax+58−48 assets/syntaxes/Protobuf → assets/syntaxes/02_Extra/Protobuf assets/syntaxes/Puppet → assets/syntaxes/02_Extra/Puppet assets/syntaxes/PureScript → assets/syntaxes/02_Extra/PureScript assets/syntaxes/02_Extra/QML+1 assets/syntaxes/02_Extra/QML.sublime-syntax+103 assets/syntaxes/02_Extra/Racket+1 assets/syntaxes/02_Extra/Racket.sublime-syntax+52 assets/syntaxes/02_Extra/Rego.sublime-syntax+97 assets/syntaxes/Resolv.sublime-syntax → assets/syntaxes/02_Extra/Resolv.sublime-syntax assets/syntaxes/Robot → assets/syntaxes/02_Extra/Robot assets/syntaxes/Robot.sublime-syntax → assets/syntaxes/02_Extra/Robot.sublime-syntax+2−1 assets/syntaxes/02_Extra/SCSS_Sass+1 assets/syntaxes/SLS → assets/syntaxes/02_Extra/SLS assets/syntaxes/02_Extra/SML.sublime-syntax+33 assets/syntaxes/02_Extra/Slim+1 assets/syntaxes/02_Extra/Slim.sublime-syntax+306 assets/syntaxes/Strace → assets/syntaxes/02_Extra/Strace assets/syntaxes/02_Extra/Stylus+1 assets/syntaxes/02_Extra/Stylus.sublime-syntax+711 assets/syntaxes/02_Extra/SublimeEthereum+1 assets/syntaxes/02_Extra/SublimeJQ+1 assets/syntaxes/02_Extra/Svelte+1 assets/syntaxes/Swift → assets/syntaxes/02_Extra/Swift assets/syntaxes/Swift.sublime-syntax → assets/syntaxes/02_Extra/Swift.sublime-syntax assets/syntaxes/02_Extra/SystemVerilog+1 assets/syntaxes/02_Extra/TOML+1 assets/syntaxes/02_Extra/Terraform+1 assets/syntaxes/02_Extra/TypeScript+1 assets/syntaxes/TypeScript.sublime-syntax → assets/syntaxes/02_Extra/TypeScript.sublime-syntax+296−185 assets/syntaxes/TypsecriptReact.sublime-syntax → assets/syntaxes/02_Extra/TypsecriptReact.sublime-syntax+896−477 assets/syntaxes/Verilog → assets/syntaxes/02_Extra/Verilog assets/syntaxes/Verilog.sublime-syntax → assets/syntaxes/02_Extra/Verilog.sublime-syntax assets/syntaxes/02_Extra/VimL+1 assets/syntaxes/Vue → assets/syntaxes/02_Extra/Vue assets/syntaxes/02_Extra/Zig+1 assets/syntaxes/02_Extra/cmd-help+1 assets/syntaxes/02_Extra/gnuplot+1 assets/syntaxes/02_Extra/gnuplot.sublime-syntax+182 assets/syntaxes/hosts → assets/syntaxes/02_Extra/hosts assets/syntaxes/02_Extra/http-request-response+1 assets/syntaxes/02_Extra/log.sublime-syntax+140 assets/syntaxes/show-nonprintable.sublime-syntax → assets/syntaxes/02_Extra/show-nonprintable.sublime-syntax+1−1 assets/syntaxes/02_Extra/ssh-config+1 assets/syntaxes/02_Extra/syntax_test_csv.csv+60 assets/syntaxes/02_Extra/syntax_test_man.man+162 assets/syntaxes/02_Extra/syntax_test_tsv.tsv+60 assets/syntaxes/02_Extra/syslog.sublime-syntax+63 assets/syntaxes/varlink → assets/syntaxes/02_Extra/varlink assets/syntaxes/AWK−1 assets/syntaxes/AsciiDoc−1 assets/syntaxes/AsciiDoc.sublime-syntax−283 assets/syntaxes/CMake−1 assets/syntaxes/CSV−1 assets/syntaxes/CSV.sublime-syntax−46 assets/syntaxes/Cabal−1 assets/syntaxes/Crystal−1 assets/syntaxes/Dart−1 assets/syntaxes/Dart.sublime-syntax−369 assets/syntaxes/DotENV−1 assets/syntaxes/Elixir−1 assets/syntaxes/Elm−1 assets/syntaxes/FSharp−1 assets/syntaxes/FSharp.sublime-syntax−672 assets/syntaxes/Fish−1 assets/syntaxes/GraphQL−1 assets/syntaxes/JavaScript (Babel)−1 assets/syntaxes/Julia−1 assets/syntaxes/LESS−1 assets/syntaxes/Manpage.sublime-syntax−53 assets/syntaxes/Packages−1 assets/syntaxes/PowerShell−1 assets/syntaxes/SCSS_Sass−1 assets/syntaxes/Syslog−1 assets/syntaxes/TOML−1 assets/syntaxes/Terraform−1 assets/syntaxes/TypeScript−1 assets/syntaxes/VimL−1 assets/syntaxes/VimL.sublime-syntax−91 assets/syntaxes/requirementstxt−1 assets/syntaxes/requirementstxt.sublime-syntax−19 assets/syntaxes/ssh-config−1 assets/themes.bin assets/themes/Coldark+1 assets/themes/Solarized+1 assets/themes/ansi-light.tmTheme → assets/themes/ansi.tmTheme+13−87 assets/themes/ansi-dark.tmTheme → assets/themes/base16-256.tmTheme+69−22 assets/themes/base16.tmTheme+9−2 assets/themes/dracula-sublime+1−1 assets/themes/gruvbox+1 assets/themes/onehalf+1−1 assets/themes/solarized-sublime−1 assets/themes/visual-studio-dark-plus+1 assets/themes/zenburn+1−1 build.rs+68−55 ci/before_deploy.bash−187 ci/before_deploy.ps1−28 ci/before_install.bash−38 ci/script.bash−14 ci/.gitattributes → diagnostics/.gitattributes diagnostics/info.sh+105−38 doc/README-ja.md+303−107 doc/README-ko.md+835 doc/README-ru.md+597 doc/README-zh.md+678 doc/alternatives.md+40−1 doc/assets.md+100 doc/logo-header.svg+1−1 doc/release-checklist.md+73 doc/sponsors.md+14 doc/sponsors/workos-logo-white-bg.svg+11 examples/advanced.rs+18 examples/cat.rs+13 examples/inputs.rs+19 examples/list_syntaxes_and_themes.rs+18 examples/simple.rs+3−32 examples/yaml.rs+35 rustfmt.toml+1 src/assets.rs+639−172 src/assets/assets_metadata.rs+82 src/assets/build_assets.rs+176 src/assets/build_assets/acknowledgements.rs+222 src/assets/lazy_theme_set.rs+104 src/assets/serialized_syntax_set.rs+27 src/bin/bat/app.rs+141−85 src/bin/bat/assets.rs+65 src/bin/bat/clap_app.rs+213−51 src/bin/bat/config.rs+77−6 src/bin/bat/directories.rs+72 src/bin/bat/input.rs+20 src/bin/bat/main.rs+210−58 src/config.rs+114 src/controller.rs+169−59 src/decorations.rs+12−8 src/diff.rs+3−2 src/dirs.rs−57 src/error.rs+65 src/input.rs+352 src/inputfile.rs−136 src/less.rs+81−12 src/lib.rs+44−119 src/line_range.rs+139−29 src/macros.rs+7 src/output.rs+113−87 src/pager.rs+123 src/paging.rs+12 src/preprocessor.rs+20−13 src/pretty_printer.rs+357 src/printer.rs+310−203 src/style.rs+77−51 src/syntax_mapping.rs+235−18 src/syntax_mapping/ignored_suffixes.rs+107 src/terminal.rs+49−19 src/vscreen.rs+212 src/wrapping.rs+12 tests/.gitattributes+12−4 tests/assets.rs+42 tests/benchmarks/.gitignore+1 tests/benchmarks/comparison.sh−31 tests/benchmarks/highlighting-speed-src/grep-output-ansi-sequences.txt+2272 tests/benchmarks/test-src/jquery-3.3.1.js → tests/benchmarks/highlighting-speed-src/jquery.js tests/benchmarks/test-src/miniz.c → tests/benchmarks/highlighting-speed-src/miniz.c tests/benchmarks/highlighting-speed-src/numpy_test_multiarray.py+8471 tests/benchmarks/many-small-files/small-file-0.txt+1 tests/benchmarks/many-small-files/small-file-1.txt+1 tests/benchmarks/many-small-files/small-file-10.txt+1 tests/benchmarks/many-small-files/small-file-100.txt+1 tests/benchmarks/many-small-files/small-file-11.txt+1 tests/benchmarks/many-small-files/small-file-12.txt+1 tests/benchmarks/many-small-files/small-file-13.txt+1 tests/benchmarks/many-small-files/small-file-14.txt+1 tests/benchmarks/many-small-files/small-file-15.txt+1 tests/benchmarks/many-small-files/small-file-16.txt+1 tests/benchmarks/many-small-files/small-file-17.txt+1 tests/benchmarks/many-small-files/small-file-18.txt+1 tests/benchmarks/many-small-files/small-file-19.txt+1 tests/benchmarks/many-small-files/small-file-2.txt+1 tests/benchmarks/many-small-files/small-file-20.txt+1 tests/benchmarks/many-small-files/small-file-21.txt+1 tests/benchmarks/many-small-files/small-file-22.txt+1 tests/benchmarks/many-small-files/small-file-23.txt+1 tests/benchmarks/many-small-files/small-file-24.txt+1 tests/benchmarks/many-small-files/small-file-25.txt+1 tests/benchmarks/many-small-files/small-file-26.txt+1 tests/benchmarks/many-small-files/small-file-27.txt+1 tests/benchmarks/many-small-files/small-file-28.txt+1 tests/benchmarks/many-small-files/small-file-29.txt+1 tests/benchmarks/many-small-files/small-file-3.txt+1 tests/benchmarks/many-small-files/small-file-30.txt+1 tests/benchmarks/many-small-files/small-file-31.txt+1 tests/benchmarks/many-small-files/small-file-32.txt+1 tests/benchmarks/many-small-files/small-file-33.txt+1 tests/benchmarks/many-small-files/small-file-34.txt+1 tests/benchmarks/many-small-files/small-file-35.txt+1 tests/benchmarks/many-small-files/small-file-36.txt+1 tests/benchmarks/many-small-files/small-file-37.txt+1 tests/benchmarks/many-small-files/small-file-38.txt+1 tests/benchmarks/many-small-files/small-file-39.txt+1 tests/benchmarks/many-small-files/small-file-4.txt+1 tests/benchmarks/many-small-files/small-file-40.txt+1 tests/benchmarks/many-small-files/small-file-41.txt+1 tests/benchmarks/many-small-files/small-file-42.txt+1 tests/benchmarks/many-small-files/small-file-43.txt+1 tests/benchmarks/many-small-files/small-file-44.txt+1 tests/benchmarks/many-small-files/small-file-45.txt+1 tests/benchmarks/many-small-files/small-file-46.txt+1 tests/benchmarks/many-small-files/small-file-47.txt+1 tests/benchmarks/many-small-files/small-file-48.txt+1 tests/benchmarks/many-small-files/small-file-49.txt+1 tests/benchmarks/many-small-files/small-file-5.txt+1 tests/benchmarks/many-small-files/small-file-50.txt+1 tests/benchmarks/many-small-files/small-file-51.txt+1 tests/benchmarks/many-small-files/small-file-52.txt+1 tests/benchmarks/many-small-files/small-file-53.txt+1 tests/benchmarks/many-small-files/small-file-54.txt+1 tests/benchmarks/many-small-files/small-file-55.txt+1 tests/benchmarks/many-small-files/small-file-56.txt+1 tests/benchmarks/many-small-files/small-file-57.txt+1 tests/benchmarks/many-small-files/small-file-58.txt+1 tests/benchmarks/many-small-files/small-file-59.txt+1 tests/benchmarks/many-small-files/small-file-6.txt+1 tests/benchmarks/many-small-files/small-file-60.txt+1 tests/benchmarks/many-small-files/small-file-61.txt+1 tests/benchmarks/many-small-files/small-file-62.txt+1 tests/benchmarks/many-small-files/small-file-63.txt+1 tests/benchmarks/many-small-files/small-file-64.txt+1 tests/benchmarks/many-small-files/small-file-65.txt+1 tests/benchmarks/many-small-files/small-file-66.txt+1 tests/benchmarks/many-small-files/small-file-67.txt+1 tests/benchmarks/many-small-files/small-file-68.txt+1 tests/benchmarks/many-small-files/small-file-69.txt+1 tests/benchmarks/many-small-files/small-file-7.txt+1 tests/benchmarks/many-small-files/small-file-70.txt+1 tests/benchmarks/many-small-files/small-file-71.txt+1 tests/benchmarks/many-small-files/small-file-72.txt+1 tests/benchmarks/many-small-files/small-file-73.txt+1 tests/benchmarks/many-small-files/small-file-74.txt+1 tests/benchmarks/many-small-files/small-file-75.txt+1 tests/benchmarks/many-small-files/small-file-76.txt+1 tests/benchmarks/many-small-files/small-file-77.txt+1 tests/benchmarks/many-small-files/small-file-78.txt+1 tests/benchmarks/many-small-files/small-file-79.txt+1 tests/benchmarks/many-small-files/small-file-8.txt+1 tests/benchmarks/many-small-files/small-file-80.txt+1 tests/benchmarks/many-small-files/small-file-81.txt+1 tests/benchmarks/many-small-files/small-file-82.txt+1 tests/benchmarks/many-small-files/small-file-83.txt+1 tests/benchmarks/many-small-files/small-file-84.txt+1 tests/benchmarks/many-small-files/small-file-85.txt+1 tests/benchmarks/many-small-files/small-file-86.txt+1 tests/benchmarks/many-small-files/small-file-87.txt+1 tests/benchmarks/many-small-files/small-file-88.txt+1 tests/benchmarks/many-small-files/small-file-89.txt+1 tests/benchmarks/many-small-files/small-file-9.txt+1 tests/benchmarks/many-small-files/small-file-90.txt+1 tests/benchmarks/many-small-files/small-file-91.txt+1 tests/benchmarks/many-small-files/small-file-92.txt+1 tests/benchmarks/many-small-files/small-file-93.txt+1 tests/benchmarks/many-small-files/small-file-94.txt+1 tests/benchmarks/many-small-files/small-file-95.txt+1 tests/benchmarks/many-small-files/small-file-96.txt+1 tests/benchmarks/many-small-files/small-file-97.txt+1 tests/benchmarks/many-small-files/small-file-98.txt+1 tests/benchmarks/many-small-files/small-file-99.txt+1 tests/benchmarks/run-benchmarks.sh+139−17 tests/benchmarks/startup-time-src/small-CpuInfo-file.cpuinfo+1 tests/benchmarks/startup-time-src/small-Markdown-file.md+3 tests/benchmarks/test-src/jquery-3.3.1.min.js−2 tests/examples/git/.config/git/config+3 tests/examples/git/.gitconfig+3 tests/examples/longline.json+3 tests/examples/nonprintable.txt tests/examples/regression_tests/first_line_fallback.invalid-syntax+2 tests/examples/regression_tests/issue_190.md+3 tests/examples/regression_tests/issue_28.md+4 tests/examples/regression_tests/issue_314.hs+4 tests/examples/regression_tests/issue_914.rb+3 tests/examples/regression_tests/issue_915.vue+2 tests/examples/regression_tests/issue_985.js+5 tests/examples/test.binary tests/examples/test.json.suffix+1 tests/examples/test.json~+1 tests/integration_tests.rs+1033−30 tests/mocked-pagers/more+2 tests/mocked-pagers/more.bat+1 tests/mocked-pagers/most+2 tests/mocked-pagers/most.bat+1 tests/no_duplicate_extensions.rs+38 tests/scripts/find-slow-to-highlight-files.py+125 tests/scripts/license-checks.sh+24 tests/snapshot_tests.rs+11−1 tests/snapshots/generate_snapshots.py+1−1 tests/snapshots/output/changes.snapshot.txt+1 tests/snapshots/output/changes_grid.snapshot.txt+1 tests/snapshots/output/changes_grid_header.snapshot.txt+1 tests/snapshots/output/changes_grid_header_numbers.snapshot.txt+23−22 tests/snapshots/output/changes_grid_header_numbers_rule.snapshot.txt+27 tests/snapshots/output/changes_grid_header_rule.snapshot.txt+27 tests/snapshots/output/changes_grid_numbers.snapshot.txt+23−22 tests/snapshots/output/changes_grid_numbers_rule.snapshot.txt+25 tests/snapshots/output/changes_grid_rule.snapshot.txt+25 tests/snapshots/output/changes_header.snapshot.txt+1 tests/snapshots/output/changes_header_numbers.snapshot.txt+23−22 tests/snapshots/output/changes_header_numbers_rule.snapshot.txt+24 tests/snapshots/output/changes_header_rule.snapshot.txt+24 tests/snapshots/output/changes_numbers.snapshot.txt+23−22 tests/snapshots/output/changes_numbers_rule.snapshot.txt+23 tests/snapshots/output/changes_rule.snapshot.txt+23 tests/snapshots/output/full.snapshot.txt+24−22 tests/snapshots/output/grid.snapshot.txt+1 tests/snapshots/output/grid_header.snapshot.txt+1 tests/snapshots/output/grid_header_numbers.snapshot.txt+23−22 tests/snapshots/output/grid_header_numbers_rule.snapshot.txt+27 tests/snapshots/output/grid_header_rule.snapshot.txt+27 tests/snapshots/output/grid_numbers.snapshot.txt+23−22 tests/snapshots/output/grid_numbers_rule.snapshot.txt+25 tests/snapshots/output/grid_rule.snapshot.txt+25 tests/snapshots/output/header.snapshot.txt+1 tests/snapshots/output/header_numbers.snapshot.txt+23−22 tests/snapshots/output/header_numbers_rule.snapshot.txt+24 tests/snapshots/output/header_rule.snapshot.txt+24 tests/snapshots/output/numbers.snapshot.txt+23−22 tests/snapshots/output/numbers_rule.snapshot.txt+23 tests/snapshots/output/plain.snapshot.txt+1 tests/snapshots/output/rule.snapshot.txt+23 tests/snapshots/sample.modified.rs+1 tests/syntax-tests/BatTestCustomAssets.sublime-syntax+21 tests/syntax-tests/compare_highlighted_versions.py+65 tests/syntax-tests/create_highlighted_versions.py+133 tests/syntax-tests/highlighted/ARM Assembly/test.S+55 tests/syntax-tests/highlighted/ASP/test.asp+36 tests/syntax-tests/highlighted/AWK/quicksort.awk+35 tests/syntax-tests/highlighted/ActionScript/test.as+75 tests/syntax-tests/highlighted/Apache/httpd.conf+42 tests/syntax-tests/highlighted/AppleScript/test.applescript+25 tests/syntax-tests/highlighted/AsciiDoc/test.adoc+173 tests/syntax-tests/highlighted/Assembly (x86_64)/test.nasm+86 tests/syntax-tests/highlighted/Bash/batgrep.sh+511 tests/syntax-tests/highlighted/Bash/simple.sh+72 tests/syntax-tests/highlighted/BatTestCustomAssets/NoColorsUnlessCustomAssetsAreUsed.battestcustomassets+2 tests/syntax-tests/highlighted/Batch/build.bat+59 tests/syntax-tests/highlighted/BibTeX/test.bib+18 tests/syntax-tests/highlighted/C-Sharp/Stack.cs+64 tests/syntax-tests/highlighted/C/test.c+62 tests/syntax-tests/highlighted/CMake/CMakeLists.txt+16 tests/syntax-tests/highlighted/CSS/style.css+115 tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv+7 tests/syntax-tests/highlighted/Cabal/semantic.cabal+247 tests/syntax-tests/highlighted/Clojure/test.clj+58 tests/syntax-tests/highlighted/CoffeeScript/coffeescript.coffee+391 tests/syntax-tests/highlighted/Cpp/test.cpp+79 tests/syntax-tests/highlighted/CpuInfo/test.cpuinfo+45 tests/syntax-tests/highlighted/Crystal/test.cr+117 tests/syntax-tests/highlighted/D/test.d+44 tests/syntax-tests/highlighted/Dart/inner_comment.dart+5 tests/syntax-tests/highlighted/Dart/test.dart+133 tests/syntax-tests/highlighted/Diff/82e7786e747b1fcfac1f963ae6415a22ec9caae1.diff+353 tests/syntax-tests/highlighted/Dockerfile/Dockerfile+19 tests/syntax-tests/highlighted/DotENV/.env+57 tests/syntax-tests/highlighted/Elixir/command.ex+31 tests/syntax-tests/highlighted/Elm/test.elm+137 tests/syntax-tests/highlighted/Email/test.eml+16 tests/syntax-tests/highlighted/Erlang/bat_erlang.erl+72 tests/syntax-tests/highlighted/EtcGroup/test.group+67 tests/syntax-tests/highlighted/F#/string.fs+182 tests/syntax-tests/highlighted/Fish/test.fish+77 tests/syntax-tests/highlighted/Fortran (Fixed Form)/quicksort_real_F77.F+323 tests/syntax-tests/highlighted/Fortran (Modern)/test_savetxt.f90+119 tests/syntax-tests/highlighted/Fortran Namelist/test.namelist+5 tests/syntax-tests/highlighted/Fstab/fstab+7 tests/syntax-tests/highlighted/GLSL/test.glsl+42 tests/syntax-tests/highlighted/Git Attributes/example.gitattributes+16 tests/syntax-tests/highlighted/Git Config/text.gitconfig+107 tests/syntax-tests/highlighted/Git Ignore/test.gitignore+43 tests/syntax-tests/highlighted/Go/main.go+81 tests/syntax-tests/highlighted/GraphQL/test.graphql+145 tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot+41 tests/syntax-tests/highlighted/Graphviz DOT/test_graph.dot+3 tests/syntax-tests/highlighted/Groff/rustdoc.1+126 tests/syntax-tests/highlighted/Groovy/test.groovy+77 tests/syntax-tests/highlighted/HTML/test.html+115 tests/syntax-tests/highlighted/Haskell/test.hs+86 tests/syntax-tests/highlighted/Hosts/hosts+8 tests/syntax-tests/highlighted/INI/test.inf+5 tests/syntax-tests/highlighted/INI/test.ini+18 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-dist+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-new+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-old+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs~+1 tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~+1 tests/syntax-tests/highlighted/JQ/sample.jq+60 tests/syntax-tests/highlighted/JSON/test.json+29 tests/syntax-tests/highlighted/Java Server Page (JSP)/sessionDetail.jsp+197 tests/syntax-tests/highlighted/Java/test.java+39 tests/syntax-tests/highlighted/JavaScript/test.js+114 tests/syntax-tests/highlighted/Jinja2/template.jinja2+30 tests/syntax-tests/highlighted/Julia/test.jl+71 tests/syntax-tests/highlighted/Kotlin/test.kt+85 tests/syntax-tests/highlighted/LLVM/test.ll+29 tests/syntax-tests/highlighted/Lean/test.lean+68 tests/syntax-tests/highlighted/Less/example.less+43 tests/syntax-tests/highlighted/Lisp/utils.lisp+80 tests/syntax-tests/highlighted/Literate Haskell/Main.lhs+47 tests/syntax-tests/highlighted/LiveScript/livescript-demo.ls+83 tests/syntax-tests/highlighted/Log/example.log+3 tests/syntax-tests/highlighted/Lua/test.lua+34 tests/syntax-tests/highlighted/MATLAB/test.matlab+34 tests/syntax-tests/highlighted/Makefile/Makefile+385 tests/syntax-tests/highlighted/Manpage/bat-0.16.man+243 tests/syntax-tests/highlighted/Manpage/select-2.man+330 tests/syntax-tests/highlighted/Markdown/example.md+39 tests/syntax-tests/highlighted/MediaWiki/test.mediawiki+37 tests/syntax-tests/highlighted/MemInfo/test.meminfo+53 tests/syntax-tests/highlighted/NAnt Build File/Default.build+167 tests/syntax-tests/highlighted/Ninja/test.ninja+6 tests/syntax-tests/highlighted/OCaml/syntax-test.ml+83 tests/syntax-tests/highlighted/Objective-C++/test.mm+68 tests/syntax-tests/highlighted/Objective-C/test.m+32 tests/syntax-tests/highlighted/PHP/test.php+111 tests/syntax-tests/highlighted/Pascal/test.pas+42 tests/syntax-tests/highlighted/Passwd/passwd+7 tests/syntax-tests/highlighted/Perl/test.pl+157 tests/syntax-tests/highlighted/Plaintext/plaintext.txt+178 tests/syntax-tests/highlighted/PowerShell/test.ps1+25 tests/syntax-tests/highlighted/Protocol Buffer/vyconf.proto+158 tests/syntax-tests/highlighted/Puppet/manifest_large_exported_classes_node.pp+65 tests/syntax-tests/highlighted/PureScript/test.purs+89 tests/syntax-tests/highlighted/Python/battest.py+100 tests/syntax-tests/highlighted/QML/BatSyntaxTest.qml+219 tests/syntax-tests/highlighted/R/test.r+170 tests/syntax-tests/highlighted/Racket/test.rkt+56 tests/syntax-tests/highlighted/Rego/src_test.rego+181 tests/syntax-tests/highlighted/Regular Expression/test.re+1 tests/syntax-tests/highlighted/Robot Framework/recipe141_aws_simple_storage_service.robot+31 tests/syntax-tests/highlighted/Ruby Haml/test.html.haml+15 tests/syntax-tests/highlighted/Ruby On Rails/test.rb+22 tests/syntax-tests/highlighted/Ruby/output.rb+56 tests/syntax-tests/highlighted/Rust/output.rs+161 tests/syntax-tests/highlighted/SCSS/example.scss+82 tests/syntax-tests/highlighted/SLS/test.sls+57 tests/syntax-tests/highlighted/SML/sample.sml+47 tests/syntax-tests/highlighted/SQL/ims.sql+266 tests/syntax-tests/highlighted/SSH Config/ssh_config+9 tests/syntax-tests/highlighted/SSHD Config/sshd_config+36 tests/syntax-tests/highlighted/Sass/example.sass+76 tests/syntax-tests/highlighted/Scala/ConcurrentEffectLaws.scala+98 tests/syntax-tests/highlighted/Slim/test.slim+20 tests/syntax-tests/highlighted/Solidity/ERC721.sol+376 tests/syntax-tests/highlighted/Strace/ls.strace+94 tests/syntax-tests/highlighted/Stylus/gradients.styl+90 tests/syntax-tests/highlighted/Svelte/App.svelte+65 tests/syntax-tests/highlighted/Swift/test.swift+268 tests/syntax-tests/highlighted/Syslog/example.syslog+16 tests/syntax-tests/highlighted/SystemVerilog/output.sv+103 tests/syntax-tests/highlighted/TOML/Cargo.toml+87 tests/syntax-tests/highlighted/Tcl/test.tcl+22 tests/syntax-tests/highlighted/TeX/main.tex+84 tests/syntax-tests/highlighted/Terraform/main.tf+48 tests/syntax-tests/highlighted/Textile/test.textile+40 tests/syntax-tests/highlighted/TypeScript/example.ts+110 tests/syntax-tests/highlighted/TypeScriptReact/app.tsx+35 tests/syntax-tests/highlighted/Verilog/div_pipelined.v+172 tests/syntax-tests/highlighted/VimL/source.vim+92 tests/syntax-tests/highlighted/Vue/example.vue+60 tests/syntax-tests/highlighted/Vyper/crowdsale.vy+89 tests/syntax-tests/highlighted/XAML/ItemPage.xaml+264 tests/syntax-tests/highlighted/XML/example.xml+22 tests/syntax-tests/highlighted/YAML/example.yaml+34 tests/syntax-tests/highlighted/Zig/example.zig+107 tests/syntax-tests/highlighted/cmd-help/test.cmd-help+54 tests/syntax-tests/highlighted/dash/shfm+425 tests/syntax-tests/highlighted/gnuplot/test.gp+19 tests/syntax-tests/highlighted/http-request-response/example.http+44 tests/syntax-tests/highlighted/jsonnet/stdlib.jsonnet+88 tests/syntax-tests/highlighted/nginx/nginx.conf+140 tests/syntax-tests/highlighted/nim/main.nim+41 tests/syntax-tests/highlighted/nim/test.nimble+23 tests/syntax-tests/highlighted/nix/test.nix+15 tests/syntax-tests/highlighted/orgmode/test.org+38 tests/syntax-tests/highlighted/reStructuredText/reference.rst+320 tests/syntax-tests/highlighted/resolv.conf/resolv.conf+4 tests/syntax-tests/highlighted/varlink/org.varlink.certification.varlink+86 tests/syntax-tests/regression_test.sh+15 tests/syntax-tests/source/ARM Assembly/test.S+55 tests/syntax-tests/source/ASP/test.asp+36 tests/syntax-tests/source/AWK/quicksort.awk+35 tests/syntax-tests/source/ActionScript/test.as+75 tests/syntax-tests/source/Apache/httpd.conf+42 tests/syntax-tests/source/AppleScript/test.applescript+25 tests/syntax-tests/source/AsciiDoc/test.adoc+173 tests/syntax-tests/source/Assembly (x86_64)/test.nasm+86 tests/syntax-tests/source/Bash/batgrep.sh+511 tests/syntax-tests/source/Bash/simple.sh+72 tests/syntax-tests/source/BatTestCustomAssets/NoColorsUnlessCustomAssetsAreUsed.battestcustomassets+2 tests/syntax-tests/source/Batch/LICENSE.md+26 tests/syntax-tests/source/Batch/build.bat+59 tests/syntax-tests/source/BibTeX/test.bib+18 tests/syntax-tests/source/C-Sharp/Stack.cs+64 tests/syntax-tests/source/C/test.c+62 tests/syntax-tests/source/CMake/CMakeLists.txt+16 tests/syntax-tests/source/CSS/style.css+115 tests/syntax-tests/source/CSV/LICENSE.md+27 tests/syntax-tests/source/CSV/comma_in_quotes.csv+7 tests/syntax-tests/source/Cabal/LICENSE.md+25 tests/syntax-tests/source/Cabal/semantic.cabal+247 tests/syntax-tests/source/Clojure/test.clj+58 tests/syntax-tests/source/CoffeeScript/LICENSE.md+26 tests/syntax-tests/source/CoffeeScript/coffeescript.coffee+391 tests/syntax-tests/source/Cpp/test.cpp+79 tests/syntax-tests/source/CpuInfo/test.cpuinfo+45 tests/syntax-tests/source/Crystal/test.cr+117 tests/syntax-tests/source/D/test.d+44 tests/syntax-tests/source/Dart/inner_comment.dart+5 tests/syntax-tests/source/Dart/test.dart+133 tests/syntax-tests/source/Diff/82e7786e747b1fcfac1f963ae6415a22ec9caae1.diff+353 tests/syntax-tests/source/Dockerfile/Dockerfile+19 tests/syntax-tests/source/DotENV/.env+57 tests/syntax-tests/source/DotENV/LICENSE.md+23 tests/syntax-tests/source/Elixir/LICENSE.md+21 tests/syntax-tests/source/Elixir/command.ex+31 tests/syntax-tests/source/Elm/LICENSE.md+32 tests/syntax-tests/source/Elm/test.elm+137 tests/syntax-tests/source/Email/test.eml+16 tests/syntax-tests/source/Erlang/bat_erlang.erl+72 tests/syntax-tests/source/EtcGroup/test.group+67 tests/syntax-tests/source/F#/LICENSE.md+27 tests/syntax-tests/source/F#/string.fs+182 tests/syntax-tests/source/Fish/test.fish+77 tests/syntax-tests/source/Fortran (Fixed Form)/LICENSE.md+25 tests/syntax-tests/source/Fortran (Fixed Form)/quicksort_real_F77.F+323 tests/syntax-tests/source/Fortran (Modern)/LICENSE.md+25 tests/syntax-tests/source/Fortran (Modern)/test_savetxt.f90+119 tests/syntax-tests/source/Fortran Namelist/test.namelist+5 tests/syntax-tests/source/Fstab/fstab+7 tests/syntax-tests/source/GLSL/test.glsl+42 tests/syntax-tests/source/Git Attributes/example.gitattributes+16 tests/syntax-tests/source/Git Config/LICENSE.md+1 tests/syntax-tests/source/Git Config/text.gitconfig+107 tests/syntax-tests/source/Git Ignore/LICENSE.md+234 tests/syntax-tests/source/Git Ignore/test.gitignore+43 tests/syntax-tests/source/Go/LICENSE.md+205 tests/syntax-tests/source/Go/main.go+81 tests/syntax-tests/source/GraphQL/test.graphql+145 tests/syntax-tests/source/Graphviz DOT/LICENSE.md+22 tests/syntax-tests/source/Graphviz DOT/test_digraph.dot+41 tests/syntax-tests/source/Graphviz DOT/test_graph.dot+3 tests/syntax-tests/source/Groff/LICENSE.md+235 tests/syntax-tests/source/Groff/rustdoc.1+126 tests/syntax-tests/source/Groovy/test.groovy+77 tests/syntax-tests/source/HTML/test.html+115 tests/syntax-tests/source/Haskell/test.hs+86 tests/syntax-tests/source/Hosts/hosts+8 tests/syntax-tests/source/INI/test.inf+5 tests/syntax-tests/source/INI/test.ini+18 tests/syntax-tests/source/Ignored suffixes/test.rs.bak+1 tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist+1 tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old+1 tests/syntax-tests/source/Ignored suffixes/test.rs.in+1 tests/syntax-tests/source/Ignored suffixes/test.rs.in.in+1 tests/syntax-tests/source/Ignored suffixes/test.rs.old+1 tests/syntax-tests/source/Ignored suffixes/test.rs.orig+1 tests/syntax-tests/source/Ignored suffixes/test.rs.orig~+1 tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew+1 tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig+1 tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave+1 tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-dist+1 tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-new+1 tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-old+1 tests/syntax-tests/source/Ignored suffixes/test.rs~+1 tests/syntax-tests/source/Ignored suffixes/test.unknown~+1 tests/syntax-tests/source/JQ/LICENSE.md+25 tests/syntax-tests/source/JQ/sample.jq+60 tests/syntax-tests/source/JSON/test.json+29 tests/syntax-tests/source/Java Server Page (JSP)/LICENSE.md+1141 tests/syntax-tests/source/Java Server Page (JSP)/NOTICE+68 tests/syntax-tests/source/Java Server Page (JSP)/sessionDetail.jsp+197 tests/syntax-tests/source/Java/test.java+39 tests/syntax-tests/source/JavaScript/test.js+114 tests/syntax-tests/source/Jinja2/template.jinja2+30 tests/syntax-tests/source/Julia/test.jl+71 tests/syntax-tests/source/Kotlin/test.kt+85 tests/syntax-tests/source/LLVM/test.ll+29 tests/syntax-tests/source/Lean/test.lean+68 tests/syntax-tests/source/Less/example.less+43 tests/syntax-tests/source/Lisp/LICENSE.md+24 tests/syntax-tests/source/Lisp/utils.lisp+80 tests/syntax-tests/source/Literate Haskell/Main.lhs+47 tests/syntax-tests/source/LiveScript/LICENSE.md+23 tests/syntax-tests/source/LiveScript/livescript-demo.ls+83 tests/syntax-tests/source/Log/example.log+3 tests/syntax-tests/source/Lua/test.lua+34 tests/syntax-tests/source/MATLAB/LICENSE.md+27 tests/syntax-tests/source/MATLAB/test.matlab+34 tests/syntax-tests/source/Makefile/LICENSE.md+12 tests/syntax-tests/source/Makefile/Makefile+385 tests/syntax-tests/source/Manpage/bat-0.16.man+243 tests/syntax-tests/source/Manpage/select-2.man+330 tests/syntax-tests/source/Markdown/example.md+39 tests/syntax-tests/source/MediaWiki/test.mediawiki+37 tests/syntax-tests/source/MemInfo/test.meminfo+53 tests/syntax-tests/source/NAnt Build File/Default.build+167 tests/syntax-tests/source/NAnt Build File/LICENSE.md+25 tests/syntax-tests/source/Ninja/LICENSE.md+204 tests/syntax-tests/source/Ninja/test.ninja+6 tests/syntax-tests/source/OCaml/syntax-test.ml+83 tests/syntax-tests/source/Objective-C++/test.mm+68 tests/syntax-tests/source/Objective-C/test.m+32 tests/syntax-tests/source/PHP/test.php+111 tests/syntax-tests/source/Pascal/test.pas+42 tests/syntax-tests/source/Passwd/passwd+7 tests/syntax-tests/source/Perl/test.pl+157 tests/syntax-tests/source/Plaintext/README.md+12 tests/syntax-tests/source/Plaintext/bat_options+1 tests/syntax-tests/source/Plaintext/plaintext.txt tests/syntax-tests/source/PowerShell/test.ps1 tests/syntax-tests/source/Protocol Buffer/vyconf.proto+158 tests/syntax-tests/source/Puppet/LICENSE.md+206 tests/syntax-tests/source/Puppet/manifest_large_exported_classes_node.pp+65 tests/syntax-tests/source/PureScript/test.purs+89 tests/syntax-tests/source/Python/battest.py+100 tests/syntax-tests/source/QML/BatSyntaxTest.qml+219 tests/syntax-tests/source/R/test.r+170 tests/syntax-tests/source/Racket/test.rkt+56 tests/syntax-tests/source/Rego/LICENSE.md+25 tests/syntax-tests/source/Rego/src_test.rego+181 tests/syntax-tests/source/Regular Expression/test.re+1 tests/syntax-tests/source/Robot Framework/LICENSE.md+25 tests/syntax-tests/source/Robot Framework/recipe141_aws_simple_storage_service.robot+31 tests/syntax-tests/source/Ruby Haml/test.html.haml+15 tests/syntax-tests/source/Ruby On Rails/test.rb+22 tests/syntax-tests/source/Ruby/output.rb+56 tests/syntax-tests/source/Rust/output.rs+161 tests/syntax-tests/source/SCSS/example.scss+82 tests/syntax-tests/source/SLS/test.sls+57 tests/syntax-tests/source/SML/sample.sml+47 tests/syntax-tests/source/SQL/ims.sql+266 tests/syntax-tests/source/SSH Config/ssh_config+9 tests/syntax-tests/source/SSHD Config/sshd_config+36 tests/syntax-tests/source/Sass/example.sass+76 tests/syntax-tests/source/Scala/ConcurrentEffectLaws.scala+98 tests/syntax-tests/source/Scala/LICENSE.md+179 tests/syntax-tests/source/Slim/test.slim+20 tests/syntax-tests/source/Solidity/ERC721.sol+376 tests/syntax-tests/source/Solidity/LICENSE.md+27 tests/syntax-tests/source/Strace/ls.strace+94 tests/syntax-tests/source/Stylus/LICENSE.md+24 tests/syntax-tests/source/Stylus/gradients.styl+90 tests/syntax-tests/source/Svelte/App.svelte+65 tests/syntax-tests/source/Svelte/LICENSE.md+14 tests/syntax-tests/source/Swift/test.swift+268 tests/syntax-tests/source/Syslog/example.syslog+16 tests/syntax-tests/source/SystemVerilog/output.sv+103 tests/syntax-tests/source/TOML/Cargo.toml+87 tests/syntax-tests/source/Tcl/test.tcl+22 tests/syntax-tests/source/TeX/main.tex+84 tests/syntax-tests/source/Terraform/main.tf+48 tests/syntax-tests/source/Textile/test.textile+40 tests/syntax-tests/source/TypeScript/LICENSE.md+19 tests/syntax-tests/source/TypeScript/example.ts+110 tests/syntax-tests/source/TypeScriptReact/LICENSE.md+25 tests/syntax-tests/source/TypeScriptReact/app.tsx+35 tests/syntax-tests/source/Verilog/LICENSE.md+205 tests/syntax-tests/source/Verilog/div_pipelined.v+172 tests/syntax-tests/source/VimL/source.vim+92 tests/syntax-tests/source/Vue/example.vue+60 tests/syntax-tests/source/Vyper/LICENSE.md+205 tests/syntax-tests/source/Vyper/crowdsale.vy+89 tests/syntax-tests/source/XAML/ItemPage.xaml+264 tests/syntax-tests/source/XAML/LICENSE.md+23 tests/syntax-tests/source/XML/example.xml+22 tests/syntax-tests/source/YAML/example.yaml+34 tests/syntax-tests/source/Zig/example.zig+107 tests/syntax-tests/source/cmd-help/test.cmd-help+54 tests/syntax-tests/source/dash/LICENSE.md+23 tests/syntax-tests/source/dash/shfm+425 tests/syntax-tests/source/gnuplot/test.gp+19 tests/syntax-tests/source/http-request-response/example.http+44 tests/syntax-tests/source/jsonnet/LICENSE.md+206 tests/syntax-tests/source/jsonnet/stdlib.jsonnet+88 tests/syntax-tests/source/nginx/nginx.conf+140 tests/syntax-tests/source/nim/main.nim+41 tests/syntax-tests/source/nim/test.nimble+23 tests/syntax-tests/source/nix/test.nix+15 tests/syntax-tests/source/orgmode/test.org+38 tests/syntax-tests/source/reStructuredText/reference.rst+320 tests/syntax-tests/source/resolv.conf/resolv.conf+4 tests/syntax-tests/source/varlink/LICENSE.md+229 tests/syntax-tests/source/varlink/org.varlink.certification.varlink+86 tests/syntax-tests/test_custom_assets.sh+74 tests/syntax-tests/update.sh+7 tests/tester.rs+24−24 tests/utils/mocked_pagers.rs+69 tests/utils/mod.rs+1
.github/.codecov.ymlnew file+1
@@ -0,0 +1 @@
1+comment: false
.github/FUNDING.yml+1−3
@@ -1,3 +1 @@
1−# These are supported funding model platforms
2−
3−github: sharkdp
1+github: [sharkdp, keith-hall, Enselic]
.github/ISSUE_TEMPLATE/bug_report.md+41−16
@@ -1,39 +1,64 @@
11---
22name: Bug Report
33about: Report a bug.
4−title: "[Bug] "
4+title: ""
55labels: bug
66assignees: ''
77
88---
99
1010<!--
11−Hey there, thanks for creating an issue!
1211
13−In order to reproduce your issue, we might need to know a little bit more about the environment
14−which you're running `bat` on.
12+Hey there, thank you for reporting a bug!
1513
16−If you're on Linux or MacOS:
17− Please run the script at https://github.com/sharkdp/bat/blob/diag-tools/diagnostics/info.sh and
18− paste the output at the bottom of the bug report.
14+Please note that the following bugs have already been reported:
15+
16+* dpkg: error processing archive /some/path/some-program.deb (--unpack):
17+ trying to overwrite '/usr/.crates2.json'
18+
19+ See https://github.com/sharkdp/bat/issues/938
1920
20−If you're on Windows:
21− Please tell us about your Windows Version (e.g. "Windows 10 1908") at the
22− bottom of the bug report.
2321-->
2422
25−**What version of `bat` are you using?**
26−[paste the output of `bat --version` here]
23+**What steps will reproduce the bug?**
24+
25+1. step 1
26+2. step 2
27+3. ...
28+
29+**What happens?**
2730
28−**Describe the bug you encountered:**
2931...
3032
31−**Describe what you expected to happen?**
33+**What did you expect to happen instead?**
34+
3235...
3336
37+
3438**How did you install `bat`?**
35−apt-get, homebrew, GitHub release, etc.
39+
40+<!-- apt-get, homebrew, GitHub release, etc. -->
3641
3742---
3843
39−[paste the output of `info.sh` here]
44+**bat version and environment**
45+
46+<!--
47+In order to reproduce your issue, please add some information about the environment
48+in which you're running bat. To do this, run the full `bat` command that demonstrates
49+the bug, and attach the `--diagnostic` option:
50+
51+ bat [other options and arguments…] --diagnostic
52+
53+Finally, paste the Markdown output here. Please make sure that it does not reveal any
54+personal information.
55+
56+
57+If you are running bat 0.17.1 or older (where --diagnostic is not available), please
58+run the script at
59+
60+ https://github.com/sharkdp/bat/blob/master/diagnostics/info.sh
61+
62+(click "Raw" to get the actual source code) and paste the Markdown output here. If you
63+are on Windows, please let us know your bat version and your Windows version.
64+-->
.github/ISSUE_TEMPLATE/config.yml−1
@@ -1,2 +1 @@
11blank_issues_enabled: true
2−
.github/ISSUE_TEMPLATE/feature_request.mdnew file+9
@@ -0,0 +1,9 @@
1+---
2+name: Feature Request
3+about: Suggest an idea for this project.
4+title: ''
5+labels: feature-request
6+assignees: ''
7+
8+---
9+
.github/ISSUE_TEMPLATE/question.mdnew file+11
@@ -0,0 +1,11 @@
1+---
2+name: Question
3+about: Ask a question about 'bat'.
4+title: ''
5+labels: question
6+assignees: ''
7+
8+---
9+
10+<!-- Using a normal ticket is still fine, but feel free to ask your
11+questions about bat on https://github.com/sharkdp/bat/discussions instead. -->
.github/ISSUE_TEMPLATE/syntax_request.md+2−2
@@ -1,8 +1,8 @@
11---
22name: Syntax Request
33about: Request adding a new syntax to bat.
4−title: "[Syntax Request] "
5−labels: new-syntax
4+title: ""
5+labels: syntax-request
66assignees: ''
77
88---
.github/dependabot.ymlnew file+18
@@ -0,0 +1,18 @@
1+version: 2
2+updates:
3+- package-ecosystem: cargo
4+ directory: "/"
5+ schedule:
6+ interval: monthly
7+ time: "04:00"
8+ timezone: Europe/Berlin
9+ ignore:
10+ - dependency-name: git2
11+ versions:
12+ - 0.13.17
13+- package-ecosystem: gitsubmodule
14+ directory: "/"
15+ schedule:
16+ interval: monthly
17+ time: "04:00"
18+ timezone: Europe/Berlin
.github/workflows/CICD.ymlnew file+482
@@ -0,0 +1,482 @@
1+name: CICD
2+
3+env:
4+ MIN_SUPPORTED_RUST_VERSION: "1.51.0"
5+ CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
6+
7+on:
8+ workflow_dispatch:
9+ pull_request:
10+ push:
11+ branches:
12+ - master
13+ tags:
14+ - '*'
15+
16+jobs:
17+ ensure_cargo_fmt:
18+ name: Ensure 'cargo fmt' has been run
19+ runs-on: ubuntu-20.04
20+ steps:
21+ - uses: actions-rs/toolchain@v1
22+ with:
23+ toolchain: stable
24+ default: true
25+ profile: minimal
26+ components: rustfmt
27+ - uses: actions/checkout@v2
28+ - run: cargo fmt -- --check
29+
30+ license_checks:
31+ name: License checks
32+ runs-on: ubuntu-20.04
33+ steps:
34+ - uses: actions/checkout@v2
35+ with:
36+ submodules: true # we especially want to perform license checks on submodules
37+ - run: tests/scripts/license-checks.sh
38+
39+ min_version:
40+ name: Minimum supported rust version
41+ runs-on: ubuntu-20.04
42+ steps:
43+ - name: Checkout source code
44+ uses: actions/checkout@v2
45+
46+ - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
47+ uses: actions-rs/toolchain@v1
48+ with:
49+ toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
50+ default: true
51+ profile: minimal # minimal component installation (ie, no documentation)
52+ components: clippy
53+ - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
54+ uses: actions-rs/cargo@v1
55+ with:
56+ command: clippy
57+ args: --locked --all-targets --all-features
58+ - name: Run tests
59+ uses: actions-rs/cargo@v1
60+ with:
61+ command: test
62+ args: --locked
63+
64+ test_with_new_syntaxes_and_themes:
65+ name: Run tests with updated syntaxes and themes
66+ runs-on: ubuntu-20.04
67+ steps:
68+ - name: Git checkout
69+ uses: actions/checkout@v2
70+ with:
71+ submodules: true # we need all syntax and theme submodules
72+ - name: Install Rust toolchain
73+ uses: actions-rs/toolchain@v1
74+ with:
75+ toolchain: stable
76+ default: true
77+ profile: minimal
78+ - name: Build and install bat
79+ uses: actions-rs/cargo@v1
80+ with:
81+ command: install
82+ args: --locked --path .
83+ - name: Rebuild binary assets (syntaxes and themes)
84+ run: bash assets/create.sh
85+ - name: Build and install bat with updated assets
86+ uses: actions-rs/cargo@v1
87+ with:
88+ command: install
89+ args: --locked --path .
90+ - name: Run unit tests with new syntaxes and themes
91+ uses: actions-rs/cargo@v1
92+ with:
93+ command: test
94+ args: --locked --release
95+ - name: Run ignored-by-default unit tests with new syntaxes and themes
96+ uses: actions-rs/cargo@v1
97+ with:
98+ command: test
99+ args: --locked --release -- --ignored
100+ - name: Syntax highlighting regression test
101+ run: tests/syntax-tests/regression_test.sh
102+ - name: List of languages
103+ run: bat --list-languages
104+ - name: List of themes
105+ run: bat --list-themes
106+ - name: Test custom assets
107+ run: tests/syntax-tests/test_custom_assets.sh
108+
109+ documentation:
110+ name: Documentation
111+ runs-on: ubuntu-20.04
112+ steps:
113+ - name: Git checkout
114+ uses: actions/checkout@v2
115+ - name: Install Rust toolchain
116+ uses: actions-rs/toolchain@v1
117+ with:
118+ toolchain: stable
119+ default: true
120+ profile: minimal
121+ - name: Print -h
122+ uses: actions-rs/cargo@v1
123+ with:
124+ command: run
125+ args: --locked -- -h
126+ - name: Print --help
127+ uses: actions-rs/cargo@v1
128+ with:
129+ command: run
130+ args: --locked -- --help
131+ - name: Show man page
132+ run: man $(find . -name bat.1)
133+ - name: Check documentation
134+ env:
135+ RUSTDOCFLAGS: -D warnings
136+ uses: actions-rs/cargo@v1
137+ with:
138+ command: doc
139+ args: --locked --no-deps --document-private-items --all-features
140+
141+ build:
142+ name: ${{ matrix.job.target }} (${{ matrix.job.os }})
143+ runs-on: ${{ matrix.job.os }}
144+ strategy:
145+ fail-fast: false
146+ matrix:
147+ job:
148+ - { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true }
149+ - { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04, use-cross: true }
150+ - { target: arm-unknown-linux-musleabihf, os: ubuntu-20.04, use-cross: true }
151+ - { target: i686-pc-windows-msvc , os: windows-2019 }
152+ - { target: i686-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true }
153+ - { target: i686-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }
154+ - { target: x86_64-apple-darwin , os: macos-10.15 }
155+ - { target: x86_64-pc-windows-gnu , os: windows-2019 }
156+ - { target: x86_64-pc-windows-msvc , os: windows-2019 }
157+ - { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true }
158+ - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }
159+ steps:
160+ - name: Checkout source code
161+ uses: actions/checkout@v2
162+
163+ - name: Install prerequisites
164+ shell: bash
165+ run: |
166+ case ${{ matrix.job.target }} in
167+ arm-unknown-linux-*) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;
168+ aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;
169+ esac
170+
171+ - name: Extract crate information
172+ shell: bash
173+ run: |
174+ echo "PROJECT_NAME=$(sed -n 's/^name = "\(.*\)"/\1/p' Cargo.toml | head -n1)" >> $GITHUB_ENV
175+ echo "PROJECT_VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)" >> $GITHUB_ENV
176+ echo "PROJECT_MAINTAINER=$(sed -n 's/^authors = \["\(.*\)"\]/\1/p' Cargo.toml)" >> $GITHUB_ENV
177+ echo "PROJECT_HOMEPAGE=$(sed -n 's/^homepage = "\(.*\)"/\1/p' Cargo.toml)" >> $GITHUB_ENV
178+
179+ - name: Install Rust toolchain
180+ uses: actions-rs/toolchain@v1
181+ with:
182+ toolchain: stable
183+ target: ${{ matrix.job.target }}
184+ override: true
185+ profile: minimal # minimal component installation (ie, no documentation)
186+
187+ - name: Show version information (Rust, cargo, GCC)
188+ shell: bash
189+ run: |
190+ gcc --version || true
191+ rustup -V
192+ rustup toolchain list
193+ rustup default
194+ cargo -V
195+ rustc -V
196+
197+ - name: Build
198+ uses: actions-rs/cargo@v1
199+ with:
200+ use-cross: ${{ matrix.job.use-cross }}
201+ command: build
202+ args: --locked --release --target=${{ matrix.job.target }}
203+
204+ - name: Strip debug information from executable
205+ id: strip
206+ shell: bash
207+ run: |
208+ # Figure out suffix of binary
209+ EXE_suffix=""
210+ case ${{ matrix.job.target }} in
211+ *-pc-windows-*) EXE_suffix=".exe" ;;
212+ esac;
213+
214+ # Figure out what strip tool to use if any
215+ STRIP="strip"
216+ case ${{ matrix.job.target }} in
217+ arm-unknown-linux-*) STRIP="arm-linux-gnueabihf-strip" ;;
218+ aarch64-unknown-linux-gnu) STRIP="aarch64-linux-gnu-strip" ;;
219+ *-pc-windows-msvc) STRIP="" ;;
220+ esac;
221+
222+ # Setup paths
223+ BIN_DIR="${{ env.CICD_INTERMEDIATES_DIR }}/stripped-release-bin/"
224+ mkdir -p "${BIN_DIR}"
225+ BIN_NAME="${{ env.PROJECT_NAME }}${EXE_suffix}"
226+ BIN_PATH="${BIN_DIR}/${BIN_NAME}"
227+
228+ # Copy the release build binary to the result location
229+ cp "target/${{ matrix.job.target }}/release/${BIN_NAME}" "${BIN_DIR}"
230+
231+ # Also strip if possible
232+ if [ -n "${STRIP}" ]; then
233+ "${STRIP}" "${BIN_PATH}"
234+ fi
235+
236+ # Let subsequent steps know where to find the (stripped) bin
237+ echo ::set-output name=BIN_PATH::${BIN_PATH}
238+ echo ::set-output name=BIN_NAME::${BIN_NAME}
239+
240+ - name: Set testing options
241+ id: test-options
242+ shell: bash
243+ run: |
244+ # test only library unit tests and binary for arm-type targets
245+ unset CARGO_TEST_OPTIONS
246+ unset CARGO_TEST_OPTIONS ; case ${{ matrix.job.target }} in arm-* | aarch64-*) CARGO_TEST_OPTIONS="--lib --bin ${PROJECT_NAME}" ;; esac;
247+ echo ::set-output name=CARGO_TEST_OPTIONS::${CARGO_TEST_OPTIONS}
248+
249+ - name: Run tests
250+ uses: actions-rs/cargo@v1
251+ with:
252+ use-cross: ${{ matrix.job.use-cross }}
253+ command: test
254+ args: --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
255+
256+ - name: Run bat
257+ uses: actions-rs/cargo@v1
258+ with:
259+ use-cross: ${{ matrix.job.use-cross }}
260+ command: run
261+ args: --locked --target=${{ matrix.job.target }} -- --paging=never --color=always --theme=ansi Cargo.toml src/config.rs
262+
263+ - name: Show diagnostics (bat --diagnostic)
264+ uses: actions-rs/cargo@v1
265+ with:
266+ use-cross: ${{ matrix.job.use-cross }}
267+ command: run
268+ args: --locked --target=${{ matrix.job.target }} -- --paging=never --color=always --theme=ansi Cargo.toml src/config.rs --diagnostic
269+
270+ - name: "Feature check: regex-onig"
271+ uses: actions-rs/cargo@v1
272+ with:
273+ use-cross: ${{ matrix.job.use-cross }}
274+ command: check
275+ args: --locked --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig
276+
277+ - name: "Feature check: regex-onig,git"
278+ uses: actions-rs/cargo@v1
279+ with:
280+ use-cross: ${{ matrix.job.use-cross }}
281+ command: check
282+ args: --locked --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git
283+
284+ - name: "Feature check: regex-onig,paging"
285+ uses: actions-rs/cargo@v1
286+ with:
287+ use-cross: ${{ matrix.job.use-cross }}
288+ command: check
289+ args: --locked --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,paging
290+
291+ - name: "Feature check: regex-onig,git,paging"
292+ uses: actions-rs/cargo@v1
293+ with:
294+ use-cross: ${{ matrix.job.use-cross }}
295+ command: check
296+ args: --locked --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git,paging
297+
298+ - name: "Feature check: minimal-application"
299+ uses: actions-rs/cargo@v1
300+ with:
301+ use-cross: ${{ matrix.job.use-cross }}
302+ command: check
303+ args: --locked --target=${{ matrix.job.target }} --verbose --no-default-features --features minimal-application
304+
305+ - name: Create tarball
306+ id: package
307+ shell: bash
308+ run: |
309+ PKG_suffix=".tar.gz" ; case ${{ matrix.job.target }} in *-pc-windows-*) PKG_suffix=".zip" ;; esac;
310+ PKG_BASENAME=${PROJECT_NAME}-v${PROJECT_VERSION}-${{ matrix.job.target }}
311+ PKG_NAME=${PKG_BASENAME}${PKG_suffix}
312+ echo ::set-output name=PKG_NAME::${PKG_NAME}
313+
314+ PKG_STAGING="${{ env.CICD_INTERMEDIATES_DIR }}/package"
315+ ARCHIVE_DIR="${PKG_STAGING}/${PKG_BASENAME}/"
316+ mkdir -p "${ARCHIVE_DIR}"
317+ mkdir -p "${ARCHIVE_DIR}/autocomplete"
318+
319+ # Binary
320+ cp "${{ steps.strip.outputs.BIN_PATH }}" "$ARCHIVE_DIR"
321+
322+ # Man page
323+ cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "$ARCHIVE_DIR"
324+
325+ # README, LICENSE and CHANGELOG files
326+ cp "README.md" "LICENSE-MIT" "LICENSE-APACHE" "CHANGELOG.md" "$ARCHIVE_DIR"
327+
328+ # Autocompletion files
329+ cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.bash "$ARCHIVE_DIR/autocomplete/${{ env.PROJECT_NAME }}.bash"
330+ cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "$ARCHIVE_DIR/autocomplete/${{ env.PROJECT_NAME }}.fish"
331+ cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/_bat.ps1 "$ARCHIVE_DIR/autocomplete/_${{ env.PROJECT_NAME }}.ps1"
332+ cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.zsh "$ARCHIVE_DIR/autocomplete/${{ env.PROJECT_NAME }}.zsh"
333+
334+ # base compressed package
335+ pushd "${PKG_STAGING}/" >/dev/null
336+ case ${{ matrix.job.target }} in
337+ *-pc-windows-*) 7z -y a "${PKG_NAME}" "${PKG_BASENAME}"/* | tail -2 ;;
338+ *) tar czf "${PKG_NAME}" "${PKG_BASENAME}"/* ;;
339+ esac;
340+ popd >/dev/null
341+
342+ # Let subsequent steps know where to find the compressed package
343+ echo ::set-output name=PKG_PATH::"${PKG_STAGING}/${PKG_NAME}"
344+
345+ - name: Create Debian package
346+ id: debian-package
347+ shell: bash
348+ if: startsWith(matrix.job.os, 'ubuntu')
349+ run: |
350+ COPYRIGHT_YEARS="2018 - "$(date "+%Y")
351+ DPKG_STAGING="${{ env.CICD_INTERMEDIATES_DIR }}/debian-package"
352+ DPKG_DIR="${DPKG_STAGING}/dpkg"
353+ mkdir -p "${DPKG_DIR}"
354+
355+ DPKG_BASENAME=${PROJECT_NAME}
356+ DPKG_CONFLICTS=${PROJECT_NAME}-musl
357+ case ${{ matrix.job.target }} in *-musl) DPKG_BASENAME=${PROJECT_NAME}-musl ; DPKG_CONFLICTS=${PROJECT_NAME} ;; esac;
358+ DPKG_VERSION=${PROJECT_VERSION}
359+
360+ unset DPKG_ARCH
361+ case ${{ matrix.job.target }} in
362+ aarch64-*-linux-*) DPKG_ARCH=arm64 ;;
363+ arm-*-linux-*hf) DPKG_ARCH=armhf ;;
364+ i686-*-linux-*) DPKG_ARCH=i686 ;;
365+ x86_64-*-linux-*) DPKG_ARCH=amd64 ;;
366+ *) DPKG_ARCH=notset ;;
367+ esac;
368+
369+ DPKG_NAME="${DPKG_BASENAME}_${DPKG_VERSION}_${DPKG_ARCH}.deb"
370+ echo ::set-output name=DPKG_NAME::${DPKG_NAME}
371+
372+ # Binary
373+ install -Dm755 "${{ steps.strip.outputs.BIN_PATH }}" "${DPKG_DIR}/usr/bin/${{ steps.strip.outputs.BIN_NAME }}"
374+
375+ # Man page
376+ install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "${DPKG_DIR}/usr/share/man/man1/${{ env.PROJECT_NAME }}.1"
377+ gzip -n --best "${DPKG_DIR}/usr/share/man/man1/${{ env.PROJECT_NAME }}.1"
378+
379+ # Autocompletion files
380+ install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.bash "${DPKG_DIR}/usr/share/bash-completion/completions/${{ env.PROJECT_NAME }}"
381+ install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "${DPKG_DIR}/usr/share/fish/vendor_completions.d/${{ env.PROJECT_NAME }}.fish"
382+ install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.zsh "${DPKG_DIR}/usr/share/zsh/vendor-completions/_${{ env.PROJECT_NAME }}"
383+
384+ # README and LICENSE
385+ install -Dm644 "README.md" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/README.md"
386+ install -Dm644 "LICENSE-MIT" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICENSE-MIT"
387+ install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICENSE-APACHE"
388+ install -Dm644 "CHANGELOG.md" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/changelog"
389+ gzip -n --best "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/changelog"
390+
391+ cat > "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/copyright" <<EOF
392+ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
393+ Upstream-Name: ${{ env.PROJECT_NAME }}
394+ Source: ${{ env.PROJECT_HOMEPAGE }}
395+
396+ Files: *
397+ Copyright: ${{ env.PROJECT_MAINTAINER }}
398+ Copyright: $COPYRIGHT_YEARS ${{ env.PROJECT_MAINTAINER }}
399+ License: Apache-2.0 or MIT
400+
401+ License: Apache-2.0
402+ On Debian systems, the complete text of the Apache-2.0 can be found in the
403+ file /usr/share/common-licenses/Apache-2.0.
404+
405+ License: MIT
406+ Permission is hereby granted, free of charge, to any
407+ person obtaining a copy of this software and associated
408+ documentation files (the "Software"), to deal in the
409+ Software without restriction, including without
410+ limitation the rights to use, copy, modify, merge,
411+ publish, distribute, sublicense, and/or sell copies of
412+ the Software, and to permit persons to whom the Software
413+ is furnished to do so, subject to the following
414+ conditions:
415+ .
416+ The above copyright notice and this permission notice
417+ shall be included in all copies or substantial portions
418+ of the Software.
419+ .
420+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
421+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
422+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
423+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
424+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
425+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
426+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
427+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
428+ DEALINGS IN THE SOFTWARE.
429+ EOF
430+ chmod 644 "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/copyright"
431+
432+ # control file
433+ mkdir -p "${DPKG_DIR}/DEBIAN"
434+ cat > "${DPKG_DIR}/DEBIAN/control" <<EOF
435+ Package: ${DPKG_BASENAME}
436+ Version: ${DPKG_VERSION}
437+ Section: utils
438+ Priority: optional
439+ Maintainer: ${{ env.PROJECT_MAINTAINER }}
440+ Homepage: ${{ env.PROJECT_HOMEPAGE }}
441+ Architecture: ${DPKG_ARCH}
442+ Provides: ${{ env.PROJECT_NAME }}
443+ Conflicts: ${DPKG_CONFLICTS}
444+ Description: cat(1) clone with wings.
445+ A cat(1) clone with syntax highlighting and Git integration.
446+ EOF
447+
448+ DPKG_PATH="${DPKG_STAGING}/${DPKG_NAME}"
449+ echo ::set-output name=DPKG_PATH::${DPKG_PATH}
450+
451+ # build dpkg
452+ fakeroot dpkg-deb --build "${DPKG_DIR}" "${DPKG_PATH}"
453+
454+ - name: "Artifact upload: tarball"
455+ uses: actions/upload-artifact@master
456+ with:
457+ name: ${{ steps.package.outputs.PKG_NAME }}
458+ path: ${{ steps.package.outputs.PKG_PATH }}
459+
460+ - name: "Artifact upload: Debian package"
461+ uses: actions/upload-artifact@master
462+ if: steps.debian-package.outputs.DPKG_NAME
463+ with:
464+ name: ${{ steps.debian-package.outputs.DPKG_NAME }}
465+ path: ${{ steps.debian-package.outputs.DPKG_PATH }}
466+
467+ - name: Check for release
468+ id: is-release
469+ shell: bash
470+ run: |
471+ unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
472+ echo ::set-output name=IS_RELEASE::${IS_RELEASE}
473+
474+ - name: Publish archives and packages
475+ uses: softprops/action-gh-release@v1
476+ if: steps.is-release.outputs.IS_RELEASE
477+ with:
478+ files: |
479+ ${{ steps.package.outputs.PKG_PATH }}
480+ ${{ steps.debian-package.outputs.DPKG_PATH }}
481+ env:
482+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.gitignore+3
@@ -2,5 +2,8 @@
22**/*.rs.bk
33
44# Generated files
5+/assets/completions/bat.bash
56/assets/completions/bat.fish
7+/assets/completions/bat.zsh
68/assets/manual/bat.1
9+/assets/metadata.yaml
.gitmodules+133−62
@@ -1,32 +1,32 @@
11[submodule "assets/syntaxes/Elixir"]
2− path = assets/syntaxes/Elixir
2+ path = assets/syntaxes/02_Extra/Elixir
33 url = https://github.com/princemaple/elixir-sublime-syntax/
44[submodule "assets/syntaxes/Packages"]
5− path = assets/syntaxes/Packages
5+ path = assets/syntaxes/01_Packages
66 url = https://github.com/sublimehq/Packages/
77[submodule "assets/syntaxes/TOML"]
8− path = assets/syntaxes/TOML
8+ path = assets/syntaxes/02_Extra/TOML
99 url = https://github.com/jasonwilliams/sublime_toml_highlighting
1010[submodule "assets/syntaxes/Julia"]
11− path = assets/syntaxes/Julia
11+ path = assets/syntaxes/02_Extra/Julia
1212 url = https://github.com/JuliaEditorSupport/Julia-sublime
1313[submodule "assets/themes/sublime-monokai-extended"]
1414 path = assets/themes/sublime-monokai-extended
1515 url = https://github.com/jonschlinkert/sublime-monokai-extended
1616[submodule "assets/syntaxes/Docker"]
17− path = assets/syntaxes/Docker
17+ path = assets/syntaxes/02_Extra/Docker
1818 url = https://github.com/asbjornenge/Docker.tmbundle
1919[submodule "assets/syntaxes/VimL"]
20− path = assets/syntaxes/VimL
20+ path = assets/syntaxes/02_Extra/VimL
2121 url = https://github.com/SalGnt/Sublime-VimL
2222[submodule "assets/syntaxes/INI"]
23− path = assets/syntaxes/INI
23+ path = assets/syntaxes/02_Extra/INI
2424 url = https://github.com/clintberry/sublime-text-2-ini
2525[submodule "assets/syntaxes/CMake"]
26− path = assets/syntaxes/CMake
26+ path = assets/syntaxes/02_Extra/CMake
2727 url = https://github.com/zyxar/Sublime-CMakeLists
2828[submodule "assets/syntaxes/LESS"]
29− path = assets/syntaxes/LESS
29+ path = assets/syntaxes/02_Extra/LESS
3030 url = https://github.com/danro/LESS-sublime
3131[submodule "assets/themes/DarkNeon"]
3232 path = assets/themes/DarkNeon
@@ -41,135 +41,206 @@
4141 path = assets/themes/TwoDark
4242 url = https://github.com/erremauro/TwoDark
4343[submodule "assets/syntaxes/AWK"]
44− path = assets/syntaxes/AWK
44+ path = assets/syntaxes/02_Extra/AWK
4545 url = https://github.com/JohnNilsson/awk-sublime
4646[submodule "assets/syntaxes/Nix"]
47− path = assets/syntaxes/Nix
47+ path = assets/syntaxes/02_Extra/Nix
4848 url = https://github.com/wmertens/sublime-nix
4949[submodule "assets/themes/zenburn"]
5050 path = assets/themes/zenburn
5151 url = https://github.com/colinta/zenburn.git
5252[submodule "assets/syntaxes/Kotlin"]
53− path = assets/syntaxes/Kotlin
53+ path = assets/syntaxes/02_Extra/Kotlin
5454 url = https://github.com/vkostyukov/kotlin-sublime-package
5555[submodule "assets/syntaxes/Elm"]
56− path = assets/syntaxes/Elm
56+ path = assets/syntaxes/02_Extra/Elm
5757 url = https://github.com/elm-community/SublimeElmLanguageSupport
5858[submodule "assets/syntaxes/TypeScript"]
59− path = assets/syntaxes/TypeScript
59+ path = assets/syntaxes/02_Extra/TypeScript
6060 url = https://github.com/Microsoft/TypeScript-Sublime-Plugin
6161[submodule "assets/syntaxes/Puppet"]
62− path = assets/syntaxes/Puppet
62+ path = assets/syntaxes/02_Extra/Puppet
6363 url = https://github.com/russCloak/SublimePuppet
64−[submodule "assets/syntaxes/CSV"]
65− path = assets/syntaxes/CSV
66− url = https://github.com/wadetb/Sublime-Text-Advanced-CSV
6764[submodule "assets/themes/onehalf"]
6865 path = assets/themes/onehalf
6966 url = https://github.com/sonph/onehalf
7067[submodule "assets/syntaxes/JavaScript (Babel)"]
71− path = assets/syntaxes/JavaScript (Babel)
68+ path = assets/syntaxes/02_Extra/JavaScript (Babel)
7269 url = https://github.com/babel/babel-sublime
73−[submodule "assets/syntaxes/Cabal"]
74− path = assets/syntaxes/Cabal
75− url = https://github.com/SublimeHaskell/SublimeHaskell
76−[submodule "assets/syntaxes/Dart"]
77− path = assets/syntaxes/Dart
78− url = https://github.com/guillermooo/dart-sublime-bundle
7970[submodule "assets/syntaxes/FSharp"]
80− path = assets/syntaxes/FSharp
71+ path = assets/syntaxes/02_Extra/FSharp
8172 url = https://github.com/hoest/sublimetext-fsharp
8273[submodule "assets/syntaxes/PureScript"]
83− path = assets/syntaxes/PureScript
74+ path = assets/syntaxes/02_Extra/PureScript
8475 url = https://github.com/tellnobody1/sublime-purescript-syntax
8576[submodule "assets/syntaxes/Swift"]
86− path = assets/syntaxes/Swift
77+ path = assets/syntaxes/02_Extra/Swift
8778 url = https://github.com/quiqueg/Swift-Sublime-Package
8879[submodule "assets/syntaxes/Crystal"]
89− path = assets/syntaxes/Crystal
80+ path = assets/syntaxes/02_Extra/Crystal
9081 url = https://github.com/crystal-lang-tools/sublime-crystal.git
9182[submodule "assets/syntaxes/PowerShell"]
92− path = assets/syntaxes/PowerShell
83+ path = assets/syntaxes/02_Extra/PowerShell
9384 url = https://github.com/PowerShell/EditorSyntax
9485[submodule "assets/syntaxes/Robot"]
95− path = assets/syntaxes/Robot
86+ path = assets/syntaxes/02_Extra/Robot
9687 url = https://github.com/andriyko/sublime-robot-framework-assistant.git
9788[submodule "assets/themes/sublime-snazzy"]
9889 path = assets/themes/sublime-snazzy
9990 url = https://github.com/greggb/sublime-snazzy
100−[submodule "assets/syntaxes/AsciiDoc"]
101− path = assets/syntaxes/AsciiDoc
102− url = https://github.com/SublimeText/AsciiDoc.git
10391[submodule "assets/syntaxes/Assembly (ARM)"]
104− path = assets/syntaxes/Assembly (ARM)
92+ path = assets/syntaxes/02_Extra/Assembly (ARM)
10593 url = https://github.com/tvi/Sublime-ARM-Assembly
106−[submodule "assets/syntaxes/syslog-syntax"]
107− path = assets/syntaxes/Syslog
108− url = https://github.com/caos21/syslog-syntax.git
109− branch = master
11094[submodule "assets/syntaxes/protobuf-syntax-highlighting"]
111− path = assets/syntaxes/Protobuf
95+ path = assets/syntaxes/02_Extra/Protobuf
11296 url = https://github.com/VcamX/protobuf-syntax-highlighting.git
11397 branch = master
11498[submodule "assets/syntaxes/Terraform"]
115− path = assets/syntaxes/Terraform
99+ path = assets/syntaxes/02_Extra/Terraform
116100 url = https://github.com/alexlouden/Terraform.tmLanguage.git
117101[submodule "assets/syntaxes/Jsonnet"]
118− path = assets/syntaxes/Jsonnet
102+ path = assets/syntaxes/02_Extra/Jsonnet
119103 url = https://github.com/gburiola/sublime-jsonnet-syntax.git
120104[submodule "assets/syntaxes/varlink"]
121− path = assets/syntaxes/varlink
105+ path = assets/syntaxes/02_Extra/varlink
122106 url = https://github.com/varlink/syntax-highlight-varlink.git
123107[submodule "assets/syntaxes/sublime-fish"]
124− path = assets/syntaxes/Fish
108+ path = assets/syntaxes/02_Extra/Fish
125109 url = https://github.com/Phidica/sublime-fish.git
126110[submodule "assets/syntaxes/Org mode"]
127− path = assets/syntaxes/Org mode
111+ path = assets/syntaxes/02_Extra/Org mode
128112 url = https://github.com/jezcope/Org.tmbundle.git
129−[submodule "assets/syntaxes/requirementstxt"]
130− path = assets/syntaxes/requirementstxt
131− url = https://github.com/wuub/requirementstxt
132113[submodule "assets/syntaxes/DotENV"]
133− path = assets/syntaxes/DotENV
114+ path = assets/syntaxes/02_Extra/DotENV
134115 url = https://github.com/zaynali53/DotENV
135116[submodule "assets/syntaxes/hosts"]
136− path = assets/syntaxes/hosts
117+ path = assets/syntaxes/02_Extra/hosts
137118 url = https://github.com/brandonwamboldt/sublime-hosts
138119[submodule "assets/syntaxes/ssh-config"]
139− path = assets/syntaxes/ssh-config
120+ path = assets/syntaxes/02_Extra/ssh-config
140121 url = https://github.com/robballou/sublimetext-sshconfig.git
141122[submodule "assets/syntaxes/GraphQL"]
142− path = assets/syntaxes/GraphQL
123+ path = assets/syntaxes/02_Extra/GraphQL
143124 url = https://github.com/dncrews/GraphQL-SublimeText3.git
144125[submodule "assets/syntaxes/Verilog"]
145− path = assets/syntaxes/Verilog
126+ path = assets/syntaxes/02_Extra/Verilog
146127 url = https://github.com/pro711/sublime-verilog
147128[submodule "assets/syntaxes/SCSS_Sass"]
148− path = assets/syntaxes/SCSS_Sass
129+ path = assets/syntaxes/02_Extra/SCSS_Sass
149130 url = https://github.com/braver/SublimeSass
150131[submodule "assets/syntaxes/Strace"]
151− path = assets/syntaxes/Strace
132+ path = assets/syntaxes/02_Extra/Strace
152133 url = https://github.com/djuretic/SublimeStrace
153134[submodule "assets/syntaxes/Jinja2"]
154− path = assets/syntaxes/Jinja2
135+ path = assets/syntaxes/02_Extra/Jinja2
155136 url = https://github.com/Martin819/sublime-jinja2
156137[submodule "assets/syntaxes/SLS"]
157− path = assets/syntaxes/SLS
138+ path = assets/syntaxes/02_Extra/SLS
158139 url = https://github.com/saltstack/sublime-text
159140 branch = master
160141[submodule "assets/themes/dracula-sublime"]
161142 path = assets/themes/dracula-sublime
162143 url = https://github.com/dracula/sublime.git
163144[submodule "assets/syntaxes/HTML (Twig)"]
164− path = assets/syntaxes/HTML (Twig)
145+ path = assets/syntaxes/02_Extra/HTML (Twig)
165146 url = https://github.com/Anomareh/PHP-Twig.tmbundle.git
166147[submodule "assets/themes/Nord-sublime"]
167148 path = assets/themes/Nord-sublime
168149 url = https://github.com/crabique/Nord-plist.git
169−[submodule "assets/themes/solarized-sublime"]
170− path = assets/themes/solarized-sublime
171− url = https://github.com/paulcpederson/solarized-sublime.git
172150[submodule "assets/syntaxes/Vue"]
173− path = assets/syntaxes/Vue
151+ path = assets/syntaxes/02_Extra/Vue
174152 url = https://github.com/vuejs/vue-syntax-highlight.git
175153 branch = new
154+[submodule "assets/syntaxes/CoffeeScript"]
155+ path = assets/syntaxes/02_Extra/CoffeeScript
156+ url = https://github.com/sustained/CoffeeScript-Sublime-Plugin
157+[submodule "assets/syntaxes/02_Extra/Stylus"]
158+ path = assets/syntaxes/02_Extra/Stylus
159+ url = https://github.com/billymoon/Stylus
160+[submodule "assets/themes/Solarized"]
161+ path = assets/themes/Solarized
162+ url = https://github.com/braver/Solarized
163+[submodule "assets/syntaxes/02_Extra/Fortran"]
164+ path = assets/syntaxes/02_Extra/Fortran
165+ url = https://github.com/315234/SublimeFortran
166+[submodule "assets/syntaxes/02_Extra/Email"]
167+ path = assets/syntaxes/02_Extra/Email
168+ url = https://github.com/mariozaizar/email.sublime-syntax.git
169+[submodule "assets/syntaxes/02_Extra/QML"]
170+ path = assets/syntaxes/02_Extra/QML
171+ url = https://github.com/skozlovf/Sublime-QML
172+[submodule "assets/syntaxes/02_Extra/AsciiDoc"]
173+ path = assets/syntaxes/02_Extra/AsciiDoc
174+ url = https://github.com/asciidoctor/sublimetext-asciidoc.git
175+[submodule "assets/syntaxes/02_Extra/GLSL"]
176+ path = assets/syntaxes/02_Extra/GLSL
177+ url = https://github.com/euler0/sublime-glsl
178+[submodule "assets/syntaxes/02_Extra/Nginx"]
179+ path = assets/syntaxes/02_Extra/Nginx
180+ url = https://github.com/brandonwamboldt/sublime-nginx
181+[submodule "assets/syntaxes/02_Extra/Apache"]
182+ path = assets/syntaxes/02_Extra/Apache
183+ url = https://github.com/colinta/ApacheConf.tmLanguage
184+[submodule "assets/syntaxes/02_Extra/Ninja"]
185+ path = assets/syntaxes/02_Extra/Ninja
186+ url = https://github.com/pope/SublimeNinja.git
187+[submodule "assets/syntaxes/02_Extra/Svelte"]
188+ path = assets/syntaxes/02_Extra/Svelte
189+ url = https://github.com/corneliusio/svelte-sublime
190+[submodule "assets/themes/Coldark"]
191+ path = assets/themes/Coldark
192+ url = https://github.com/ArmandPhilippot/coldark-bat.git
193+[submodule "assets/themes/gruvbox"]
194+ path = assets/themes/gruvbox
195+ url = https://github.com/subnut/gruvbox-tmTheme.git
196+ branch = bat-source
197+[submodule "assets/syntaxes/02_Extra/Lean"]
198+ path = assets/syntaxes/02_Extra/Lean
199+ url = https://github.com/leanprover/vscode-lean.git
200+[submodule "assets/syntaxes/02_Extra/LiveScript"]
201+ path = assets/syntaxes/02_Extra/LiveScript
202+ url = https://github.com/paulmillr/LiveScript.tmbundle
203+[submodule "assets/syntaxes/02_Extra/Zig"]
204+ path = assets/syntaxes/02_Extra/Zig
205+ url = https://github.com/ziglang/sublime-zig-language.git
206+[submodule "assets/syntaxes/02_Extra/gnuplot"]
207+ path = assets/syntaxes/02_Extra/gnuplot
208+ url = https://github.com/hesstobi/sublime_gnuplot
209+[submodule "assets/syntaxes/02_Extra/SystemVerilog"]
210+ path = assets/syntaxes/02_Extra/SystemVerilog
211+ url = https://github.com/TheClams/SystemVerilog.git
212+[submodule "assets/themes/visual-studio-dark-plus"]
213+ path = assets/themes/visual-studio-dark-plus
214+ url = https://github.com/vidann1/visual-studio-dark-plus.git
215+[submodule "assets/syntaxes/02_Extra/SublimeEthereum"]
216+ path = assets/syntaxes/02_Extra/SublimeEthereum
217+ url = https://github.com/davidhq/SublimeEthereum.git
218+[submodule "assets/syntaxes/02_Extra/Groff"]
219+ path = assets/syntaxes/02_Extra/Groff
220+ url = https://github.com/carsonoid/sublime_man_page_support
221+[submodule "assets/syntaxes/02_Extra/http-request-response"]
222+ path = assets/syntaxes/02_Extra/http-request-response
223+ url = https://github.com/keith-hall/http-request-response-syntax.git
224+[submodule "assets/syntaxes/02_Extra/LLVM"]
225+ path = assets/syntaxes/02_Extra/LLVM
226+ url = https://github.com/ioncodes/LLVM.tmBundle
227+[submodule "assets/syntaxes/02_Extra/Slim"]
228+ path = assets/syntaxes/02_Extra/Slim
229+ url = https://github.com/slim-template/ruby-slim.tmbundle.git
230+[submodule "assets/syntaxes/02_Extra/Racket"]
231+ path = assets/syntaxes/02_Extra/Racket
232+ url = https://github.com/follesoe/sublime-racket.git
233+[submodule "assets/syntaxes/02_Extra/MediaWiki"]
234+ path = assets/syntaxes/02_Extra/MediaWiki
235+ url = https://github.com/tosher/Mediawiker.git
236+[submodule "assets/syntaxes/02_Extra/Dart"]
237+ path = assets/syntaxes/02_Extra/Dart
238+ url = https://github.com/elMuso/Dartlight.git
239+[submodule "assets/syntaxes/02_Extra/SublimeJQ"]
240+ path = assets/syntaxes/02_Extra/SublimeJQ
241+ url = https://github.com/zogwarg/SublimeJQ.git
242+[submodule "assets/syntaxes/02_Extra/cmd-help"]
243+ path = assets/syntaxes/02_Extra/cmd-help
244+ url = https://github.com/victor-gp/cmd-help-sublime-syntax.git
245+ branch = main
246+ shallow = true
.travis.ymldeleted−107
@@ -1,107 +0,0 @@
1−language: rust
2−cache: cargo
3−
4−matrix:
5− include:
6− # Stable channel.
7− - os: linux
8− rust: stable
9− env: TARGET=x86_64-unknown-linux-gnu
10− - os: linux
11− rust: stable
12− env:
13− - TARGET=x86_64-unknown-linux-musl
14− - CC_x86_64_unknown_linux_musl=/usr/bin/musl-gcc
15− - os: linux
16− rust: stable
17− env: TARGET=i686-unknown-linux-gnu
18− - os: osx
19− rust: stable
20− env: TARGET=x86_64-apple-darwin
21− - os: linux
22− rust: stable
23− env:
24− - TARGET=arm-unknown-linux-gnueabihf
25− - CC_arm_unknown_linux_gnueabihf=/usr/bin/arm-linux-gnueabihf-gcc-4.8
26− - CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8
27− - os: linux
28− rust: stable
29− env:
30− - TARGET=aarch64-unknown-linux-gnu
31− - CC_aarch64-unknown-linux-gnu=/usr/bin/aarch64-linux-gnu-gcc-4.8
32− - CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc-4.8
33−
34− # Minimum Rust supported channel.
35− - os: linux
36− rust: 1.36.0
37− env: TARGET=x86_64-unknown-linux-gnu
38− - os: linux
39− rust: 1.36.0
40− env:
41− - TARGET=x86_64-unknown-linux-musl
42− - CC_x86_64_unknown_linux_musl=/usr/bin/musl-gcc
43− - os: osx
44− rust: 1.36.0
45− env: TARGET=x86_64-apple-darwin
46−
47− # Disable nightly for now
48− # # Code formatting check
49− # - os: linux
50− # rust: nightly
51− # # skip the global install step
52− # install:
53− # - cargo install --debug --force rustfmt-nightly
54− # script: cargo fmt -- --check
55−
56−sudo: required
57−
58−before_install:
59− - ci/before_install.bash
60−
61−env:
62− global:
63− # Default target on travis-ci.
64− # Used as conditional check in the install stage
65− - HOST=x86_64-unknown-linux-gnu
66− # Used on the deployment script
67− - PROJECT_NAME=bat
68−
69−install:
70− # prevent target re-add error from rustup
71− - if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
72−
73−script:
74− - ci/script.bash
75−
76−before_deploy:
77− - bash ci/before_deploy.bash
78−
79−deploy:
80− provider: releases
81− # NOTE updating the `api_key.secure`
82− # - go to: https://github.com/settings/tokens/new
83− # - generate new token using `public_repo` scope
84− # - encrypt it using: `travis encrypt API_KEY_HERE`
85− # - paste the output below
86− api_key:
87− secure: "GZL8nYk+/MZGEqejpP0UMMGVmwUEdxiF9CflFIGccu+/tznDyHnHOpyJmbH3M5IKWIxa7xFgqOE8pHuD4oQXt4mzyJGB0KMKKEFLW7ckbTYKya5bw0heKznaqGnS0Yz+vpfqYR25eiPFYCz7mDsGsCzH5QZqt3cdn9MDQGu1D0IaxPjuBNH3T9kBblR0ifBd3Diy0JYhiVcMSI3V1rkel18F1yBHO2GQ95hkWxVgjANQnefq5+zdzbx4ki539ewYENShA8N0w6ULJVY9LmWRWJIp90ggOD3JCH6Nz/fBpYBqwfABO6Dr7Csw7IRm7pM4IVkFZS1taiDYFX9thxZh3UTmI4YYtSTPxH9NGV47kxPipbf4vAXFwW+1VcHKMpBzz+5IVsHnk1Pfx9/GZsXbqXM3PUWCStec36Xtqh5vQapDKEg9khkEs4b1X7/E73gvpRuQl9gbnyufSVWgDsXIWqM+0aDbqQz1FpLmVxz6eij0cB9vR+8kbNoe/CEPHPO9ZllvAHseukOeHPzSBd8rILORXaaGmQausXz2wWgSsffUSYz4705P8joI0zFCfmkHjL+kA1ZUx5SxLCc1ID7CFFZChhAxHoPL7xc21snswwr8QeheERdwvuzKNaerBGZEw8dmMMx98YkjftIj65DDySr2mRZuufBQeQpmMhFyIT4="
88− # for uploading multiple files
89− file_glob: true
90− # NOTE explanation on each env variable
91− # - PROJECT_NAME: name of the project, set on the `env.global` above
92− # - TRAVIS_TAG: tag name that the build is being deployed for, usually the version number
93− # - TARGET: target triple of the build
94− file:
95− - $PROJECT_NAME-$TRAVIS_TAG-$TARGET.*
96− - $PROJECT_NAME*.deb
97− # don't delete artifacts from previous stage
98− skip_cleanup: true
99− on:
100− # deploy only if we push a tag
101− tags: true
102− # deploy only on stable channel that has TARGET env variable sets
103− condition: $TRAVIS_RUST_VERSION = stable && $TARGET != ""
104−
105−notifications:
106− email:
107− on_success: never
CHANGELOG.mdnew file+1020
@@ -0,0 +1,1020 @@
1+# unreleased
2+
3+## Features
4+
5+- Make the default macOS theme depend on Dark Mode. See #2197, #1746 (@Enselic)
6+
7+## Bugfixes
8+
9+## Other
10+
11+- Relaxed glibc requirements on amd64, see #2106 and #2194 (@sharkdp)
12+
13+## Syntaxes
14+
15+## Themes
16+
17+## `bat` as a library
18+
19+
20+# v0.21.0
21+
22+## Features
23+
24+- Correctly render tab stops in `--show-all`, see #2038 (@Synthetica9)
25+- Add a `--style=default` option and make it the default. It is less verbose than `full`, see #2061 (@IsaacHorvath)
26+- Enable BusyBox `less` as pager, see #2162 (@nfisher1226)
27+- File extensions are now matched case-insensitively. See #1854, #2181 (@Enselic)
28+
29+## Bugfixes
30+
31+- Bump `regex` dependency from 1.5.4 to 1.5.5 to fix [CVE-2022-24713](https://blog.rust-lang.org/2022/03/08/cve-2022-24713.html), see #2145, #2139 (@Enselic)
32+- `bat` no longer crashes when encountering files that references missing syntaxes. See #915, #2181 (@Enselic)
33+
34+## Performance
35+
36+- Skip syntax highlighting on long lines (> 16384 chars) to help improve performance. See #2165 (@keith-hall)
37+- Vastly improve startup time by lazy-loading syntaxes via syntect 5.0.0. This makes bat display small files ~75% faster than before. See #951, #2181 (@Enselic)
38+
39+## Other
40+
41+- Include info about custom assets in `--diagnostics` if used. See #2107, #2144 (@Enselic)
42+
43+## Syntaxes
44+
45+- Mapped clang-format config file (.clang-format) to YAML syntax (@TruncatedDinosour)
46+- log syntax: improved handling of escape characters in double quoted strings. See #2123 (@keith-hall)
47+- Associate `/var/spool/mail/*` and `/var/mail/*` with the `Email` syntax. See #2156 (@cyqsimon)
48+- Added cmd-help syntax to scope --help messages. See #2148 (@victor-gp)
49+- Slightly adjust Zig syntax. See #2136 (@Enselic)
50+- Associate `.inf` files with the `INI` syntax. See #2190 (@Enselic)
51+
52+## `bat` as a library
53+
54+- Allow configuration of `show_nonprintable` with `PrettyPrinter`, see #2142
55+- The binary format of syntaxes.bin has been changed due to syntaxes now being lazy-loaded via syntect 5.0.0. See #2181 (@Enselic)
56+- Mark `bat::error::Error` enum as `#[non_exhaustive]` to allow adding new variants without future semver breakage. See #2181 (@Enselic)
57+- Change `Error::SyntectError(syntect::LoadingError)` to `Error::SyntectError(syntect::Error)`. See #2181 (@Enselic)
58+- Add `Error::SyntectLoadingError(syntect::LoadingError)` enum variant. See #2181 (@Enselic)
59+
60+
61+# v0.20.0
62+
63+## Features
64+
65+- New style component `header-filesize` to show size of the displayed file in the header. See #1988 (@mdibaiee)
66+- Use underline for line highlighting on ANSI, see #1730 (@mdibaiee)
67+
68+## Bugfixes
69+
70+- Fix bash completion on bash 3.x and bash-completion 1.x. See #2066 (@joshpencheon)
71+
72+## Syntaxes
73+
74+- `GraphQL`: Add support for interfaces implementing interfaces and consider ampersand an operator. See #2000
75+- Associate `_vimrc` and `_gvimrc` files with the `VimL` syntax. See #2002
76+- Associate `poetry.lock` files with the `TOML` syntax. See #2049
77+- Associate `.mesh`, `.task`, `.rgen`, `.rint`, `.rahit`, `.rchit`, `.rmiss`, and `.rcall` with the `GLSL` syntax. See #2050
78+- Added support for `JQ` syntax, see #2072
79+- Properly associate global git config files rooted in `$XDG_CONFIG_HOME/git/` or `$HOME/.config/git/`. See #2067 (@cyqsimon)
80+
81+## `bat` as a library
82+
83+- Exposed `get_syntax_set` and `get_theme` methods on `HighlightingAssets`. See #2030 (@dandavison)
84+- Added `HeaderFilename` and `HeaderFilesize` to `StyleComponent` enum, and mark it `#[non_exhaustive]`. See #1988 (@mdibaiee)
85+
86+
87+# v0.19.0
88+
89+## Performance
90+
91+- Reduce startup time in loop-through mode (e.g. when redirecting output) by 90%. See #1747 (@Enselic)
92+- Load themes lazily to make bat start 25% faster when disregarding syntax load time. See #1969 (@Enselic)
93+- Python syntax highlighting no longer suffers from abysmal performance in specific scenarios. See #1688 (@keith-hall)
94+- Fix for poor performance when ANSI escape sequences are piped to `bat`, see #1596 (@eth-p)
95+- Fix for incorrect handling of ANSI escape sequences when using `--wrap=never`, see #1596 (@eth-p)
96+- Load custom assets as fast as integrated assets, see #1753 (@Enselic)
97+
98+## Features
99+
100+- Support for `x:-delta` (minus) syntax in line ranges (e.g. `20:-10`). See #1901 (@bojan88)
101+- Support for `--ignored-suffix` argument. See #1892 (@bojan88)
102+- `$BAT_CONFIG_DIR` is now a recognized environment variable. It has precedence over `$XDG_CONFIG_HOME`, see #1727 (@billrisher)
103+- Support for `x:+delta` syntax in line ranges (e.g. `20:+10`). See #1810 (@bojan88)
104+- Add new `--acknowledgements` option that gives credit to theme and syntax definition authors. See #1971 (@Enselic)
105+- Include git hash in `bat -V` and `bat --version` output if present. See #1921 (@Enselic)
106+
107+## Bugfixes
108+
109+- First line not shown in diff context. See #1891 (@divagant-martian)
110+- Do not ignore syntaxes that handle file names with a `*.conf` extension. See #1703 (@cbolgiano)
111+
112+## Other
113+
114+- Add PowerShell completion, see #1826 (@rashil2000)
115+- Minimum supported Rust version (MSRV) bumped to 1.51, see #1994 (@mdibaiee)
116+
117+## Syntaxes
118+
119+- Groff, see #1685 (@scop)
120+- HTTP Requests and Responses, see #1748 (@keith-hall)
121+- LLVM, see #1777 (@ioncodes)
122+- Highlight for `vimrc` and `gvimrc` files, see #1763 (@SuperSandro2000)
123+- Syslog highlighting improvements, see #1793 (@scop)
124+- Added support for `slim` syntax, see #1693 (@mfinelli)
125+- Racket, see #1884 (@jubnzv)
126+- LiveScript, see #1915 (@Enselic)
127+- MediaWiki, see #1925 (@sorairolake)
128+- The `requirements.txt` syntax has been removed due to incompatible license requirements.
129+- Dart, new highlighter, see #1959 (@Ersikan)
130+- SCSS and Sass syntaxes updated, see #1766 (@Enselic)
131+- PowerShell syntax updated, see #1935 (@Enselic)
132+- TypeScript syntax updated, see #1834 (@Enselic)
133+
134+## `bat` as a library
135+
136+- Deprecate `HighlightingAssets::syntaxes()` and `HighlightingAssets::syntax_for_file_name()`. Use `HighlightingAssets::get_syntaxes()` and `HighlightingAssets::get_syntax_for_path()` instead. They return a `Result` which is needed for upcoming lazy-loading work to improve startup performance. They also return which `SyntaxSet` the returned `SyntaxReference` belongs to. See #1747, #1755, #1776, #1862 (@Enselic)
137+- Remove `HighlightingAssets::from_files` and `HighlightingAssets::save_to_cache`. Instead of calling the former and then the latter you now make a single call to `bat::assets::build`. See #1802, #1971 (@Enselic)
138+- Replace the `error::Error(error::ErrorKind, _)` struct and enum with an `error::Error` enum. `Error(ErrorKind::UnknownSyntax, _)` becomes `Error::UnknownSyntax`, etc. Also remove the `error::ResultExt` trait. These changes stem from replacing `error-chain` with `thiserror`. See #1820 (@Enselic)
139+- Add new `MappingTarget` enum variant `MapExtensionToUnknown`. Refer to its documentation for more information. Also mark `MappingTarget` as `#[non_exhaustive]` since more enum variants might be added in the future. See #1703 (@cbolgiano), #2012 (@Enselic)
140+
141+
142+# v0.18.3
143+
144+## Bugfixes
145+
146+- Bump `git2` dependency to fix build with Rust 1.54, see #1761
147+
148+
149+# v0.18.2
150+
151+## Features
152+
153+- Ignore known backup/template filename suffixes when selecting the syntax, see #1687 (@scop)
154+
155+## Bugfixes
156+
157+- Fix for a security vulnerability on Windows. Prior to this release, `bat` would execute programs called `less`/`less.exe` from the current working directory (instead of the one from `PATH`) with priority. An attacker might be able to use this by placing a malicious program in a shared directory where the user would execute `bat`. `bat` users on Windows are advised to upgrade to this version. See #1724 and #1472 (@Ry0taK).
158+
159+## Other
160+
161+- Add bash completion, see #1678 (@scop)
162+- Fix Clippy lints, see #1661 (@mohamed-abdelnour)
163+- Add syntax highlighting test files, see #1213 and #1668 (@mohamed-abdelnour)
164+
165+## Syntaxes
166+
167+- Upgraded Julia syntax to fix a highlighting bug, see #1692
168+- Added support for `dash` syntax, see #1654 (@mohamed-abdelnour)
169+- Added support for `XAML` syntax, see #1590 and #1655 (@mohamed-abdelnour)
170+- Apply `DotENV` syntax also for `.env.default` and `.env.defaults` files, see #1669
171+
172+
173+# v0.18.1
174+
175+## Bugfixes
176+
177+- Mouse support and screen clearing broken for `less` versions with minor version number (581.2), see #1629 and #1639 (@aswild)
178+
179+## Other
180+
181+- `Input::ordinary_file` and `Input::with_name` now accept `Path` rather than `OsStr` see #1571 (@matklad)
182+- The `LESS` environment variable is now included in `bat --diagnostic`, see #1589 (@Enselic)
183+- Increased min. required Rust version to 1.45
184+
185+## Syntaxes
186+
187+- Improved the Syslog syntax highlighting, see #1606 (@keith-hall)
188+- Replaced "Advanced CSV" with a custom CSV syntax definition written especially for `bat`; see #1574 (@keith-hall)
189+- Added SystemVerilog file syntax, see #1580 (@SeanMcLoughlin)
190+- Added Solidity and Vyper syntax, see #1602 (@Ersikan)
191+
192+## New themes
193+
194+- Dark+ VS Code theme, see #1588 and #1598 (@PatriotRossii)
195+
196+
197+
198+# v0.18.0
199+
200+## Features
201+
202+- Use a pager when `bat --list-languages` is called, see #1394 (@stku1985)
203+
204+## Bugfixes
205+
206+- If the last line doesn't end with a newline character, don't add it if `--style=plain`, see #1438 (@Enselic)
207+- Only print themes hint in interactive mode (`bat --list-themes`), see #1439 (@rsteube)
208+- Make ./tests/syntax-tests/regression_test.sh work on recent versions of macOS, see #1443 (@Enselic)
209+- VimL syntax highlighting fix, see #1450 (@esensar)
210+- Print an 'Invalid syntax theme settings' error message if a custom theme is broken, see #614 (@Enselic)
211+- If plain mode is set and wrap is not explicitly opted in, long lines will no be truncated, see #1426
212+- If `PAGER` (but not `BAT_PAGER` or `--pager`) is `more` or `most`, silently use `less` instead to ensure support for colors, see #1063 (@Enselic)
213+- If `PAGER` is `bat`, silently use `less` to prevent recursion. For `BAT_PAGER` or `--pager`, exit with error, see #1413 (@Enselic)
214+- Manpage highlighting fix, see #1511 (@keith-hall)
215+- `BAT_CONFIG_PATH` ignored by `bat` if non-existent, see #1550 (@sharkdp)
216+
217+## Other
218+
219+- Performance improvements, see #1421 (@LovecraftianHorror)
220+- Added a new `--diagnostic` option to collect information for bug reports, see #1459 (@sharkdp)
221+- Modified default theme colors to differentiate between a JSON key and a string value, see #1400 (@keith-hall)
222+- Upped min required Rust version to 1.42
223+
224+## Syntaxes
225+
226+- Added Zig syntax, see #1470 (@paulsmith)
227+- Added Lean syntax, see #1446 (@Julian)
228+- Added `.resource` extension for Robot Framework files, see #1386
229+- Added `gnuplot` syntax, see #1431 (@sharkdp)
230+- Highlight *.pac (Proxy auto-config) files as JavaScript, see #1515 (@sharkdp)
231+
232+## New themes
233+
234+- `ansi` replaces `ansi-dark` and `ansi-light`, see #1104 and #1412 (@mk12). **Breaking change:** users that were previously using one of the `ansi-*` themes should switch to `ansi`.
235+- The Gruvbox theme has been updated, see #1291 (@j0hnmeow). **Breaking change:** users that were previously using `gruvbox` or `gruvbox-white` should update and use `gruvbox-dark`/`gruvbox-light` instead.
236+
237+## `bat` as a library
238+
239+- The following `PrettyPrinter` methods have been removed (they were previously deprecated):
240+ - `input_stdin_with_name`
241+ - `input_from_bytes_with_name`
242+ - `input_from_reader_with_name`
243+ - `vcs_modification_markers` (if the `git` feature is not enabled)
244+
245+
246+# v0.17.1
247+
248+## Bugfixes
249+
250+- Running `bat` without arguments fails ("output file is also an input"), see #1396
251+
252+
253+# v0.17.0
254+
255+## Features
256+
257+- Added a new `--style` value, `rule`, which adds a simple horizontal ruled line between files, see #1276 (@tommilligan)
258+- Pass `-S` ("chop long lines") to `less` if `--wrap=never` is set in `bat`, see #1255 (@gahag)
259+
260+## Bugfixes
261+
262+- Detect infinite loop when input and output are the same, see #1193 and #1197 (@niklasmohrin)
263+- Throw an error when `bat` is being used as `pager`, see #1343 (@adrian-rivera)
264+- Bash syntax highlighting not selected for `*.ebuild` and `*.eclass` files, see #1292 (@sharkdp)
265+- Fix `zsh` completion when using `-p`, see #1320 (@xzfc)
266+
267+## Other
268+
269+- Add note to refer to see detailed help with `--help` (and vice versa with `-h`), see #1215 (@henil)
270+- Add a `Contributors` section to `README`, see #1348 (@adrian-rivera)
271+
272+## Syntaxes
273+
274+- Manpage syntax highlighting has been improved, see #1315 (@keith-hall)
275+- Add Svelte file syntax, see #1285 (@kjmph)
276+
277+## New themes
278+
279+- Coldark, see #1329 (@armandphilippot)
280+
281+
282+# v0.16.0
283+
284+## Features
285+
286+- Added support for the `NO_COLOR` environment variable, see #1021 and #1031 (@eth-p)
287+- Added `-P` short flag to disable paging, see #1075 and #1082 (@LordFlashmeow)
288+- Added `--force-colorization`/`-f` flag to provide an alias for forced color and decoration output, see #1141 (@alexanderkarlis)
289+
290+## Bugfixes
291+
292+- Fixed non-printable characters display for redirected output, see #1061 (@gsomix)
293+- Handle file extension conflicts in `--list-languages`, see #1076 and #1135 (@Kienyew)
294+
295+## Other
296+
297+- Switched to "·" (U+00B7) Middle Dot from "•" (U+2022) Bullet for non-printing spaces, see #1056 and #1100 (@LordFlashmeow)
298+- Added zsh shell completion script, see #1136 (@Kienyew)
299+- Improved `--help` text (@sharkdp)
300+- Added custom languages/themes sections to manpage (@eth-p)
301+
302+## Syntaxes
303+
304+- Update AsciiDoc syntax, see #1034 (@rxt1077)
305+- GLSL (@caioalonso)
306+- Add Nginx and Apache config file syntax, see #1137 (@kjmph, @niklasmohrin)
307+- Use `fstab` syntax for `crypttab` files, see #1073 (@sharkdp)
308+- Support syntax highlighting for files in `$XDG_CONFIG_HOME/git/`, see #1191 (@ahmedelgabri)
309+
310+## New themes
311+
312+- Gruvbox, see #1069 (@kyleondy)
313+- base16-256 for [base16-shell](https://github.com/chriskempson/base16-shell) users, see #1111 (@mk12)
314+
315+## `bat` as a library
316+
317+- Add APIs to provide `Input` descriptions with `InputDescription` (@eth-p)
318+- Add function to directly provide `Input`s to `PrettyPrinter` (@eth-p)
319+- **Breaking:** `Input::theme_preview_file` is no longer available. (@eth-p)
320+
321+## Packaging
322+
323+- Removed build dependency on `liquid` (@sharkdp).
324+
325+# v0.15.4
326+
327+## Bugfixes
328+
329+- Added missing Solarized themes, see #1027
330+- Fixed highlighting bug in Haskell source files, see #1026
331+
332+# v0.15.3
333+
334+## Bugfixes
335+
336+- Cannot run `bat` with relative paths, see #1022
337+- bat mishighlights Users that start with digits in SSH config, see #984
338+
339+## New syntaxes
340+
341+- SML, see #1005 (@kopecs)
342+
343+## Other
344+
345+- Some syntaxes and themes have been updated to the latest version
346+
347+# v0.15.2
348+
349+## Bugfixes
350+
351+- Fix syntax detection for files called 'rails', see #1008
352+- Fix potential errors with syntax detection for symlinked files, see #1001
353+- `--map-syntax` doesn't work with names provided through `--file-name` (@eth-p)
354+
355+## Other
356+
357+- Add padding above headers when not using a grid, see #968 and #981 (@pt2121)
358+- bat now prints an error if an invalid syntax is specified via `-l` or `--map-syntax`, see #1004 (@eth-p)
359+
360+## `bat` as a library
361+
362+- `PrettyPrinter::vcs_modification_markers` has been marked deprecated when building without the `git` feature, see #997 and #1020 (@eth-p, @sharkdp)
363+
364+## Packaging
365+
366+- Compilation problems with `onig_sys` on various platforms have been resolved by upgrading to `syntect 4.2`, which includes a new `onig` version that allows to build `onig_sys` without the `bindgen` dependency. This removes the need for `libclang(-dev)` to be installed to compile `bat`. Package maintainers might want to remove `clang` as a build dependency. See #650 for more details.
367+
368+# v0.15.1
369+
370+## Bugfixes
371+
372+- Fix highlighting of Markdown files, see #963 and #977
373+- Fix `base16` theme (was broken since in v0.14), see #972, #934 and #979 (@mk12).
374+ Users suffering from #865 ("no color for bat in ssh from a Windows client") can use the `ansi-dark` and `ansi-light` themes from now on.
375+
376+## New syntaxes
377+
378+- Fortran, see #957
379+- Email (@mariozaizar)
380+- QML, see #962 (@pylipp)
381+
382+# v0.15.0
383+
384+## Features
385+
386+- Add a new `--diff`/`-d` option that can be used to only show lines surrounding
387+ Git changes, i.e. added, removed or modified lines. The amount of additional
388+ context can be controlled with `--diff-context=N`. See #23 and #940
389+
390+## Bugfixes
391+
392+- Error message printed in the middle of the output for another file, see #946
393+- Performance improvements when using custom caches (via `bat cache --build`): the `bat` startup time should now be twice as fast (@lzutao).
394+
395+## Themes
396+
397+- Updated version of the Solarized dark/light themes, see #941
398+
399+## `bat` as a library
400+
401+- There are a few changes in the "low level" API (the `Config` struct has changed and
402+ the error handler needs a new `&mut dyn Write` argument). The high-level API is not
403+ affected.
404+
405+# v0.14.0
406+
407+## Features
408+
409+- Added a new `--file-name <name>…` option to overwrite the displayed filename(s)
410+ in the header. This is useful when piping input into `bat`. See #654 and #892 (@neuronull).
411+- Added a new `--generate-config-file` option to create an initial configuration file
412+ at the right place. See #870 (@jmick414)
413+
414+## Bugfixes
415+
416+- Performance problems with C# source code have been fixed, see #677 (@keith-hall)
417+- Performance problems with Makefiles have been fixed, see #750 (@keith-hall)
418+- Fix bug when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall)
419+- A highlighting problem with Rust source code has been fixed, see #924 (@keith-hall)
420+- Windows: short files that do not require paging are displayed and then lost, see #887
421+- `--highlight-line` did not work correctly in combination with `--tabs=0` and `--wrap=never`,
422+ see #937
423+
424+## Other
425+
426+- When saving/reading user-provided syntaxes or themes, `bat` will now maintain a
427+ `metadata.yaml` file which includes information about the `bat` version which was
428+ used to create the cached files. When loading cached files, we now print an error
429+ if they have been created with an incompatible version. See #882
430+- Updated `liquid` dependency to 0.20, see #880 (@ignatenkobrain)
431+
432+## `bat` as a library
433+
434+- A completely new "high level" API has been added that is much more convenient
435+ to use. See the `examples` folder for the updated code. The older "low level"
436+ API is still available (basically everything that is not in the root `bat`
437+ module), but has been refactored quite a bit. It is recommended to only use
438+ the new "high level" API, if possible. This will be much easier to keep stable.
439+ Note that this should still be considered a "beta" release of `bat`-as-a-library.
440+ For more details and some screenshots of the example programs, see #936.
441+- Stripped out a lot of binary-only dependencies, see #895 and #899 (@dtolnay)
442+
443+ This introduces a `features = ["application"]` which is enabled by default and pulls in
444+ everything required by `bat` the application. When depending on bat as a library, downstream
445+ `Cargo.toml` should disable this feature to cut out inapplicable heavy dependencies:
446+ ``` toml
447+ [dependencies]
448+ bat = { version = "0.14", default-features = false }
449+ ```
450+ Other optional functionality has also been put behind features: `paging` and `git` support.
451+- Allow using the library with older syntect, see #896 and #898 (@dtolnay)
452+
453+## New syntaxes
454+
455+- Rego, see #872 (@patrick-east)
456+- Stylo, see #917
457+
458+
459+# v0.13.0
460+
461+## `bat` as a library
462+
463+Beginning with this release, `bat` can be used as a library (#423).
464+
465+This was a huge effort and I want to thank all people who made this possible: @DrSensor, @mitsuhiko, @mre, @eth-p!
466+
467+- Initial attempt in #469 (@mitsuhiko)
468+- Second attempt, complete restructuring of the `bat` crate, see #679 (@DrSensor)
469+- Updates to example, public API, error handling, further refactoring: #693 #873 #875 (@sharkdp)
470+
471+I want to stress that this is the very first release of the library. Things are very likely to change. A lot of things are still missing (including the documentation).
472+
473+That being said, you can start using it! See the example programs in [`examples/`](https://github.com/sharkdp/bat/tree/master/examples).
474+
475+You can see the API documentation here: https://docs.rs/bat/
476+
477+## Features
478+
479+- (**Breaking change**) Glob-based syntax mapping, see #877 and #592. With this change,
480+ users need to update their bat config files (`bat --config-file`), if they have any `--map-syntax` settings
481+ present.
482+
483+ The option now works like this:
484+ ```bash
485+ --map-syntax <glob-pattern>:<syntax-name>
486+ ```
487+
488+ For more information, see the `--help` text, the man page or the README.
489+
490+ This new feature allows us to properly highlight files like:
491+ * `/etc/profile`
492+ * `~/.ssh/config`
493+
494+- `--highlight-line` now accepts line ranges, see #809 (@lkalir)
495+- Proper wrapping support for output with wide Unicode characters, see #811 #787 and #815 (@Kogia-sima)
496+- A lot of updates to existing syntaxes via #644 (@benwaffle, @keith-hall)
497+- `BAT_CACHE_PATH` can be used to place cached `bat` assets in a non-standard path, see #829 (@neuronull)
498+- Support combination of multiple styles at the same time, see #857 (@aslpavel)
499+
500+## Bugfixes
501+
502+- Do not pass '--no-init' on newer less versions, see #749 and #786 (@sharkdp)
503+- 'bat cache' still takes precedence over existing files, see #666 (@sharkdp)
504+- `.sc` files should be treated as scala files, see #443 (@benwaffle)
505+- Allow underscores and dashes in page names, see #670 (@LunarLambda)
506+- Keep empty lines empty, see #601 (@mbarbar)
507+- Wrapping does not work when piping, see #758 (@fusillicode, @allevo, @gildo)
508+- Allow for non-unicode filenames, see #225 (@sharkdp)
509+- Empty file without header produces incomplete grid, see #798 (@eth-p)
510+- Files named `build` don't respect shebang lines, see #685 (@sharkdp)
511+
512+## Other
513+
514+- Parametrizable names for man page and shell completion files, see #659 #673 #656 (@eth-p)
515+- Enabled LTO, making `bat` about 10% faster, see #719 (@bolinfest, @sharkdp)
516+- Suggestions non how to configure `bat` for MacOS dark mode, see README (@jerguslejko)
517+- Extended ["Integration with other tools"](https://github.com/sharkdp/bat#integration-with-other-tools) section (@eth-p)
518+- Updated [instrutions on how to use `bat` as a `man`-pager](https://github.com/sharkdp/bat#man), see #652, see #667 (@sharkdp)
519+- Add section concerning file encodings, see #688 and #568 (@sharkdp)
520+- Updated sort order of command-line options in `--help` text and manpage, see #653 and #700 (@hrlmartins)
521+- Updates to the man page syntax, see #718 (@sharkdp)
522+- Japanese documentation updates, see #863 (@k-ta-yamada, @sorairolake and @wt-l00)
523+- Accept "default" as a theme, see #757 (@fvictorio)
524+- Updated Windows installation instructions, see #852 (@sorenbug)
525+- Updated man page, see #573 (@sharkdp)
526+
527+## New syntaxes
528+
529+- Jinja2, see #648 (@Martin819)
530+- SaltStack SLS, see #658 (@Martin819)
531+- `/etc/fstab`, see #696 (@flopp and @eth-p)
532+- `/etc/group` and `/etc/passwd`, see #698 (@argentite)
533+- `/proc/cpuinfo` and `/proc/meminfo`, see #593 (@sharkdp)
534+- Nim, see #542 (@sharkdp)
535+- Vue, see #826 (@chaaaaarlotte)
536+- CoffeScript, see #833 (@sharkdp)
537+
538+## New themes
539+
540+- Dracula, see #687 (@clarfon)
541+- Nord, see #760 (@crabique)
542+- Solarized light and dark, see #768 (@hakamadare)
543+
544+## Packaging
545+
546+- `bat` is now in the official Ubuntu and Debian repositories, see #323 and #705 (@MarcoFalke)
547+- `bat` can now be installed via MacPorts, see #675 (@bn3t)
548+- Install fish completions into 'vendor_completions.d', see #651 (@sharkdp)
549+
550+## Thanks
551+
552+- To @eth-p for joining me as a maintainer! I'm very grateful for all the work you put into
553+ managing and responding to issues, improving our deployment, adding PR/issue templates (#837) as
554+ well as fixing bugs and implementing new features.
555+
556+# v0.12.1
557+
558+## Bugfixes
559+
560+- Fixes a bug for older Windows versions (*"The procedure entry point `CreateFile2` could not be located"*), see #643 (@rivy)
561+
562+# v0.12.0
563+
564+## Features
565+
566+- Binary file content can now be viewed with `bat -A`, see #623, #640 (@pjsier and @sharkdp)
567+- `bat` can now be used as a man pager. Take a look at the README and #523 for more details.
568+- Add new style component to separate multiple `--line-range`s, see #570 (@eth-p)
569+- Added `-L` as an alias for `--list-languages`
570+
571+## Bugfixes
572+
573+- Output looks unbalanced when using '--style=grid,numbers' without 'header', see #571 (@eth-p)
574+- issues with filenames starting with "cache", see #584
575+- Can't build cache with new theme without creating cache dir, see #576 (@frm)
576+- `--terminal-width -10` is parsed incorrectly, see #611
577+
578+## Other
579+
580+- Added fish completions to DEB package, see #554
581+
582+## New syntaxes
583+
584+- Emacs Org mode, see #36 (@bricewge)
585+- `requirements.txt`
586+- DotENV `.env`
587+- SSH config syntax (`-l ssh_config`), see #582 (@issmirnov)
588+- `/etc/hosts`, see #583 (@issmirnov)
589+- GraphQL, see #625 (@dandavison)
590+- Verilog, see #616
591+- SCSS and Sass, see #637
592+- `strace` syntax, see #599
593+
594+## Packaging
595+
596+- `bat` is now in the official Gentoo repositories, see #588 (@toku-sa-n)
597+- `bat` is now in the official Alpine Linux repositories, see #586 (@5paceToast)
598+- `bat` is in the official Fedora repositories, see #610 (@ignatenkobrain)
599+
600+# v0.11.0
601+
602+## Features
603+
604+- Three new special color themes are available: `ansi-light`, `ansi-dark` and `base16`. These
605+ are useful for people that often switch from dark to light themes in their terminal emulator
606+ or for people that want the colors to match their terminal theme colors. For more details,
607+ see #543 and #490 (@mk12, implementation idea by @trishume)
608+- Hand-written auto completion script for Fish shell, see #524 and #555 (@ev-dev and @eth-p)
609+- The `-p`/`--plain` option can now be used twice (typically `-pp`). The first `-p` switches the
610+ `--style` to "plain". The second `-p` disables the pager. See #560 and #552 (@eth-p)
611+
612+## Bugfixes
613+
614+- Do not replace arguments to `less` when using `--pager`, see #509
615+- Binary files will now be indicated by a warning in interactive mode, see #530 #466 #550 (@maxfilov)
616+- Empty files are (once again) printed with a single header line, see #504 and #566 (@reidwagner
617+ and @sharkdp)
618+- `--terminal-width=0` is now disallowed, see #559 (@eth-p)
619+- Accidental printing of files named `cache`, see #557
620+
621+## Other
622+
623+- New integration tests, see #500 and #502 (@reidwagner and @sharkdp)
624+- New ["Integration with other tools"](https://github.com/sharkdp/bat#integration-with-other-tools) section in the README.
625+- Migrated to Rust 2018 (@expobrain)
626+
627+## New syntaxes
628+
629+- F# syntax has been updated, see #531 (@stroborobo)
630+- Fish shell, see #548 (@sanga)
631+
632+## Packaging
633+
634+- `bat` is now available on Chocolatey, see #541 (@rasmuskriest)
635+
636+# v0.10.0
637+
638+## Features
639+
640+- Added new `--highlight-line <N>` option, see #453, #346 and #175 (@tskinn and @sharkdp)
641+
642+## Changes
643+
644+- **Change the default configuration directory on macOS** to `~/.config/bat`, see #442 (@lavifb). If you are on macOS, you need to copy your configuration directory from the previous place (`~/Library/Preferences/bat`) to the new place (`~/.config/bat`).
645+- Completely disabled the generation of shell completion files, see #372
646+- Properly set arguments to `less` if `PAGER` environment variable contains something like `less -F` (which is missing the `-R` option), see #430 (@majecty)
647+- Report the name of missing files, see #444 (@ufuji1984)
648+- Don't start pager if file doesn't exist, see #387
649+- Rename `bat cache --init` to `bat cache --build`, see #498
650+- Move the `--config-dir` and `--cache-dir` options from `bat cache` to `bat` and hide them from the help text.
651+
652+## Bugfixes
653+
654+- Blank line at the end of output when using `--style=plain`, see #379
655+- EOF must be sent twice on stdin if no other input is sent, see #477 (@reidwagner)
656+
657+## New syntaxes
658+
659+- Twig (@ahmedelgabri)
660+- `.desktop` files (@jleclanche)
661+- AsciiDoc (@markusthoemmes)
662+- Assembly (x86_64 and ARM)
663+- Log files (@caos21)
664+- Protobuf and ProtobufText (@caos21)
665+- Terraform (@caos21)
666+- Jsonnet (@hfm)
667+- Varlink (@haraldh)
668+
669+## Other
670+
671+- Added Japanese version of README (@sh-tech and @object1037)
672+- Code improvements (@barskern)
673+
674+# v0.9.0
675+
676+## Features
677+
678+- A new `-A`/`--show-all` option has been added to show and highlight non-printable characters (in analogy to GNU `cat`s option):
679+
680+ ![](https://camo.githubusercontent.com/c3e769482ef3184f6be6adaa34bdc8d19c378254/68747470733a2f2f692e696d6775722e636f6d2f324b54486859542e706e67)
681+
682+ see #395 and #381 for more details.
683+
684+- Added `--pager` option (to configure the pager from the configuration file), see #362 (@majecty)
685+
686+- Added `BAT_CONFIG_PATH` environment variable to set a non-default path for `bat`s configuration file, see #375 (@deg4uss3r)
687+
688+- Allow for multiple occurrences of `--style` to allow for the configuration
689+ of styles from the config file, see #367 (@sindreij)
690+
691+- Allow for multiple `--line-range` arguments, see #23
692+
693+- The `--terminal-width` option can now also accept offsets, see #376
694+
695+## Changes
696+
697+- Use of italics is now *disabled by default* (see #389 for details). They can be
698+ re-enabled by adding `--italic-text=always` to your configuration file.
699+
700+- The default tab-width has been set to 4.
701+
702+- Added new "Sublime Snazzy" theme.
703+
704+- Shell completions are currently *not* shipped anymore, see #372 for details.
705+
706+## Bugfixes
707+
708+- Avoid endless recursion when `PAGER="bat"`, see #383 (@rodorgas)
709+
710+## Other
711+
712+- `bat` is now available on openSUSE, see #405 (@dmarcoux)
713+
714+- Added section about the new configuration file in the README (@deg4uss3r)
715+
716+- Chinese translation of README (@chinanf-boy)
717+
718+- Re-written tests for `--tabs` (@choznerol)
719+
720+- Speed up integration tests, see #394
721+
722+# v0.8.0
723+
724+## Features
725+
726+- Support for a configuration file with the following simple format:
727+
728+ ```bash
729+ --tabs=4
730+ --theme="Sublime Snazzy"
731+
732+ # A line-comment
733+ --map-syntax .ignore:.gitignore
734+ --map-syntax PKGBUILD:bash
735+ --map-syntax Podfile:ruby
736+
737+ # Flags and options can also be on a single line:
738+ --wrap=never --paging=never
739+ ```
740+
741+ The configuration file path can be accessed via `bat --config-file`. On Linux,
742+ it is stored in `~/.config/bat/config`.
743+
744+- Support for the `BAT_OPTS` environment variable with the same format as specified
745+ above (in a single line). This takes precedence over the configuration file.
746+
747+ See also #310.
748+
749+- Support for custom syntax mappings via the `-m`/`--max-syntax` option.
750+
751+ This allows users to (re)map certain file extensions or file names to an existing syntax:
752+
753+ ``` bash
754+ bat --map-syntax .config:json ...
755+ ```
756+
757+ The option can be use multiple times. Note that you can easily make these mappings permanent by using bats new configuration file.
758+
759+ See #169
760+
761+- Support pager command-line arguments in `PAGER` and `BAT_PAGER`, see #352 (@Foxboron)
762+
763+- Add support for wildcards in Windows CMD, see #309 (@zxey)
764+
765+- First-line syntax detection for all input types, see #205
766+
767+- Encoding support for UTF-16LE and UTF-16BE, see #285
768+
769+- New syntaxes: Robot framework (@sanga)
770+
771+## Changes
772+
773+- Binary files are now detected and not displayed when the output goes to an interactive terminal, see #205
774+
775+## Bugfixes
776+
777+- JavaDoc comments break syntax highlighting in .java files, see #81
778+
779+- Bat Panics on Haskell Source Code, see #314
780+
781+## Other
782+
783+- Better `-h` and `--help` texts.
784+
785+- Updated documentation on how to configure `bat`s pager
786+
787+- Updated documentation for light backgrounds, see #328 (@russtaylor)
788+
789+- Generate shell completions during build, see #115 (@davideGiovannini)
790+
791+- A lot of new tests have been written
792+
793+- `bat` is now available via [Termux](https://termux.com/), see #341 (@fornwall)
794+
795+- `bat` is now available via [nix](https://nixos.org/nix), see #344 (@mgttlinger)
796+
797+- `bat` is now available via [Docker](https://hub.docker.com/r/danlynn/bat/), see #331 (@danlynn)
798+
799+# v0.7.1
800+
801+## Features
802+
803+- Use the `ansi_colours` package by @mina86 for better true-color approximation on 8 bit color terminals, see #319 and #202.
804+
805+## Bugfixes
806+
807+- Bat Panics on Haskell Source Code, see #314
808+- Disable wrapping when `--style=plain`/`-p` is used, see #289
809+
810+## Other
811+
812+- Added Ansible install instructions (@aeimer)
813+- Added section about Cygwin to the README (@eth-p)
814+
815+# v0.7.0
816+
817+## Features
818+
819+- Tabs are now (optionally) expanded to spaces. This can be controlled with the new
820+ `--tabs` command-line option or the `BAT_TABS` environment variable. The
821+ new feature also closes two bugs #166 and #184. For more information, see #302 (@eth-p).
822+
823+- Added support for the `BAT_STYLE` environment variable, see #208 (@ms2300)
824+
825+- Added `OneHalf` theme for terminals with a light-gray background, see #256
826+
827+- Added new syntaxes for CSV, JSX in JavaScript and TypeScript, Cabal, Dart,
828+ F#, PureScript, Swift, Crystal, PowerShell (Many Thanks to @tobenna and @mimadrid)
829+
830+## Changes
831+
832+- Query `git diff` only when needed, see #303 (@ShikChen)
833+
834+- Disable wrapping when `--plain` is used, see #289 (@eth-p)
835+
836+## Bugfixes
837+
838+- Can read files named `cache`, see #275 (@BK1603)
839+
840+- A lot of bugfixes for Windows, see #252, #264
841+
842+- Detect `less` reliably and in a portable way, see #271 and #290 (@Aankhen)
843+
844+- last decoration line is not formatted properly with `--wrap never`, see #299 (@Rogach)
845+
846+- Do not show file header for directories, see #292
847+
848+## Other
849+
850+- Enabled a new `aarch64` build target, see #258 (@rachitchokshi)
851+
852+- Provide Debian packages for `armhf`, see #280 (@rachitchokshi)
853+
854+- Added README section about "`bat` on Windows" (@Aankhen)
855+
856+- Windows installation via scoop (@meltinglava)
857+
858+# v0.6.1
859+
860+## Bugfixes
861+
862+- Fixed panic when running `bat --list-languages | head`, see #232 (@mchlrhw)
863+- Respect `--color` settings for `--list-themes` and `--list-languages`, see #233
864+- Git modifications now work on Windows
865+
866+## Other
867+
868+- There will be auto-generated Windows releases, starting with this version (@anykao)
869+
870+# v0.6.0
871+
872+## Features
873+
874+- The `--list-themes` option now shows a preview for each highlighting theme (@ms2300)
875+- Added `-p`/`--plain` as an alias for `--style=plain`, see #212 (@ms2300)
876+- Major refactorings, enabling some progress on #150. In non-interactive mode, `bat` will now copy input bytes 1:1.
877+- New languages: Elm, Kotlin, Puppet, TypeScript, see #215 #216 #217 #218
878+- New syntax highlighting theme: zenburn (@colindean)
879+
880+## Changes
881+
882+- New themes in `$BAT_CONFIG_DIR/themes` are now loaded *in addition* to
883+ the default themes (they may also override), see #172
884+- The `Default.tmTheme` symlink is not necessary anymore.
885+
886+## Bugfixes
887+
888+* Using `bat cache --init` leads to duplicated syntaxes, see #206
889+
890+## Other
891+
892+* Extended and cleaned-up `--help` text.
893+* Added initial version of a man page, see #52
894+* New README sections: *Development* and *Troubleshooting*, see #220
895+
896+# v0.5.0
897+
898+## Features
899+
900+- Added `--line-range n:m` option to print a range of lines, see #159 (@tskinn)
901+- The syntax highlighting theme can now be controlled by the `BAT_THEME` environment variable, see [README](https://github.com/sharkdp/bat#highlighting-theme) and #177 (@mandx)
902+- The `PAGER` and `BAT_PAGER` environment variables can be used to control the pager that `bat` uses, see #158 and the [new README section](https://github.com/sharkdp/bat#using-a-different-pager)
903+- Added syntax highlighting for Nix, see #180
904+- Added syntax highlighting for AWK (Gert Hulselmans)
905+
906+## Changes
907+
908+- The customization of syntax sets and theme sets is now separated. Syntax definitions are now loaded *in addition* to the ones that are stored in the `bat` binary by default. Please refer to these new sections in the README: [Adding new syntaxes](https://github.com/sharkdp/bat#adding-new-syntaxes--language-definitions), [Adding new themes](https://github.com/sharkdp/bat#adding-new-themes), also see #172
909+- The color for the filename is now the default foreground color. The colors for the grid and the line numbers is now determined from the syntax highlighting theme, which now also works for light backgrounds, see #178.
910+
911+## Bugfixes
912+
913+- Escape Sequences get partially stripped, see #182 (@eth-p)
914+- Use separate Git repository for snapshot testing, see #165 and #161
915+- Markdown breaking on JavaScript, see #183
916+
917+## Other
918+
919+- Binaries for armv7 are now provided, see #196
920+- `bat` is now in the official [Arch package repositories](https://www.archlinux.org/packages/community/x86_64/bat/).
921+- Optimizations in the RGB => 8-bit conversion (@mina86)
922+
923+# v0.4.1
924+
925+(this is just a small bugfix release, see 0.4.0 for all features and changes)
926+
927+## Bugfixes
928+
929+- Fix problem with `cargo test` when `bat` is not checked out in a Git repository, see #161
930+
931+# v0.4.0
932+
933+## Features
934+
935+* Support for line-wrapping, see #54 and #102 (@eth-p)
936+* New and updated `--style` parameter, see #74 and README (@pitkley)
937+* Added `--theme` and `--list-themes` options, see #89 (@rleungx)
938+* Added syntax highlighting for: Julia (@iamed2), Dockerfiles, VimL, CMake, INI, Less
939+* Added a few popular Sublime Text highlighting themes, see #133
940+* Support for bold, italic and underline font styles, see #96
941+* Support for 32bit systems is now available, see #84
942+* Added `-u` and `-n` options, see #134
943+* ANSI color support on Windows 10
944+
945+## Changes
946+
947+* The customization folder for own syntaxes has been renamed from `syntax` to `syntaxes`, see README.
948+* Changed Markdown syntax to the default Sublime Text syntax, see #157
949+* Sorted language listing (@rleungx)
950+* Command line arguments like `--theme` or `--color` can now override themselves.
951+* Improved `--help` text.
952+
953+## Bugfixes
954+
955+- Fixed crash for (really) small terminal sizes, see #117 (@eth-p)
956+- Syntax detection for `.bashrc`, `CMakeLists.txt` etc., see #100
957+- Properly handle lines with invalid UTF-8, see #7 (@BrainMaestro)
958+- Better error handling, see #17 (@rleungx and @sharkdp)
959+- Proper handling of UTF-8 characters in `less`, see #98 (@ghuls)
960+- Build fix on nightly, see #148 (@tathanhdinh)
961+
962+## Other
963+
964+- [Comparison with alternative projects](https://github.com/sharkdp/bat/blob/master/doc/alternatives.md).
965+- New "bat" logo in the README, see #119 (@jraulhernandezi)
966+- Output test cases (@BrainMaestro)
967+- Lots of great refactoring work (@BrainMaestro)
968+
969+# v0.3.0
970+
971+## Features
972+
973+* Automatic paging by integrating with `less`, see #29 (@BrainMaestro)
974+* Added support for reading from standard input, see #2
975+* Added support for writing to non-interactive terminals (pipes, files, ..); new
976+ `--color=auto/always/never` option, see #26 (@BrainMaestro)
977+* Added `--list-languages` option to print all available syntaxes, see #69 (@connorkuehl)
978+* New option to specify the syntax via `-l`/`--language`, see #19 (@BrainMaestro)
979+* New option to control the output style (`--style`), see #5 (@nakulcg)
980+* Added syntax highlighting support for TOML files, see #37
981+
982+## Changes
983+
984+* The `init-cache` sub-command has been removed. The cache can now be controlled via
985+ `bat cache`. See `bat cache -h` for all available commands.
986+
987+## Bug fixes
988+
989+* Get git repository from file path instead of current directory, see #22 (@nakulcg)
990+* Process substitution can now be used with bat (`bat <(echo a) <(echo b)`), see #80
991+
992+## Thanks
993+
994+I'd like to say a big THANK YOU to all contributors and everyone that has given us
995+some form of feedback.
996+
997+Special thanks go to @BrainMaestro for his huge support with new features, bug reports
998+and code reviews!
999+
1000+# v0.2.3
1001+
1002+- Added a new statically linked version of bat (`..-musl-..`)
1003+
1004+# v0.2.2
1005+
1006+- Remove openssl dependency completely, see #30.
1007+
1008+# v0.2.1
1009+
1010+- Added Elixir syntax, see #25.
1011+- Use libcurl-openssl instead of libcurl-gnutls, see #30.
1012+
1013+# v0.2.0
1014+
1015+- Support for custom syntaxes, add 'Markdown extended' theme
1016+- Bugfix: Git modifications not shown from child folder
1017+
1018+# v0.1.0
1019+
1020+Initial release
CONTRIBUTING.mdnew file+70
@@ -0,0 +1,70 @@
1+# Contributing
2+
3+Thank you for considering to contribute to `bat`!
4+
5+
6+
7+## Add an entry to the changelog
8+
9+If your contribution changes the behavior of `bat` (as opposed to a typo-fix
10+in the documentation), please update the [`CHANGELOG.md`](CHANGELOG.md) file
11+and describe your changes. This makes the release process much easier and
12+therefore helps to get your changes into a new `bat` release faster.
13+
14+The top of the `CHANGELOG` contains a *"unreleased"* section with a few
15+subsections (Features, Bugfixes, …). Please add your entry to the subsection
16+that best describes your change.
17+
18+Entries follow this format:
19+```
20+- Short description of what has been changed, see #123 (@user)
21+```
22+Here, `#123` is the number of the original issue and/or your pull request.
23+Please replace `@user` by your GitHub username.
24+
25+
26+## Development
27+
28+Please check out the [Development](https://github.com/sharkdp/bat#development)
29+section in the README.
30+
31+
32+## Adding a new feature
33+
34+Please consider opening a
35+[feature request ticket](https://github.com/sharkdp/bat/issues/new?assignees=&labels=feature-request&template=feature_request.md)
36+first in order to give us a chance to discuss the feature first.
37+
38+
39+## Adding new syntaxes/languages or themes
40+
41+Before you make a pull request that adds a new syntax or theme, please read
42+the [Customization](https://github.com/sharkdp/bat#customization) section
43+in the README first.
44+
45+If you really think that a particular syntax or theme should be added for all
46+users, please read the corresponding
47+[documentation](https://github.com/sharkdp/bat/blob/master/doc/assets.md)
48+first.
49+
50+
51+## Regression tests
52+
53+You are strongly encouraged to add regression tests. Regression tests are great,
54+not least because they:
55+
56+* ensure that your contribution will never completely stop working,
57+
58+* makes code review easier, because it becomes very clear what the code is
59+ supposed to do.
60+
61+For functional changes, you most likely want to add a test to
62+[`tests/integration_tests.rs`](https://github.com/sharkdp/bat/blob/master/tests/integration_tests.rs).
63+Look at existing tests to know how to write a new test. In short, you will
64+invoke the `bat` binary with a certain set of arguments, and then assert on
65+stdout/stderr.
66+
67+To learn how to write regression tests for theme and syntax changes, read the
68+[Syntax
69+tests](https://github.com/sharkdp/bat/blob/master/doc/assets.md#syntax-tests)
70+section in `assets.md`.
Cargo.lock+648−1013
@@ -1,1705 +1,1340 @@
11# This file is automatically @generated by Cargo.
22# It is not intended for manual editing.
3+version = 3
4+
35[[package]]
4−name = "adler32"
5−version = "1.0.3"
6+name = "adler"
7+version = "1.0.2"
68source = "registry+https://github.com/rust-lang/crates.io-index"
9+checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
710
811[[package]]
912name = "aho-corasick"
10−version = "0.7.6"
13+version = "0.7.18"
1114source = "registry+https://github.com/rust-lang/crates.io-index"
15+checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
1216dependencies = [
13− "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
17+ "memchr",
1418]
1519
1620[[package]]
1721name = "ansi_colours"
18−version = "1.0.1"
22+version = "1.1.1"
1923source = "registry+https://github.com/rust-lang/crates.io-index"
24+checksum = "32678233b67f9056b0c144b39d46dc3218637e8d84ad6038ded339e08b19620d"
2025dependencies = [
21− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
22−]
23−
24−[[package]]
25−name = "ansi_term"
26−version = "0.11.0"
27−source = "registry+https://github.com/rust-lang/crates.io-index"
28−dependencies = [
29− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
26+ "rgb",
3027]
3128
3229[[package]]
3330name = "ansi_term"
3431version = "0.12.1"
3532source = "registry+https://github.com/rust-lang/crates.io-index"
33+checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
3634dependencies = [
37− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
38−]
39−
40−[[package]]
41−name = "anymap"
42−version = "0.12.1"
43−source = "registry+https://github.com/rust-lang/crates.io-index"
44−
45−[[package]]
46−name = "arrayref"
47−version = "0.3.5"
48−source = "registry+https://github.com/rust-lang/crates.io-index"
49−
50−[[package]]
51−name = "arrayvec"
52−version = "0.4.11"
53−source = "registry+https://github.com/rust-lang/crates.io-index"
54−dependencies = [
55− "nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)",
35+ "winapi",
5636]
5737
5838[[package]]
5939name = "assert_cmd"
60−version = "0.11.1"
40+version = "2.0.4"
6141source = "registry+https://github.com/rust-lang/crates.io-index"
42+checksum = "93ae1ddd39efd67689deb1979d80bad3bf7f2b09c6e6117c8d1f2443b5e2f83e"
6243dependencies = [
63− "escargot 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
64− "predicates 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
65− "predicates-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
66− "predicates-tree 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
44+ "bstr",
45+ "doc-comment",
46+ "predicates",
47+ "predicates-core",
48+ "predicates-tree",
49+ "wait-timeout",
6750]
6851
6952[[package]]
7053name = "atty"
7154version = "0.2.14"
7255source = "registry+https://github.com/rust-lang/crates.io-index"
56+checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
7357dependencies = [
74− "hermit-abi 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
75− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
76− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
58+ "hermit-abi",
59+ "libc",
60+ "winapi",
7761]
7862
7963[[package]]
8064name = "autocfg"
81−version = "0.1.6"
82−source = "registry+https://github.com/rust-lang/crates.io-index"
83−
84−[[package]]
85−name = "backtrace"
86−version = "0.3.35"
87−source = "registry+https://github.com/rust-lang/crates.io-index"
88−dependencies = [
89− "backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)",
90− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
91− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
92− "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)",
93−]
94−
95−[[package]]
96−name = "backtrace-sys"
97−version = "0.1.31"
65+version = "1.0.1"
9866source = "registry+https://github.com/rust-lang/crates.io-index"
99−dependencies = [
100− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
101− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
102−]
67+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
10368
10469[[package]]
10570name = "base64"
106−version = "0.10.1"
71+version = "0.13.0"
10772source = "registry+https://github.com/rust-lang/crates.io-index"
108−dependencies = [
109− "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
110−]
73+checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
11174
11275[[package]]
11376name = "bat"
114−version = "0.12.1"
115−dependencies = [
116− "ansi_colours 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
117− "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
118− "assert_cmd 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)",
119− "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
120− "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
121− "console 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
122− "content_inspector 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
123− "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
124− "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
125− "error-chain 0.12.2 (registry+https://github.com/rust-lang/crates.io-index)",
126− "escargot 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
127− "git2 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
128− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
129− "liquid 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
130− "shell-words 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
131− "syntect 3.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
132− "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
133− "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
134− "wild 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
77+version = "0.21.0"
78+dependencies = [
79+ "ansi_colours",
80+ "ansi_term",
81+ "assert_cmd",
82+ "atty",
83+ "bincode",
84+ "bugreport",
85+ "bytesize",
86+ "clap",
87+ "clircle",
88+ "console",
89+ "content_inspector",
90+ "dirs-next",
91+ "encoding",
92+ "flate2",
93+ "git2",
94+ "globset",
95+ "grep-cli",
96+ "nix",
97+ "once_cell",
98+ "path_abs",
99+ "predicates",
100+ "regex",
101+ "semver",
102+ "serde",
103+ "serde_yaml",
104+ "serial_test",
105+ "shell-words",
106+ "syntect",
107+ "tempfile",
108+ "thiserror",
109+ "unicode-width",
110+ "wait-timeout",
111+ "walkdir",
112+ "wild",
135113]
136114
137115[[package]]
138116name = "bincode"
139−version = "1.1.4"
117+version = "1.3.3"
140118source = "registry+https://github.com/rust-lang/crates.io-index"
119+checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
141120dependencies = [
142− "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
143− "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
144− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
121+ "serde",
145122]
146123
147124[[package]]
148−name = "bindgen"
149−version = "0.50.0"
125+name = "bit-set"
126+version = "0.5.2"
150127source = "registry+https://github.com/rust-lang/crates.io-index"
128+checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de"
151129dependencies = [
152− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
153− "cexpr 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
154− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
155− "clang-sys 0.28.1 (registry+https://github.com/rust-lang/crates.io-index)",
156− "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
157− "env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
158− "fxhash 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
159− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
160− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
161− "peeking_take_while 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
162− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
163− "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
164− "regex 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
165− "shlex 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
166− "which 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
130+ "bit-vec",
167131]
168132
169133[[package]]
170−name = "bitflags"
171−version = "1.1.0"
134+name = "bit-vec"
135+version = "0.6.3"
172136source = "registry+https://github.com/rust-lang/crates.io-index"
137+checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
173138
174139[[package]]
175−name = "blake2b_simd"
176−version = "0.5.7"
140+name = "bitflags"
141+version = "1.3.2"
177142source = "registry+https://github.com/rust-lang/crates.io-index"
178−dependencies = [
179− "arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
180− "arrayvec 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
181− "constant_time_eq 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
182−]
143+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
183144
184145[[package]]
185−name = "block-buffer"
186−version = "0.7.3"
146+name = "bstr"
147+version = "0.2.17"
187148source = "registry+https://github.com/rust-lang/crates.io-index"
149+checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223"
188150dependencies = [
189− "block-padding 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
190− "byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
191− "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
192− "generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)",
151+ "lazy_static",
152+ "memchr",
153+ "regex-automata",
193154]
194155
195156[[package]]
196−name = "block-padding"
197−version = "0.1.4"
157+name = "bugreport"
158+version = "0.5.0"
198159source = "registry+https://github.com/rust-lang/crates.io-index"
160+checksum = "535120b8182547808081a66f1f77a64533c780b23da26763e0ee34dfb94f98c9"
199161dependencies = [
200− "byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
162+ "git-version",
163+ "shell-escape",
164+ "sys-info",
201165]
202166
203167[[package]]
204−name = "byte-tools"
205−version = "0.3.1"
168+name = "bytemuck"
169+version = "1.7.3"
206170source = "registry+https://github.com/rust-lang/crates.io-index"
171+checksum = "439989e6b8c38d1b6570a384ef1e49c8848128f5a97f3914baef02920842712f"
207172
208173[[package]]
209−name = "byteorder"
210−version = "1.3.2"
174+name = "bytesize"
175+version = "1.1.0"
211176source = "registry+https://github.com/rust-lang/crates.io-index"
177+checksum = "6c58ec36aac5066d5ca17df51b3e70279f5670a72102f5752cb7e7c856adfc70"
212178
213179[[package]]
214180name = "cc"
215−version = "1.0.45"
216−source = "registry+https://github.com/rust-lang/crates.io-index"
217−dependencies = [
218− "jobserver 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)",
219− "num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
220−]
221−
222−[[package]]
223−name = "cexpr"
224−version = "0.3.5"
181+version = "1.0.72"
225182source = "registry+https://github.com/rust-lang/crates.io-index"
183+checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
226184dependencies = [
227− "nom 4.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
185+ "jobserver",
228186]
229187
230188[[package]]
231189name = "cfg-if"
232−version = "0.1.9"
233−source = "registry+https://github.com/rust-lang/crates.io-index"
234−
235−[[package]]
236−name = "chrono"
237−version = "0.4.9"
238−source = "registry+https://github.com/rust-lang/crates.io-index"
239−dependencies = [
240− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
241− "num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)",
242− "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
243− "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
244−]
245−
246−[[package]]
247−name = "clang-sys"
248−version = "0.28.1"
190+version = "1.0.0"
249191source = "registry+https://github.com/rust-lang/crates.io-index"
250−dependencies = [
251− "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
252− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
253− "libloading 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
254−]
192+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
255193
256194[[package]]
257195name = "clap"
258−version = "2.33.0"
259−source = "registry+https://github.com/rust-lang/crates.io-index"
260−dependencies = [
261− "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
262− "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
263− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
264− "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
265− "term_size 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
266− "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
267− "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
268− "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
269−]
270−
271−[[package]]
272−name = "clicolors-control"
273−version = "1.0.1"
196+version = "2.34.0"
274197source = "registry+https://github.com/rust-lang/crates.io-index"
198+checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
275199dependencies = [
276− "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
277− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
278− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
279− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
200+ "ansi_term",
201+ "atty",
202+ "bitflags",
203+ "strsim",
204+ "term_size",
205+ "textwrap",
206+ "unicode-width",
207+ "vec_map",
280208]
281209
282210[[package]]
283−name = "cloudabi"
284−version = "0.0.3"
211+name = "clircle"
212+version = "0.3.0"
285213source = "registry+https://github.com/rust-lang/crates.io-index"
214+checksum = "e68bbd985a63de680ab4d1ad77b6306611a8f961b282c8b5ab513e6de934e396"
286215dependencies = [
287− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
216+ "cfg-if",
217+ "libc",
218+ "serde",
219+ "winapi",
288220]
289221
290222[[package]]
291223name = "console"
292−version = "0.9.2"
224+version = "0.15.0"
293225source = "registry+https://github.com/rust-lang/crates.io-index"
226+checksum = "a28b32d32ca44b70c3e4acd7db1babf555fa026e385fb95f18028f88848b3c31"
294227dependencies = [
295− "clicolors-control 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
296− "encode_unicode 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
297− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
298− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
299− "regex 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
300− "termios 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
301− "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
302− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
228+ "encode_unicode",
229+ "libc",
230+ "once_cell",
231+ "regex",
232+ "terminal_size",
233+ "unicode-width",
234+ "winapi",
303235]
304236
305−[[package]]
306−name = "constant_time_eq"
307−version = "0.1.4"
308−source = "registry+https://github.com/rust-lang/crates.io-index"
309−
310237[[package]]
311238name = "content_inspector"
312239version = "0.2.4"
313240source = "registry+https://github.com/rust-lang/crates.io-index"
241+checksum = "b7bda66e858c683005a53a9a60c69a4aca7eeaa45d124526e389f7aec8e62f38"
314242dependencies = [
315− "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
243+ "memchr",
316244]
317245
318246[[package]]
319247name = "crc32fast"
320−version = "1.2.0"
321−source = "registry+https://github.com/rust-lang/crates.io-index"
322−dependencies = [
323− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
324−]
325−
326−[[package]]
327−name = "crossbeam-utils"
328−version = "0.6.6"
248+version = "1.3.0"
329249source = "registry+https://github.com/rust-lang/crates.io-index"
250+checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836"
330251dependencies = [
331− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
332− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
252+ "cfg-if",
333253]
334254
335255[[package]]
336−name = "deunicode"
337−version = "1.0.0"
256+name = "difflib"
257+version = "0.4.0"
338258source = "registry+https://github.com/rust-lang/crates.io-index"
259+checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8"
339260
340261[[package]]
341−name = "difference"
262+name = "dirs-next"
342263version = "2.0.0"
343264source = "registry+https://github.com/rust-lang/crates.io-index"
344−
345−[[package]]
346−name = "digest"
347−version = "0.8.1"
348−source = "registry+https://github.com/rust-lang/crates.io-index"
349−dependencies = [
350− "generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)",
351−]
352−
353−[[package]]
354−name = "dirs"
355−version = "2.0.2"
356−source = "registry+https://github.com/rust-lang/crates.io-index"
265+checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
357266dependencies = [
358− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
359− "dirs-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
267+ "cfg-if",
268+ "dirs-sys-next",
360269]
361270
362271[[package]]
363−name = "dirs-sys"
364−version = "0.3.4"
272+name = "dirs-sys-next"
273+version = "0.1.2"
365274source = "registry+https://github.com/rust-lang/crates.io-index"
275+checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
366276dependencies = [
367− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
368− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
369− "redox_users 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
370− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
277+ "libc",
278+ "redox_users",
279+ "winapi",
371280]
372281
373282[[package]]
374283name = "doc-comment"
375−version = "0.3.1"
284+version = "0.3.3"
376285source = "registry+https://github.com/rust-lang/crates.io-index"
286+checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
377287
378288[[package]]
379289name = "either"
380−version = "1.5.3"
290+version = "1.6.1"
381291source = "registry+https://github.com/rust-lang/crates.io-index"
292+checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
382293
383294[[package]]
384295name = "encode_unicode"
385296version = "0.3.6"
386297source = "registry+https://github.com/rust-lang/crates.io-index"
298+checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
387299
388300[[package]]
389301name = "encoding"
390302version = "0.2.33"
391303source = "registry+https://github.com/rust-lang/crates.io-index"
304+checksum = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec"
392305dependencies = [
393− "encoding-index-japanese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)",
394− "encoding-index-korean 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)",
395− "encoding-index-simpchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)",
396− "encoding-index-singlebyte 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)",
397− "encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)",
306+ "encoding-index-japanese",
307+ "encoding-index-korean",
308+ "encoding-index-simpchinese",
309+ "encoding-index-singlebyte",
310+ "encoding-index-tradchinese",
398311]
399312
400313[[package]]
401314name = "encoding-index-japanese"
402315version = "1.20141219.5"
403316source = "registry+https://github.com/rust-lang/crates.io-index"
317+checksum = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91"
404318dependencies = [
405− "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
319+ "encoding_index_tests",
406320]
407321
408322[[package]]
409323name = "encoding-index-korean"
410324version = "1.20141219.5"
411325source = "registry+https://github.com/rust-lang/crates.io-index"
326+checksum = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81"
412327dependencies = [
413− "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
328+ "encoding_index_tests",
414329]
415330
416331[[package]]
417332name = "encoding-index-simpchinese"
418333version = "1.20141219.5"
419334source = "registry+https://github.com/rust-lang/crates.io-index"
335+checksum = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7"
420336dependencies = [
421− "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
337+ "encoding_index_tests",
422338]
423339
424340[[package]]
425341name = "encoding-index-singlebyte"
426342version = "1.20141219.5"
427343source = "registry+https://github.com/rust-lang/crates.io-index"
344+checksum = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a"
428345dependencies = [
429− "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
346+ "encoding_index_tests",
430347]
431348
432349[[package]]
433350name = "encoding-index-tradchinese"
434351version = "1.20141219.5"
435352source = "registry+https://github.com/rust-lang/crates.io-index"
353+checksum = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18"
436354dependencies = [
437− "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
355+ "encoding_index_tests",
438356]
439357
440358[[package]]
441359name = "encoding_index_tests"
442360version = "0.1.4"
443361source = "registry+https://github.com/rust-lang/crates.io-index"
362+checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569"
444363
445364[[package]]
446−name = "env_logger"
447−version = "0.6.2"
365+name = "fancy-regex"
366+version = "0.7.1"
448367source = "registry+https://github.com/rust-lang/crates.io-index"
368+checksum = "9d6b8560a05112eb52f04b00e5d3790c0dd75d9d980eb8a122fb23b92a623ccf"
449369dependencies = [
450− "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
451− "humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
452− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
453− "regex 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
454− "termcolor 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
370+ "bit-set",
371+ "regex",
455372]
456373
457374[[package]]
458−name = "error-chain"
459−version = "0.12.2"
375+name = "fastrand"
376+version = "1.7.0"
460377source = "registry+https://github.com/rust-lang/crates.io-index"
378+checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"
461379dependencies = [
462− "version_check 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
380+ "instant",
463381]
464382
465383[[package]]
466−name = "escargot"
467−version = "0.4.0"
384+name = "flate2"
385+version = "1.0.23"
468386source = "registry+https://github.com/rust-lang/crates.io-index"
387+checksum = "b39522e96686d38f4bc984b9198e3a0613264abaebaff2c5c918bfa6b6da09af"
469388dependencies = [
470− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
471− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
472− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
473− "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
389+ "cfg-if",
390+ "crc32fast",
391+ "libc",
392+ "miniz_oxide",
474393]
475394
476395[[package]]
477−name = "escargot"
478−version = "0.5.0"
396+name = "float-cmp"
397+version = "0.9.0"
479398source = "registry+https://github.com/rust-lang/crates.io-index"
399+checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
480400dependencies = [
481− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
482− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
483− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
484− "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
401+ "num-traits",
485402]
486403
487404[[package]]
488−name = "failure"
489−version = "0.1.5"
405+name = "fnv"
406+version = "1.0.7"
490407source = "registry+https://github.com/rust-lang/crates.io-index"
491−dependencies = [
492− "backtrace 0.3.35 (registry+https://github.com/rust-lang/crates.io-index)",
493− "failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
494−]
408+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
495409
496410[[package]]
497−name = "failure_derive"
498−version = "0.1.5"
411+name = "form_urlencoded"
412+version = "1.0.1"
499413source = "registry+https://github.com/rust-lang/crates.io-index"
414+checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
500415dependencies = [
501− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
502− "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
503− "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)",
504− "synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)",
416+ "matches",
417+ "percent-encoding",
505418]
506419
507420[[package]]
508−name = "fake-simd"
509−version = "0.1.2"
510−source = "registry+https://github.com/rust-lang/crates.io-index"
511−
512−[[package]]
513−name = "flate2"
514−version = "1.0.11"
421+name = "getrandom"
422+version = "0.2.3"
515423source = "registry+https://github.com/rust-lang/crates.io-index"
424+checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
516425dependencies = [
517− "crc32fast 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
518− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
519− "miniz-sys 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
520− "miniz_oxide 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
426+ "cfg-if",
427+ "libc",
428+ "wasi",
521429]
522430
523431[[package]]
524−name = "fnv"
525−version = "1.0.6"
432+name = "git-version"
433+version = "0.3.5"
526434source = "registry+https://github.com/rust-lang/crates.io-index"
435+checksum = "f6b0decc02f4636b9ccad390dcbe77b722a77efedfa393caf8379a51d5c61899"
436+dependencies = [
437+ "git-version-macro",
438+ "proc-macro-hack",
439+]
527440
528441[[package]]
529−name = "fuchsia-cprng"
530−version = "0.1.1"
442+name = "git-version-macro"
443+version = "0.3.5"
531444source = "registry+https://github.com/rust-lang/crates.io-index"
445+checksum = "fe69f1cbdb6e28af2bac214e943b99ce8a0a06b447d15d3e61161b0423139f3f"
446+dependencies = [
447+ "proc-macro-hack",
448+ "proc-macro2",
449+ "quote",
450+ "syn",
451+]
532452
533453[[package]]
534−name = "fxhash"
535−version = "0.2.1"
454+name = "git2"
455+version = "0.14.2"
536456source = "registry+https://github.com/rust-lang/crates.io-index"
457+checksum = "3826a6e0e2215d7a41c2bfc7c9244123969273f3476b939a226aac0ab56e9e3c"
537458dependencies = [
538− "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
459+ "bitflags",
460+ "libc",
461+ "libgit2-sys",
462+ "log",
463+ "url",
539464]
540465
541466[[package]]
542−name = "generic-array"
543−version = "0.12.3"
467+name = "glob"
468+version = "0.3.0"
544469source = "registry+https://github.com/rust-lang/crates.io-index"
545−dependencies = [
546− "typenum 1.11.2 (registry+https://github.com/rust-lang/crates.io-index)",
547−]
470+checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
548471
549472[[package]]
550−name = "getrandom"
551−version = "0.1.12"
473+name = "globset"
474+version = "0.4.8"
552475source = "registry+https://github.com/rust-lang/crates.io-index"
476+checksum = "10463d9ff00a2a068db14231982f5132edebad0d7660cd956a1c30292dbcbfbd"
553477dependencies = [
554− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
555− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
556− "wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
478+ "aho-corasick",
479+ "bstr",
480+ "fnv",
481+ "log",
482+ "regex",
557483]
558484
559485[[package]]
560−name = "git2"
561−version = "0.12.0"
486+name = "grep-cli"
487+version = "0.1.6"
562488source = "registry+https://github.com/rust-lang/crates.io-index"
489+checksum = "2dd110c34bb4460d0de5062413b773e385cbf8a85a63fc535590110a09e79e8a"
563490dependencies = [
564− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
565− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
566− "libgit2-sys 0.11.0+0.99.0 (registry+https://github.com/rust-lang/crates.io-index)",
567− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
568− "url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
491+ "atty",
492+ "bstr",
493+ "globset",
494+ "lazy_static",
495+ "log",
496+ "regex",
497+ "same-file",
498+ "termcolor",
499+ "winapi-util",
569500]
570501
571502[[package]]
572−name = "glob"
573−version = "0.3.0"
503+name = "hashbrown"
504+version = "0.11.2"
574505source = "registry+https://github.com/rust-lang/crates.io-index"
506+checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
575507
576508[[package]]
577509name = "hermit-abi"
578−version = "0.1.6"
510+version = "0.1.19"
579511source = "registry+https://github.com/rust-lang/crates.io-index"
512+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
580513dependencies = [
581− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
514+ "libc",
582515]
583516
584517[[package]]
585−name = "humantime"
586−version = "1.2.0"
518+name = "idna"
519+version = "0.2.3"
587520source = "registry+https://github.com/rust-lang/crates.io-index"
521+checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
588522dependencies = [
589− "quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
523+ "matches",
524+ "unicode-bidi",
525+ "unicode-normalization",
590526]
591527
592528[[package]]
593−name = "idna"
594−version = "0.1.5"
529+name = "indexmap"
530+version = "1.7.0"
595531source = "registry+https://github.com/rust-lang/crates.io-index"
532+checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
596533dependencies = [
597− "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
598− "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
599− "unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
534+ "autocfg",
535+ "hashbrown",
600536]
601537
602538[[package]]
603−name = "idna"
604−version = "0.2.0"
539+name = "instant"
540+version = "0.1.12"
605541source = "registry+https://github.com/rust-lang/crates.io-index"
542+checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
606543dependencies = [
607− "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
608− "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
609− "unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
544+ "cfg-if",
610545]
611546
612547[[package]]
613548name = "itertools"
614−version = "0.8.0"
549+version = "0.10.3"
615550source = "registry+https://github.com/rust-lang/crates.io-index"
551+checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"
616552dependencies = [
617− "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
553+ "either",
618554]
619555
620556[[package]]
621557name = "itoa"
622−version = "0.4.4"
558+version = "0.4.8"
623559source = "registry+https://github.com/rust-lang/crates.io-index"
560+checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
624561
625562[[package]]
626−name = "jobserver"
627−version = "0.1.17"
563+name = "itoa"
564+version = "1.0.1"
628565source = "registry+https://github.com/rust-lang/crates.io-index"
629−dependencies = [
630− "getrandom 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
631− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
632− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
633−]
566+checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
634567
635568[[package]]
636−name = "kernel32-sys"
637−version = "0.2.2"
569+name = "jobserver"
570+version = "0.1.24"
638571source = "registry+https://github.com/rust-lang/crates.io-index"
572+checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa"
639573dependencies = [
640− "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
641− "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
574+ "libc",
642575]
643576
644577[[package]]
645578name = "lazy_static"
646579version = "1.4.0"
647580source = "registry+https://github.com/rust-lang/crates.io-index"
648−
649−[[package]]
650−name = "lazycell"
651−version = "1.2.1"
652−source = "registry+https://github.com/rust-lang/crates.io-index"
581+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
653582
654583[[package]]
655584name = "libc"
656−version = "0.2.62"
585+version = "0.2.125"
657586source = "registry+https://github.com/rust-lang/crates.io-index"
587+checksum = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b"
658588
659589[[package]]
660590name = "libgit2-sys"
661−version = "0.11.0+0.99.0"
662−source = "registry+https://github.com/rust-lang/crates.io-index"
663−dependencies = [
664− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
665− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
666− "libz-sys 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
667− "pkg-config 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)",
668−]
669−
670−[[package]]
671−name = "libloading"
672−version = "0.5.2"
591+version = "0.13.2+1.4.2"
673592source = "registry+https://github.com/rust-lang/crates.io-index"
593+checksum = "3a42de9a51a5c12e00fc0e4ca6bc2ea43582fc6418488e8f615e905d886f258b"
674594dependencies = [
675− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
676− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
595+ "cc",
596+ "libc",
597+ "libz-sys",
598+ "pkg-config",
677599]
678600
679601[[package]]
680602name = "libz-sys"
681−version = "1.0.25"
603+version = "1.1.3"
682604source = "registry+https://github.com/rust-lang/crates.io-index"
605+checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66"
683606dependencies = [
684− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
685− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
686− "pkg-config 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)",
687− "vcpkg 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
607+ "cc",
608+ "libc",
609+ "pkg-config",
610+ "vcpkg",
688611]
689612
690613[[package]]
691614name = "line-wrap"
692615version = "0.1.1"
693616source = "registry+https://github.com/rust-lang/crates.io-index"
617+checksum = "f30344350a2a51da54c1d53be93fade8a237e545dbcc4bdbe635413f2117cab9"
694618dependencies = [
695− "safemem 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
619+ "safemem",
696620]
697621
698622[[package]]
699623name = "linked-hash-map"
700−version = "0.5.2"
701−source = "registry+https://github.com/rust-lang/crates.io-index"
702−
703−[[package]]
704−name = "liquid"
705−version = "0.19.0"
706−source = "registry+https://github.com/rust-lang/crates.io-index"
707−dependencies = [
708− "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
709− "deunicode 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
710− "doc-comment 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
711− "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
712− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
713− "liquid-compiler 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
714− "liquid-derive 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
715− "liquid-error 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
716− "liquid-interpreter 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
717− "liquid-value 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
718− "regex 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
719− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
720− "unicode-segmentation 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
721− "url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
722−]
723−
724−[[package]]
725−name = "liquid-compiler"
726−version = "0.19.0"
727−source = "registry+https://github.com/rust-lang/crates.io-index"
728−dependencies = [
729− "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
730− "liquid-error 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
731− "liquid-interpreter 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
732− "liquid-value 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
733− "pest 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
734− "pest_derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
735−]
736−
737−[[package]]
738−name = "liquid-derive"
739−version = "0.19.0"
740−source = "registry+https://github.com/rust-lang/crates.io-index"
741−dependencies = [
742− "liquid-compiler 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
743− "liquid-error 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
744− "liquid-interpreter 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
745− "liquid-value 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
746− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
747− "proc-quote 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
748− "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)",
749−]
750−
751−[[package]]
752−name = "liquid-error"
753−version = "0.19.0"
754−source = "registry+https://github.com/rust-lang/crates.io-index"
755−
756−[[package]]
757−name = "liquid-interpreter"
758−version = "0.19.0"
624+version = "0.5.4"
759625source = "registry+https://github.com/rust-lang/crates.io-index"
760−dependencies = [
761− "anymap 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
762− "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
763− "liquid-error 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
764− "liquid-value 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
765−]
626+checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
766627
767628[[package]]
768−name = "liquid-value"
769−version = "0.19.0"
629+name = "lock_api"
630+version = "0.4.5"
770631source = "registry+https://github.com/rust-lang/crates.io-index"
632+checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109"
771633dependencies = [
772− "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
773− "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
774− "liquid-error 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)",
775− "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
776− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
634+ "scopeguard",
777635]
778636
779637[[package]]
780638name = "log"
781−version = "0.4.8"
639+version = "0.4.14"
782640source = "registry+https://github.com/rust-lang/crates.io-index"
641+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
783642dependencies = [
784− "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
643+ "cfg-if",
785644]
786645
787−[[package]]
788−name = "maplit"
789−version = "1.0.2"
790−source = "registry+https://github.com/rust-lang/crates.io-index"
791−
792646[[package]]
793647name = "matches"
794−version = "0.1.8"
648+version = "0.1.9"
795649source = "registry+https://github.com/rust-lang/crates.io-index"
650+checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
796651
797652[[package]]
798653name = "memchr"
799−version = "2.2.1"
800−source = "registry+https://github.com/rust-lang/crates.io-index"
801−
802−[[package]]
803−name = "miniz-sys"
804−version = "0.1.12"
654+version = "2.4.1"
805655source = "registry+https://github.com/rust-lang/crates.io-index"
806−dependencies = [
807− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
808− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
809−]
656+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
810657
811658[[package]]
812659name = "miniz_oxide"
813−version = "0.3.2"
660+version = "0.5.1"
814661source = "registry+https://github.com/rust-lang/crates.io-index"
662+checksum = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082"
815663dependencies = [
816− "adler32 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
664+ "adler",
817665]
818666
819667[[package]]
820−name = "nodrop"
821−version = "0.1.13"
822−source = "registry+https://github.com/rust-lang/crates.io-index"
823−
824−[[package]]
825−name = "nom"
826−version = "4.2.3"
668+name = "nix"
669+version = "0.24.1"
827670source = "registry+https://github.com/rust-lang/crates.io-index"
671+checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9"
828672dependencies = [
829− "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
830− "version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
673+ "bitflags",
674+ "cfg-if",
675+ "libc",
831676]
832677
833678[[package]]
834−name = "num-integer"
835−version = "0.1.41"
679+name = "normalize-line-endings"
680+version = "0.3.0"
836681source = "registry+https://github.com/rust-lang/crates.io-index"
837−dependencies = [
838− "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
839− "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
840−]
682+checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be"
841683
842684[[package]]
843685name = "num-traits"
844−version = "0.2.8"
686+version = "0.2.14"
845687source = "registry+https://github.com/rust-lang/crates.io-index"
688+checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
846689dependencies = [
847− "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
690+ "autocfg",
848691]
849692
850693[[package]]
851−name = "num_cpus"
852−version = "1.10.1"
694+name = "once_cell"
695+version = "1.10.0"
853696source = "registry+https://github.com/rust-lang/crates.io-index"
854−dependencies = [
855− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
856−]
697+checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"
857698
858699[[package]]
859700name = "onig"
860−version = "5.0.0"
701+version = "6.3.1"
861702source = "registry+https://github.com/rust-lang/crates.io-index"
703+checksum = "67ddfe2c93bb389eea6e6d713306880c7f6dcc99a75b659ce145d962c861b225"
862704dependencies = [
863− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
864− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
865− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
866− "onig_sys 69.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
705+ "bitflags",
706+ "lazy_static",
707+ "libc",
708+ "onig_sys",
867709]
868710
869711[[package]]
870712name = "onig_sys"
871−version = "69.2.0"
713+version = "69.7.1"
872714source = "registry+https://github.com/rust-lang/crates.io-index"
715+checksum = "5dd3eee045c84695b53b20255bb7317063df090b68e18bfac0abb6c39cf7f33e"
873716dependencies = [
874− "bindgen 0.50.0 (registry+https://github.com/rust-lang/crates.io-index)",
875− "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
876− "pkg-config 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)",
717+ "cc",
718+ "pkg-config",
877719]
878720
879721[[package]]
880−name = "opaque-debug"
881−version = "0.2.3"
882−source = "registry+https://github.com/rust-lang/crates.io-index"
883−
884−[[package]]
885−name = "peeking_take_while"
886−version = "0.1.2"
887−source = "registry+https://github.com/rust-lang/crates.io-index"
888−
889−[[package]]
890−name = "percent-encoding"
891−version = "1.0.1"
892−source = "registry+https://github.com/rust-lang/crates.io-index"
893−
894−[[package]]
895−name = "percent-encoding"
896−version = "2.1.0"
897−source = "registry+https://github.com/rust-lang/crates.io-index"
898−
899−[[package]]
900−name = "pest"
901−version = "2.1.2"
722+name = "parking_lot"
723+version = "0.11.2"
902724source = "registry+https://github.com/rust-lang/crates.io-index"
725+checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
903726dependencies = [
904− "ucd-trie 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
727+ "instant",
728+ "lock_api",
729+ "parking_lot_core",
905730]
906731
907732[[package]]
908−name = "pest_derive"
909−version = "2.1.0"
733+name = "parking_lot_core"
734+version = "0.8.5"
910735source = "registry+https://github.com/rust-lang/crates.io-index"
736+checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
911737dependencies = [
912− "pest 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
913− "pest_generator 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
738+ "cfg-if",
739+ "instant",
740+ "libc",
741+ "redox_syscall",
742+ "smallvec",
743+ "winapi",
914744]
915745
916746[[package]]
917−name = "pest_generator"
918−version = "2.1.1"
747+name = "path_abs"
748+version = "0.5.1"
919749source = "registry+https://github.com/rust-lang/crates.io-index"
750+checksum = "05ef02f6342ac01d8a93b65f96db53fe68a92a15f41144f97fb00a9e669633c3"
920751dependencies = [
921− "pest 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
922− "pest_meta 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
923− "proc-macro2 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
924− "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
925− "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
752+ "std_prelude",
926753]
927754
928755[[package]]
929−name = "pest_meta"
930−version = "2.1.2"
756+name = "percent-encoding"
757+version = "2.1.0"
931758source = "registry+https://github.com/rust-lang/crates.io-index"
932−dependencies = [
933− "maplit 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
934− "pest 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
935− "sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
936−]
759+checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
937760
938761[[package]]
939762name = "pkg-config"
940−version = "0.3.15"
763+version = "0.3.24"
941764source = "registry+https://github.com/rust-lang/crates.io-index"
765+checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe"
942766
943767[[package]]
944768name = "plist"
945−version = "0.4.2"
769+version = "1.3.1"
946770source = "registry+https://github.com/rust-lang/crates.io-index"
771+checksum = "bd39bc6cdc9355ad1dc5eeedefee696bb35c34caf21768741e81826c0bbd7225"
947772dependencies = [
948− "base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
949− "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
950− "humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
951− "line-wrap 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
952− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
953− "xml-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
773+ "base64",
774+ "indexmap",
775+ "line-wrap",
776+ "serde",
777+ "time",
778+ "xml-rs",
954779]
955780
956781[[package]]
957782name = "predicates"
958−version = "1.0.1"
783+version = "2.1.1"
959784source = "registry+https://github.com/rust-lang/crates.io-index"
785+checksum = "a5aab5be6e4732b473071984b3164dbbfb7a3674d30ea5ff44410b6bcd960c3c"
960786dependencies = [
961− "difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
962− "predicates-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
787+ "difflib",
788+ "float-cmp",
789+ "itertools",
790+ "normalize-line-endings",
791+ "predicates-core",
792+ "regex",
963793]
964794
965795[[package]]
966796name = "predicates-core"
967−version = "1.0.0"
797+version = "1.0.2"
968798source = "registry+https://github.com/rust-lang/crates.io-index"
799+checksum = "57e35a3326b75e49aa85f5dc6ec15b41108cf5aee58eabb1f274dd18b73c2451"
969800
970801[[package]]
971802name = "predicates-tree"
972−version = "1.0.0"
973−source = "registry+https://github.com/rust-lang/crates.io-index"
974−dependencies = [
975− "predicates-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
976− "treeline 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
977−]
978−
979−[[package]]
980−name = "proc-macro-hack"
981−version = "0.5.9"
803+version = "1.0.4"
982804source = "registry+https://github.com/rust-lang/crates.io-index"
805+checksum = "338c7be2905b732ae3984a2f40032b5e94fd8f52505b186c7d4d68d193445df7"
983806dependencies = [
984− "proc-macro2 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
985− "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
986− "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
807+ "predicates-core",
808+ "termtree",
987809]
988810
989811[[package]]
990−name = "proc-macro2"
991−version = "0.4.30"
812+name = "proc-macro-error"
813+version = "1.0.4"
992814source = "registry+https://github.com/rust-lang/crates.io-index"
815+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
993816dependencies = [
994− "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
817+ "proc-macro-error-attr",
818+ "proc-macro2",
819+ "quote",
820+ "syn",
821+ "version_check",
995822]
996823
997824[[package]]
998−name = "proc-macro2"
999−version = "1.0.2"
825+name = "proc-macro-error-attr"
826+version = "1.0.4"
1000827source = "registry+https://github.com/rust-lang/crates.io-index"
828+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
1001829dependencies = [
1002− "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
830+ "proc-macro2",
831+ "quote",
832+ "version_check",
1003833]
1004834
1005835[[package]]
1006−name = "proc-quote"
1007−version = "0.2.2"
836+name = "proc-macro-hack"
837+version = "0.5.19"
1008838source = "registry+https://github.com/rust-lang/crates.io-index"
1009−dependencies = [
1010− "proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)",
1011− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
1012− "proc-quote-impl 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
1013− "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
1014− "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)",
1015−]
839+checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
1016840
1017841[[package]]
1018−name = "proc-quote-impl"
1019−version = "0.2.2"
842+name = "proc-macro2"
843+version = "1.0.36"
1020844source = "registry+https://github.com/rust-lang/crates.io-index"
845+checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
1021846dependencies = [
1022− "proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)",
1023− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
1024− "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
847+ "unicode-xid",
1025848]
1026849
1027−[[package]]
1028−name = "quick-error"
1029−version = "1.2.2"
1030−source = "registry+https://github.com/rust-lang/crates.io-index"
1031−
1032850[[package]]
1033851name = "quote"
1034−version = "0.6.13"
852+version = "1.0.14"
1035853source = "registry+https://github.com/rust-lang/crates.io-index"
854+checksum = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d"
1036855dependencies = [
1037− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
856+ "proc-macro2",
1038857]
1039858
1040859[[package]]
1041−name = "quote"
1042−version = "1.0.2"
860+name = "redox_syscall"
861+version = "0.2.10"
1043862source = "registry+https://github.com/rust-lang/crates.io-index"
863+checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"
1044864dependencies = [
1045− "proc-macro2 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
865+ "bitflags",
1046866]
1047867
1048868[[package]]
1049−name = "rand"
1050−version = "0.4.6"
869+name = "redox_users"
870+version = "0.4.0"
1051871source = "registry+https://github.com/rust-lang/crates.io-index"
872+checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64"
1052873dependencies = [
1053− "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
1054− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
1055− "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
1056− "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
1057− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
874+ "getrandom",
875+ "redox_syscall",
1058876]
1059877
1060878[[package]]
1061−name = "rand_core"
1062−version = "0.3.1"
879+name = "regex"
880+version = "1.5.5"
1063881source = "registry+https://github.com/rust-lang/crates.io-index"
882+checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
1064883dependencies = [
1065− "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
884+ "aho-corasick",
885+ "memchr",
886+ "regex-syntax",
1066887]
1067888
1068889[[package]]
1069−name = "rand_core"
1070−version = "0.4.2"
890+name = "regex-automata"
891+version = "0.1.10"
1071892source = "registry+https://github.com/rust-lang/crates.io-index"
893+checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
1072894
1073895[[package]]
1074−name = "rand_os"
1075−version = "0.1.3"
896+name = "regex-syntax"
897+version = "0.6.25"
1076898source = "registry+https://github.com/rust-lang/crates.io-index"
1077−dependencies = [
1078− "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
1079− "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
1080− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
1081− "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
1082− "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
1083− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1084−]
899+checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
1085900
1086901[[package]]
1087−name = "rdrand"
1088−version = "0.4.0"
902+name = "remove_dir_all"
903+version = "0.5.3"
1089904source = "registry+https://github.com/rust-lang/crates.io-index"
905+checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
1090906dependencies = [
1091− "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
907+ "winapi",
1092908]
1093909
1094910[[package]]
1095−name = "redox_syscall"
1096−version = "0.1.56"
1097−source = "registry+https://github.com/rust-lang/crates.io-index"
1098−
1099−[[package]]
1100−name = "redox_users"
1101−version = "0.3.1"
911+name = "rgb"
912+version = "0.8.31"
1102913source = "registry+https://github.com/rust-lang/crates.io-index"
914+checksum = "9a374af9a0e5fdcdd98c1c7b64f05004f9ea2555b6c75f211daa81268a3c50f1"
1103915dependencies = [
1104− "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
1105− "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
1106− "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)",
1107− "rust-argon2 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
916+ "bytemuck",
1108917]
1109918
1110919[[package]]
1111−name = "regex"
1112−version = "1.3.1"
920+name = "rustversion"
921+version = "1.0.6"
1113922source = "registry+https://github.com/rust-lang/crates.io-index"
1114−dependencies = [
1115− "aho-corasick 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)",
1116− "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
1117− "regex-syntax 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
1118− "thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
1119−]
923+checksum = "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f"
1120924
1121925[[package]]
1122−name = "regex-syntax"
1123−version = "0.6.12"
926+name = "ryu"
927+version = "1.0.9"
1124928source = "registry+https://github.com/rust-lang/crates.io-index"
929+checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"
1125930
1126931[[package]]
1127−name = "remove_dir_all"
1128−version = "0.5.2"
932+name = "safemem"
933+version = "0.3.3"
1129934source = "registry+https://github.com/rust-lang/crates.io-index"
1130−dependencies = [
1131− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1132−]
935+checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
1133936
1134937[[package]]
1135−name = "rust-argon2"
1136−version = "0.5.1"
938+name = "same-file"
939+version = "1.0.6"
1137940source = "registry+https://github.com/rust-lang/crates.io-index"
941+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
1138942dependencies = [
1139− "base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
1140− "blake2b_simd 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)",
1141− "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)",
943+ "winapi-util",
1142944]
1143945
1144946[[package]]
1145−name = "rustc-demangle"
1146−version = "0.1.16"
947+name = "scopeguard"
948+version = "1.1.0"
1147949source = "registry+https://github.com/rust-lang/crates.io-index"
950+checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
1148951
1149952[[package]]
1150−name = "ryu"
1151−version = "1.0.0"
953+name = "semver"
954+version = "1.0.7"
1152955source = "registry+https://github.com/rust-lang/crates.io-index"
956+checksum = "d65bd28f48be7196d222d95b9243287f48d27aca604e08497513019ff0502cc4"
1153957
1154958[[package]]
1155−name = "safemem"
1156−version = "0.3.2"
959+name = "serde"
960+version = "1.0.136"
1157961source = "registry+https://github.com/rust-lang/crates.io-index"
962+checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
963+dependencies = [
964+ "serde_derive",
965+]
1158966
1159967[[package]]
1160−name = "same-file"
1161−version = "1.0.5"
968+name = "serde_derive"
969+version = "1.0.136"
1162970source = "registry+https://github.com/rust-lang/crates.io-index"
971+checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9"
1163972dependencies = [
1164− "winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
973+ "proc-macro2",
974+ "quote",
975+ "syn",
1165976]
1166977
1167978[[package]]
1168−name = "serde"
1169−version = "1.0.99"
979+name = "serde_json"
980+version = "1.0.74"
1170981source = "registry+https://github.com/rust-lang/crates.io-index"
982+checksum = "ee2bb9cd061c5865d345bb02ca49fcef1391741b672b54a0bf7b679badec3142"
1171983dependencies = [
1172− "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
984+ "itoa 1.0.1",
985+ "ryu",
986+ "serde",
1173987]
1174988
1175989[[package]]
1176−name = "serde_derive"
1177−version = "1.0.99"
990+name = "serde_yaml"
991+version = "0.8.23"
1178992source = "registry+https://github.com/rust-lang/crates.io-index"
993+checksum = "a4a521f2940385c165a24ee286aa8599633d162077a54bdcae2a6fd5a7bfa7a0"
1179994dependencies = [
1180− "proc-macro2 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
1181− "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
1182− "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
995+ "indexmap",
996+ "ryu",
997+ "serde",
998+ "yaml-rust",
1183999]
11841000
11851001[[package]]
1186−name = "serde_json"
1187−version = "1.0.40"
1002+name = "serial_test"
1003+version = "0.6.0"
11881004source = "registry+https://github.com/rust-lang/crates.io-index"
1005+checksum = "e5bcc41d18f7a1d50525d080fd3e953be87c4f9f1a974f3c21798ca00d54ec15"
11891006dependencies = [
1190− "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
1191− "ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
1192− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
1007+ "lazy_static",
1008+ "parking_lot",
1009+ "serial_test_derive",
11931010]
11941011
11951012[[package]]
1196−name = "sha-1"
1197−version = "0.8.1"
1013+name = "serial_test_derive"
1014+version = "0.6.0"
11981015source = "registry+https://github.com/rust-lang/crates.io-index"
1016+checksum = "2881bccd7d60fb32dfa3d7b3136385312f8ad75e2674aab2852867a09790cae8"
11991017dependencies = [
1200− "block-buffer 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
1201− "digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
1202− "fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
1203− "opaque-debug 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
1018+ "proc-macro-error",
1019+ "proc-macro2",
1020+ "quote",
1021+ "rustversion",
1022+ "syn",
12041023]
12051024
12061025[[package]]
1207−name = "shell-words"
1208−version = "0.1.0"
1026+name = "shell-escape"
1027+version = "0.1.5"
12091028source = "registry+https://github.com/rust-lang/crates.io-index"
1029+checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f"
12101030
12111031[[package]]
1212−name = "shlex"
1213−version = "0.1.1"
1032+name = "shell-words"
1033+version = "1.1.0"
12141034source = "registry+https://github.com/rust-lang/crates.io-index"
1035+checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
12151036
12161037[[package]]
12171038name = "smallvec"
1218−version = "0.6.10"
1039+version = "1.7.0"
1040+source = "registry+https://github.com/rust-lang/crates.io-index"
1041+checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309"
1042+
1043+[[package]]
1044+name = "std_prelude"
1045+version = "0.2.12"
12191046source = "registry+https://github.com/rust-lang/crates.io-index"
1047+checksum = "8207e78455ffdf55661170876f88daf85356e4edd54e0a3dbc79586ca1e50cbe"
12201048
12211049[[package]]
12221050name = "strsim"
12231051version = "0.8.0"
12241052source = "registry+https://github.com/rust-lang/crates.io-index"
1053+checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
12251054
12261055[[package]]
12271056name = "syn"
1228−version = "0.15.44"
1057+version = "1.0.85"
12291058source = "registry+https://github.com/rust-lang/crates.io-index"
1059+checksum = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7"
12301060dependencies = [
1231− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
1232− "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
1233− "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
1061+ "proc-macro2",
1062+ "quote",
1063+ "unicode-xid",
12341064]
12351065
12361066[[package]]
1237−name = "syn"
1238−version = "1.0.5"
1067+name = "syntect"
1068+version = "5.0.0"
12391069source = "registry+https://github.com/rust-lang/crates.io-index"
1070+checksum = "c6c454c27d9d7d9a84c7803aaa3c50cd088d2906fe3c6e42da3209aa623576a8"
12401071dependencies = [
1241− "proc-macro2 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
1242− "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
1243− "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
1072+ "bincode",
1073+ "bitflags",
1074+ "fancy-regex",
1075+ "flate2",
1076+ "fnv",
1077+ "lazy_static",
1078+ "once_cell",
1079+ "onig",
1080+ "plist",
1081+ "regex-syntax",
1082+ "serde",
1083+ "serde_derive",
1084+ "serde_json",
1085+ "thiserror",
1086+ "walkdir",
1087+ "yaml-rust",
12441088]
12451089
12461090[[package]]
1247−name = "synstructure"
1248−version = "0.10.2"
1091+name = "sys-info"
1092+version = "0.9.1"
12491093source = "registry+https://github.com/rust-lang/crates.io-index"
1094+checksum = "0b3a0d0aba8bf96a0e1ddfdc352fc53b3df7f39318c71854910c3c4b024ae52c"
12501095dependencies = [
1251− "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
1252− "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
1253− "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)",
1254− "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
1096+ "cc",
1097+ "libc",
12551098]
12561099
12571100[[package]]
1258−name = "syntect"
1101+name = "tempfile"
12591102version = "3.3.0"
12601103source = "registry+https://github.com/rust-lang/crates.io-index"
1104+checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
12611105dependencies = [
1262− "bincode 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
1263− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
1264− "flate2 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)",
1265− "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
1266− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
1267− "lazycell 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
1268− "onig 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
1269− "plist 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
1270− "regex-syntax 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
1271− "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
1272− "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
1273− "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
1274− "walkdir 2.2.9 (registry+https://github.com/rust-lang/crates.io-index)",
1275− "yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
1106+ "cfg-if",
1107+ "fastrand",
1108+ "libc",
1109+ "redox_syscall",
1110+ "remove_dir_all",
1111+ "winapi",
12761112]
12771113
12781114[[package]]
1279−name = "tempdir"
1280−version = "0.3.7"
1115+name = "term_size"
1116+version = "0.3.2"
12811117source = "registry+https://github.com/rust-lang/crates.io-index"
1118+checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9"
12821119dependencies = [
1283− "rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
1284− "remove_dir_all 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
1120+ "libc",
1121+ "winapi",
12851122]
12861123
12871124[[package]]
1288−name = "term_size"
1289−version = "0.3.1"
1125+name = "termcolor"
1126+version = "1.1.2"
12901127source = "registry+https://github.com/rust-lang/crates.io-index"
1128+checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
12911129dependencies = [
1292− "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
1293− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
1294− "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
1130+ "winapi-util",
12951131]
12961132
12971133[[package]]
1298−name = "termcolor"
1299−version = "1.0.5"
1134+name = "terminal_size"
1135+version = "0.1.17"
13001136source = "registry+https://github.com/rust-lang/crates.io-index"
1137+checksum = "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df"
13011138dependencies = [
1302− "wincolor 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
1139+ "libc",
1140+ "winapi",
13031141]
13041142
13051143[[package]]
1306−name = "termios"
1307−version = "0.3.1"
1144+name = "termtree"
1145+version = "0.2.3"
13081146source = "registry+https://github.com/rust-lang/crates.io-index"
1309−dependencies = [
1310− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
1311−]
1147+checksum = "13a4ec180a2de59b57434704ccfad967f789b12737738798fa08798cd5824c16"
13121148
13131149[[package]]
13141150name = "textwrap"
13151151version = "0.11.0"
13161152source = "registry+https://github.com/rust-lang/crates.io-index"
1153+checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
13171154dependencies = [
1318− "term_size 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
1319− "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
1155+ "term_size",
1156+ "unicode-width",
13201157]
13211158
13221159[[package]]
1323−name = "thread_local"
1324−version = "0.3.6"
1160+name = "thiserror"
1161+version = "1.0.31"
13251162source = "registry+https://github.com/rust-lang/crates.io-index"
1163+checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a"
13261164dependencies = [
1327− "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
1165+ "thiserror-impl",
13281166]
13291167
13301168[[package]]
1331−name = "time"
1332−version = "0.1.42"
1169+name = "thiserror-impl"
1170+version = "1.0.31"
13331171source = "registry+https://github.com/rust-lang/crates.io-index"
1172+checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a"
13341173dependencies = [
1335− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
1336− "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)",
1337− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1174+ "proc-macro2",
1175+ "quote",
1176+ "syn",
13381177]
13391178
13401179[[package]]
1341−name = "treeline"
1342−version = "0.1.0"
1180+name = "time"
1181+version = "0.3.5"
13431182source = "registry+https://github.com/rust-lang/crates.io-index"
1183+checksum = "41effe7cfa8af36f439fac33861b66b049edc6f9a32331e2312660529c1c24ad"
1184+dependencies = [
1185+ "itoa 0.4.8",
1186+ "libc",
1187+]
13441188
13451189[[package]]
1346−name = "typenum"
1347−version = "1.11.2"
1190+name = "tinyvec"
1191+version = "1.5.1"
13481192source = "registry+https://github.com/rust-lang/crates.io-index"
1193+checksum = "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2"
1194+dependencies = [
1195+ "tinyvec_macros",
1196+]
13491197
13501198[[package]]
1351−name = "ucd-trie"
1352−version = "0.1.2"
1199+name = "tinyvec_macros"
1200+version = "0.1.0"
13531201source = "registry+https://github.com/rust-lang/crates.io-index"
1202+checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
13541203
13551204[[package]]
13561205name = "unicode-bidi"
1357−version = "0.3.4"
1206+version = "0.3.7"
13581207source = "registry+https://github.com/rust-lang/crates.io-index"
1359−dependencies = [
1360− "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
1361−]
1208+checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f"
13621209
13631210[[package]]
13641211name = "unicode-normalization"
1365−version = "0.1.8"
1212+version = "0.1.19"
13661213source = "registry+https://github.com/rust-lang/crates.io-index"
1214+checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9"
13671215dependencies = [
1368− "smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)",
1216+ "tinyvec",
13691217]
13701218
1371−[[package]]
1372−name = "unicode-segmentation"
1373−version = "1.3.0"
1374−source = "registry+https://github.com/rust-lang/crates.io-index"
1375−
13761219[[package]]
13771220name = "unicode-width"
1378−version = "0.1.7"
1379−source = "registry+https://github.com/rust-lang/crates.io-index"
1380−
1381−[[package]]
1382−name = "unicode-xid"
1383−version = "0.1.0"
1221+version = "0.1.9"
13841222source = "registry+https://github.com/rust-lang/crates.io-index"
1223+checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
13851224
13861225[[package]]
13871226name = "unicode-xid"
1388−version = "0.2.0"
1389−source = "registry+https://github.com/rust-lang/crates.io-index"
1390−
1391−[[package]]
1392−name = "url"
1393−version = "1.7.2"
1227+version = "0.2.2"
13941228source = "registry+https://github.com/rust-lang/crates.io-index"
1395−dependencies = [
1396− "idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
1397− "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
1398− "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
1399−]
1229+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
14001230
14011231[[package]]
14021232name = "url"
1403−version = "2.1.0"
1233+version = "2.2.2"
14041234source = "registry+https://github.com/rust-lang/crates.io-index"
1235+checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
14051236dependencies = [
1406− "idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
1407− "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
1408− "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
1237+ "form_urlencoded",
1238+ "idna",
1239+ "matches",
1240+ "percent-encoding",
14091241]
14101242
14111243[[package]]
14121244name = "vcpkg"
1413−version = "0.2.7"
1245+version = "0.2.15"
14141246source = "registry+https://github.com/rust-lang/crates.io-index"
1247+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
14151248
14161249[[package]]
14171250name = "vec_map"
1418−version = "0.8.1"
1251+version = "0.8.2"
14191252source = "registry+https://github.com/rust-lang/crates.io-index"
1253+checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
14201254
14211255[[package]]
14221256name = "version_check"
1423−version = "0.1.5"
1257+version = "0.9.4"
14241258source = "registry+https://github.com/rust-lang/crates.io-index"
1259+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
14251260
14261261[[package]]
1427−name = "version_check"
1428−version = "0.9.1"
1262+name = "wait-timeout"
1263+version = "0.2.0"
14291264source = "registry+https://github.com/rust-lang/crates.io-index"
1265+checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6"
1266+dependencies = [
1267+ "libc",
1268+]
14301269
14311270[[package]]
14321271name = "walkdir"
1433−version = "2.2.9"
1272+version = "2.3.2"
14341273source = "registry+https://github.com/rust-lang/crates.io-index"
1274+checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"
14351275dependencies = [
1436− "same-file 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
1437− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1438− "winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
1276+ "same-file",
1277+ "winapi",
1278+ "winapi-util",
14391279]
14401280
14411281[[package]]
14421282name = "wasi"
1443−version = "0.7.0"
1444−source = "registry+https://github.com/rust-lang/crates.io-index"
1445−
1446−[[package]]
1447−name = "which"
1448−version = "2.0.1"
1283+version = "0.10.2+wasi-snapshot-preview1"
14491284source = "registry+https://github.com/rust-lang/crates.io-index"
1450−dependencies = [
1451− "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
1452− "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
1453−]
1285+checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
14541286
14551287[[package]]
14561288name = "wild"
1457−version = "2.0.2"
1289+version = "2.0.4"
14581290source = "registry+https://github.com/rust-lang/crates.io-index"
1291+checksum = "035793abb854745033f01a07647a79831eba29ec0be377205f2a25b0aa830020"
14591292dependencies = [
1460− "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
1293+ "glob",
14611294]
14621295
14631296[[package]]
14641297name = "winapi"
1465−version = "0.2.8"
1466−source = "registry+https://github.com/rust-lang/crates.io-index"
1467−
1468−[[package]]
1469−name = "winapi"
1470−version = "0.3.8"
1298+version = "0.3.9"
14711299source = "registry+https://github.com/rust-lang/crates.io-index"
1300+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
14721301dependencies = [
1473− "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
1474− "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
1302+ "winapi-i686-pc-windows-gnu",
1303+ "winapi-x86_64-pc-windows-gnu",
14751304]
14761305
1477−[[package]]
1478−name = "winapi-build"
1479−version = "0.1.1"
1480−source = "registry+https://github.com/rust-lang/crates.io-index"
1481−
14821306[[package]]
14831307name = "winapi-i686-pc-windows-gnu"
14841308version = "0.4.0"
14851309source = "registry+https://github.com/rust-lang/crates.io-index"
1310+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
14861311
14871312[[package]]
14881313name = "winapi-util"
1489−version = "0.1.2"
1314+version = "0.1.5"
14901315source = "registry+https://github.com/rust-lang/crates.io-index"
1316+checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
14911317dependencies = [
1492− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1318+ "winapi",
14931319]
14941320
14951321[[package]]
14961322name = "winapi-x86_64-pc-windows-gnu"
14971323version = "0.4.0"
14981324source = "registry+https://github.com/rust-lang/crates.io-index"
1499−
1500−[[package]]
1501−name = "wincolor"
1502−version = "1.0.2"
1503−source = "registry+https://github.com/rust-lang/crates.io-index"
1504−dependencies = [
1505− "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1506− "winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
1507−]
1325+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
15081326
15091327[[package]]
15101328name = "xml-rs"
1511−version = "0.8.0"
1329+version = "0.8.4"
15121330source = "registry+https://github.com/rust-lang/crates.io-index"
1331+checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3"
15131332
15141333[[package]]
15151334name = "yaml-rust"
1516−version = "0.4.3"
1517−source = "registry+https://github.com/rust-lang/crates.io-index"
1518−dependencies = [
1519− "linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
1520−]
1521−
1522−[metadata]
1523−"checksum adler32 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7e522997b529f05601e05166c07ed17789691f562762c7f3b987263d2dedee5c"
1524−"checksum aho-corasick 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)" = "58fb5e95d83b38284460a5fda7d6470aa0b8844d283a0b614b8535e880800d2d"
1525−"checksum ansi_colours 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1d0f302a81afc6a7f4350c04f0ba7cfab529cc009bca3324b3fb5764e6add8b6"
1526−"checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
1527−"checksum ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
1528−"checksum anymap 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "33954243bd79057c2de7338850b85983a44588021f8a5fee574a8888c6de4344"
1529−"checksum arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "0d382e583f07208808f6b1249e60848879ba3543f57c32277bf52d69c2f0f0ee"
1530−"checksum arrayvec 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)" = "b8d73f9beda665eaa98ab9e4f7442bd4e7de6652587de55b2525e52e29c1b0ba"
1531−"checksum assert_cmd 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2dc477793bd82ec39799b6f6b3df64938532fdf2ab0d49ef817eac65856a5a1e"
1532−"checksum atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
1533−"checksum autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "b671c8fb71b457dd4ae18c4ba1e59aa81793daacc361d82fcd410cef0d491875"
1534−"checksum backtrace 0.3.35 (registry+https://github.com/rust-lang/crates.io-index)" = "1371048253fa3bac6704bfd6bbfc922ee9bdcee8881330d40f308b81cc5adc55"
1535−"checksum backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)" = "82a830b4ef2d1124a711c71d263c5abdc710ef8e907bd508c88be475cebc422b"
1536−"checksum base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
1537−"checksum bincode 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "9f04a5e50dc80b3d5d35320889053637d15011aed5e66b66b37ae798c65da6f7"
1538−"checksum bindgen 0.50.0 (registry+https://github.com/rust-lang/crates.io-index)" = "65a913de3fa2fa95f2c593bb7e33b1be1ce1ce8a83f34b6bb02e6f01400b96cc"
1539−"checksum bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d155346769a6855b86399e9bc3814ab343cd3d62c7e985113d46a0ec3c281fd"
1540−"checksum blake2b_simd 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)" = "bf775a81bb2d464e20ff170ac20316c7b08a43d11dbc72f0f82e8e8d3d6d0499"
1541−"checksum block-buffer 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b"
1542−"checksum block-padding 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "6d4dc3af3ee2e12f3e5d224e5e1e3d73668abbeb69e566d361f7d5563a4fdf09"
1543−"checksum byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
1544−"checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"
1545−"checksum cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)" = "4fc9a35e1f4290eb9e5fc54ba6cf40671ed2a2514c3eeb2b2a908dda2ea5a1be"
1546−"checksum cexpr 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "a7fa24eb00d5ffab90eaeaf1092ac85c04c64aaf358ea6f84505b8116d24c6af"
1547−"checksum cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "b486ce3ccf7ffd79fdeb678eac06a9e6c09fc88d33836340becb8fffe87c5e33"
1548−"checksum chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e8493056968583b0193c1bb04d6f7684586f3726992d6c573261941a895dbd68"
1549−"checksum clang-sys 0.28.1 (registry+https://github.com/rust-lang/crates.io-index)" = "81de550971c976f176130da4b2978d3b524eaa0fd9ac31f3ceb5ae1231fb4853"
1550−"checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9"
1551−"checksum clicolors-control 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90082ee5dcdd64dc4e9e0d37fbf3ee325419e39c0092191e0393df65518f741e"
1552−"checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
1553−"checksum console 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)" = "45e0f3986890b3acbc782009e2629dfe2baa430ac091519ce3be26164a2ae6c0"
1554−"checksum constant_time_eq 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "995a44c877f9212528ccc74b21a232f66ad69001e40ede5bcee2ac9ef2657120"
1555−"checksum content_inspector 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b7bda66e858c683005a53a9a60c69a4aca7eeaa45d124526e389f7aec8e62f38"
1556−"checksum crc32fast 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
1557−"checksum crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6"
1558−"checksum deunicode 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca8a0f5bbdedde60605d0719b998e282af68e2b1c50203110211fe4abe857560"
1559−"checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
1560−"checksum digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
1561−"checksum dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"
1562−"checksum dirs-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "afa0b23de8fd801745c471deffa6e12d248f962c9fd4b4c33787b055599bde7b"
1563−"checksum doc-comment 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "923dea538cea0aa3025e8685b20d6ee21ef99c4f77e954a30febbaac5ec73a97"
1564−"checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3"
1565−"checksum encode_unicode 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
1566−"checksum encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec"
1567−"checksum encoding-index-japanese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91"
1568−"checksum encoding-index-korean 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81"
1569−"checksum encoding-index-simpchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7"
1570−"checksum encoding-index-singlebyte 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a"
1571−"checksum encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18"
1572−"checksum encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569"
1573−"checksum env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3"
1574−"checksum error-chain 0.12.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d371106cc88ffdfb1eabd7111e432da544f16f3e2d7bf1dfe8bf575f1df045cd"
1575−"checksum escargot 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ceb9adbf9874d5d028b5e4c5739d22b71988252b25c9c98fe7cf9738bee84597"
1576−"checksum escargot 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "74cf96bec282dcdb07099f7e31d9fed323bca9435a09aba7b6d99b7617bca96d"
1577−"checksum failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2"
1578−"checksum failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1"
1579−"checksum fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
1580−"checksum flate2 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)" = "2adaffba6388640136149e18ed080b77a78611c1e1d6de75aedcdf78df5d4682"
1581−"checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3"
1582−"checksum fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
1583−"checksum fxhash 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
1584−"checksum generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec"
1585−"checksum getrandom 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "473a1265acc8ff1e808cd0a1af8cee3c2ee5200916058a2ca113c29f2d903571"
1586−"checksum git2 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "26e07ef27260a78f7e8d218ebac2c72f2c4db50493741b190b6e8eade1da7c68"
1587−"checksum glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
1588−"checksum hermit-abi 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "eff2656d88f158ce120947499e971d743c05dbcbed62e5bd2f38f1698bbc3772"
1589−"checksum humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3ca7e5f2e110db35f93b837c81797f3714500b81d517bf20c431b16d3ca4f114"
1590−"checksum idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
1591−"checksum idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"
1592−"checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358"
1593−"checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
1594−"checksum jobserver 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "f2b1d42ef453b30b7387e113da1c83ab1605d90c5b4e0eb8e96d016ed3b8c160"
1595−"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
1596−"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
1597−"checksum lazycell 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f"
1598−"checksum libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)" = "34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba"
1599−"checksum libgit2-sys 0.11.0+0.99.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4d5d1459353d397a029fb18862166338de938e6be976606bd056cf8f1a912ecf"
1600−"checksum libloading 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753"
1601−"checksum libz-sys 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)" = "2eb5e43362e38e2bca2fd5f5134c4d4564a23a5c28e9b95411652021a8675ebe"
1602−"checksum line-wrap 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f30344350a2a51da54c1d53be93fade8a237e545dbcc4bdbe635413f2117cab9"
1603−"checksum linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "ae91b68aebc4ddb91978b11a1b02ddd8602a05ec19002801c5666000e05e0f83"
1604−"checksum liquid 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c7cf7f28965f50ff06e2e9f26162f6d944b71f976506a7a01a6308ddebd36155"
1605−"checksum liquid-compiler 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7cd195c00674a2dc811b07969358c97c0639db4a73bc61514db48609d110356f"
1606−"checksum liquid-derive 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b0faadd0dd1a7cf38390316c36a9a741949462750f9833b794ac6d7de145218"
1607−"checksum liquid-error 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7d5c0851812322e87dcf67c2d7e520c3efd8651bd44eb8d0c0246e6dfb94d481"
1608−"checksum liquid-interpreter 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "998e0411b8cb6210bb0729ccbb15abd2a1c8ef7e318c97511ae5a741c817c63e"
1609−"checksum liquid-value 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e7606ac3743bff9929daff0d0f51f9177ab3ec74520f7f832b8ec595dd96efee"
1610−"checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
1611−"checksum maplit 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
1612−"checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
1613−"checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
1614−"checksum miniz-sys 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "1e9e3ae51cea1576ceba0dde3d484d30e6e5b86dee0b2d412fe3a16a15c98202"
1615−"checksum miniz_oxide 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7108aff85b876d06f22503dcce091e29f76733b2bfdd91eebce81f5e68203a10"
1616−"checksum nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945"
1617−"checksum nom 4.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6"
1618−"checksum num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09"
1619−"checksum num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "6ba9a427cfca2be13aa6f6403b0b7e7368fe982bfa16fccc450ce74c46cd9b32"
1620−"checksum num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcef43580c035376c0705c42792c294b66974abbfd2789b511784023f71f3273"
1621−"checksum onig 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e4e723fc996fff1aeab8f62205f3e8528bf498bdd5eadb2784d2d31f30077947"
1622−"checksum onig_sys 69.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0a8d4efbf5f59cece01f539305191485b651acb3785b9d5eef05749f0496514e"
1623−"checksum opaque-debug 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
1624−"checksum peeking_take_while 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
1625−"checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
1626−"checksum percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
1627−"checksum pest 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e4fb201c5c22a55d8b24fef95f78be52738e5e1361129be1b5e862ecdb6894a"
1628−"checksum pest_derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0"
1629−"checksum pest_generator 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7b9fcf299b5712d06ee128a556c94709aaa04512c4dffb8ead07c5c998447fc0"
1630−"checksum pest_meta 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "df43fd99896fd72c485fe47542c7b500e4ac1e8700bf995544d1317a60ded547"
1631−"checksum pkg-config 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c1d2cfa5a714db3b5f24f0915e74fcdf91d09d496ba61329705dda7774d2af"
1632−"checksum plist 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5f2a9f075f6394100e7c105ed1af73fb1859d6fd14e49d4290d578120beb167f"
1633−"checksum predicates 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "53e09015b0d3f5a0ec2d4428f7559bb7b3fff341b4e159fedd1d57fac8b939ff"
1634−"checksum predicates-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "06075c3a3e92559ff8929e7a280684489ea27fe44805174c3ebd9328dcb37178"
1635−"checksum predicates-tree 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8e63c4859013b38a76eca2414c64911fba30def9e3202ac461a2d22831220124"
1636−"checksum proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e688f31d92ffd7c1ddc57a1b4e6d773c0f2a14ee437a4b0a4f5a69c80eb221c8"
1637−"checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"
1638−"checksum proc-macro2 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "175a40b9cf564ce9bf050654633dbf339978706b8ead1a907bb970b63185dd95"
1639−"checksum proc-quote 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "fa612543f23fda013e1e6ce30b5285a9d313c6e582e57b4ceca74eb5b85685b5"
1640−"checksum proc-quote-impl 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f785f0f8cd00b7945efc3f3bdf8205eb06af5aacec598d83e67f41dc8d101fda"
1641−"checksum quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9274b940887ce9addde99c4eee6b5c44cc494b182b97e73dc8ffdcb3397fd3f0"
1642−"checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1"
1643−"checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe"
1644−"checksum rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293"
1645−"checksum rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
1646−"checksum rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
1647−"checksum rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"
1648−"checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
1649−"checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84"
1650−"checksum redox_users 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4ecedbca3bf205f8d8f5c2b44d83cd0690e39ee84b951ed649e9f1841132b66d"
1651−"checksum regex 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "dc220bd33bdce8f093101afe22a037b8eb0e5af33592e6a9caafff0d4cb81cbd"
1652−"checksum regex-syntax 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "11a7e20d1cce64ef2fed88b66d347f88bd9babb82845b2b858f3edbf59a4f716"
1653−"checksum remove_dir_all 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e"
1654−"checksum rust-argon2 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4ca4eaef519b494d1f2848fc602d18816fed808a981aedf4f1f00ceb7c9d32cf"
1655−"checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783"
1656−"checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997"
1657−"checksum safemem 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d2b08423011dae9a5ca23f07cf57dac3857f5c885d352b76f6d95f4aea9434d0"
1658−"checksum same-file 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "585e8ddcedc187886a30fa705c47985c3fa88d06624095856b36ca0b82ff4421"
1659−"checksum serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "fec2851eb56d010dc9a21b89ca53ee75e6528bab60c11e89d38390904982da9f"
1660−"checksum serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "cb4dc18c61206b08dc98216c98faa0232f4337e1e1b8574551d5bad29ea1b425"
1661−"checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"
1662−"checksum sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "23962131a91661d643c98940b20fcaffe62d776a823247be80a48fcb8b6fce68"
1663−"checksum shell-words 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "39acde55a154c4cd3ae048ac78cc21c25f3a0145e44111b523279113dce0d94a"
1664−"checksum shlex 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
1665−"checksum smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7"
1666−"checksum strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
1667−"checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5"
1668−"checksum syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "66850e97125af79138385e9b88339cbcd037e3f28ceab8c5ad98e64f0f1f80bf"
1669−"checksum synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f"
1670−"checksum syntect 3.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "955e9da2455eea5635f7032fc3a229908e6af18c39600313866095e07db0d8b8"
1671−"checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8"
1672−"checksum term_size 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9e5b9a66db815dcfd2da92db471106457082577c3c278d4138ab3e3b4e189327"
1673−"checksum termcolor 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "96d6098003bde162e4277c70665bd87c326f5a0c3f3fbfb285787fa482d54e6e"
1674−"checksum termios 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "72b620c5ea021d75a735c943269bb07d30c9b77d6ac6b236bc8b5c496ef05625"
1675−"checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
1676−"checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b"
1677−"checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
1678−"checksum treeline 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f741b240f1a48843f9b8e0444fb55fb2a4ff67293b50a9179dfd5ea67f8d41"
1679−"checksum typenum 1.11.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6d2783fe2d6b8c1101136184eb41be8b1ad379e4657050b8aaff0c79ee7575f9"
1680−"checksum ucd-trie 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8f00ed7be0c1ff1e24f46c3d2af4859f7e863672ba3a6e92e7cff702bf9f06c2"
1681−"checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5"
1682−"checksum unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "141339a08b982d942be2ca06ff8b076563cbe223d1befd5450716790d44e2426"
1683−"checksum unicode-segmentation 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1967f4cdfc355b37fd76d2a954fb2ed3871034eb4f26d60537d88795cfc332a9"
1684−"checksum unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "caaa9d531767d1ff2150b9332433f32a24622147e5ebb1f26409d5da67afd479"
1685−"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
1686−"checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"
1687−"checksum url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
1688−"checksum url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "75b414f6c464c879d7f9babf951f23bc3743fb7313c081b2e6ca719067ea9d61"
1689−"checksum vcpkg 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95"
1690−"checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a"
1691−"checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
1692−"checksum version_check 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "078775d0255232fb988e6fccf26ddc9d1ac274299aaedcedce21c6f72cc533ce"
1693−"checksum walkdir 2.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "9658c94fa8b940eab2250bd5a457f9c48b748420d71293b165c8cdbe2f55f71e"
1694−"checksum wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b89c3ce4ce14bdc6fb6beaf9ec7928ca331de5df7e5ea278375642a2f478570d"
1695−"checksum which 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b57acb10231b9493c8472b20cb57317d0679a49e0bdbee44b3b803a6473af164"
1696−"checksum wild 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "97d34fecce28871e5c0e059deae21ef7f7d13b98a5964b24c58b3735c8052fc8"
1697−"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
1698−"checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6"
1699−"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
1700−"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1701−"checksum winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7168bab6e1daee33b4557efd0e95d5ca70a03706d39fa5f3fe7a236f584b03c9"
1702−"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1703−"checksum wincolor 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "96f5016b18804d24db43cebf3c77269e7569b8954a8464501c216cc5e070eaa9"
1704−"checksum xml-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "541b12c998c5b56aa2b4e6f18f03664eef9a4fd0a246a55594efae6cc2d964b5"
1705−"checksum yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "65923dd1784f44da1d2c3dbbc5e822045628c590ba72123e1c73d3c230c4434d"
1335+version = "0.4.5"
1336+source = "registry+https://github.com/rust-lang/crates.io-index"
1337+checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
1338+dependencies = [
1339+ "linked-hash-map",
1340+]
Cargo.toml+69−31
@@ -1,62 +1,100 @@
11[package]
22authors = ["David Peter <mail@david-peter.de>"]
33categories = ["command-line-utilities"]
4−description="A cat(1) clone with wings."
4+description = "A cat(1) clone with wings."
55homepage = "https://github.com/sharkdp/bat"
66license = "MIT/Apache-2.0"
77name = "bat"
8−readme = "README.md"
98repository = "https://github.com/sharkdp/bat"
10−version = "0.12.1"
11−exclude = [
12− "assets/syntaxes/*",
13− "assets/themes/*",
14−]
9+version = "0.21.0"
10+exclude = ["assets/syntaxes/*", "assets/themes/*"]
1511build = "build.rs"
1612edition = '2018'
1713
14+[features]
15+default = ["application"]
16+# Feature required for bat the application. Should be disabled when depending on
17+# bat as a library.
18+application = [
19+ "bugreport",
20+ "build-assets",
21+ "git",
22+ "minimal-application",
23+]
24+# Mainly for developers that want to iterate quickly
25+# Be aware that the included features might change in the future
26+minimal-application = [
27+ "atty",
28+ "clap",
29+ "dirs-next",
30+ "paging",
31+ "regex-onig",
32+ "wild",
33+]
34+git = ["git2"] # Support indicating git modifications
35+paging = ["shell-words", "grep-cli"] # Support applying a pager on the output
36+build-assets = ["syntect/yaml-load", "syntect/plist-load", "regex", "walkdir"]
37+
38+# You need to use one of these if you depend on bat as a library:
39+regex-onig = ["syntect/regex-onig"] # Use the "oniguruma" regex engine
40+regex-fancy = ["syntect/regex-fancy"] # Use the rust-only "fancy-regex" engine
41+
1842[dependencies]
19−atty = "0.2.14"
43+atty = { version = "0.2.14", optional = true }
2044ansi_term = "^0.12.1"
21−ansi_colours = "^1.0"
22−console = "0.9"
23−dirs = "2.0"
24−lazy_static = "1.4"
25−wild = "2.0"
45+ansi_colours = "^1.1"
46+bincode = "1.0"
47+console = "0.15.0"
48+flate2 = "1.0"
49+once_cell = "1.10"
50+thiserror = "1.0"
51+wild = { version = "2.0", optional = true }
2652content_inspector = "0.2.4"
2753encoding = "0.2"
28−shell-words = "0.1.0"
29−unicode-width = "0.1.7"
54+shell-words = { version = "1.1.0", optional = true }
55+unicode-width = "0.1.9"
56+globset = "0.4"
57+serde = { version = "1.0", features = ["derive"] }
58+serde_yaml = "0.8"
59+semver = "1.0"
60+path_abs = { version = "0.5", default-features = false }
61+clircle = "0.3"
62+bugreport = { version = "0.5.0", optional = true }
63+dirs-next = { version = "2.0.0", optional = true }
64+grep-cli = { version = "0.1.6", optional = true }
65+regex = { version = "1.5.5", optional = true }
66+walkdir = { version = "2.0", optional = true }
67+bytesize = { version = "1.1.0" }
3068
3169[dependencies.git2]
32−version = "0.12"
70+version = "0.14"
71+optional = true
3372default-features = false
34−features = []
3573
3674[dependencies.syntect]
37−version = "3.3.0"
75+version = "5.0.0"
3876default-features = false
39−features = ["parsing", "yaml-load", "dump-load", "dump-create"]
77+features = ["parsing"]
4078
4179[dependencies.clap]
42−version = "2.33"
80+version = "2.34"
81+optional = true
4382default-features = false
4483features = ["suggestions", "color", "wrap_help"]
4584
46−[dependencies.error-chain]
47−version = "0.12"
48−default-features = false
49−features = []
50−
5185[dev-dependencies]
52−tempdir = "0.3"
53−assert_cmd = "0.11.1"
54−escargot = "0.5.0"
86+assert_cmd = "2.0.4"
87+serial_test = "0.6.0"
88+predicates = "2.1.1"
89+wait-timeout = "0.2.0"
90+tempfile = "3.3.0"
91+
92+[target.'cfg(unix)'.dev-dependencies]
93+nix = { version = "0.24.1", default-features = false, features = ["term"] }
5594
5695[build-dependencies]
57−clap = "2.33"
58−liquid = "0.19"
59−lazy_static = "1.4"
96+clap = { version = "2.34", optional = true }
6097
6198[profile.release]
6299lto = true
100+codegen-units = 1
LICENSE-MIT+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2018-2020 bat-developers (https://github.com/sharkdp/bat).
1+Copyright (c) 2018-2021 bat-developers (https://github.com/sharkdp/bat).
22
33Permission is hereby granted, free of charge, to any person obtaining a copy
44of this software and associated documentation files (the "Software"), to deal
NOTICEnew file+6
@@ -0,0 +1,6 @@
1+Copyright (c) 2018-2021 bat-developers (https://github.com/sharkdp/bat).
2+
3+bat is made available under the terms of either the MIT License or the Apache
4+License 2.0, at your option.
5+
6+See the LICENSE-APACHE and LICENSE-MIT files for license details.
README.md+283−93
@@ -1,7 +1,6 @@
11<p align="center">
22 <img src="doc/logo-header.svg" alt="bat - a cat clone with wings"><br>
3− <a href="https://travis-ci.org/sharkdp/bat"><img src="https://travis-ci.org/sharkdp/bat.svg?branch=master" alt="Build Status"></a>
4− <a href="https://ci.appveyor.com/project/sharkdp/bat"><img src="https://ci.appveyor.com/api/projects/status/cptsmtbiwbnr2vhf/branch/master?svg=true"></a>
3+ <a href="https://github.com/sharkdp/bat/actions?query=workflow%3ACICD"><img src="https://github.com/sharkdp/bat/workflows/CICD/badge.svg" alt="Build Status"></a>
54 <img src="https://img.shields.io/crates/l/bat.svg" alt="license">
65 <a href="https://crates.io/crates/bat"><img src="https://img.shields.io/crates/v/bat.svg?colorB=319e8c" alt="Version info"></a><br>
76 A <i>cat(1)</i> clone with syntax highlighting and Git integration.
@@ -12,10 +11,27 @@
1211 <a href="#how-to-use">How To Use</a> •
1312 <a href="#installation">Installation</a> •
1413 <a href="#customization">Customization</a> •
15− <a href="#project-goals-and-alternatives">Project goals, alternatives</a> •
16− Translation [<a href="https://github.com/chinanf-boy/bat-zh">中文</a>][<a href="doc/README-ja.md">日本語</a>]
14+ <a href="#project-goals-and-alternatives">Project goals, alternatives</a><br>
15+ [English]
16+ [<a href="doc/README-zh.md">中文</a>]
17+ [<a href="doc/README-ja.md">日本語</a>]
18+ [<a href="doc/README-ko.md">한국어</a>]
19+ [<a href="doc/README-ru.md">Русский</a>]
1720</p>
1821
22+### Sponsors
23+
24+A special *thank you* goes to our biggest <a href="doc/sponsors.md">sponsors</a>:<br>
25+<a href="https://workos.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=bat&utm_source=github">
26+ <img src="doc/sponsors/workos-logo-white-bg.svg" width="200" alt="WorkOS">
27+ <br>
28+ <strong>Your app, enterprise-ready.</strong>
29+ <br>
30+ <sub>Start selling to enterprise customers with just a few lines of code.</sub>
31+ <br>
32+ <sup>Add Single Sign-On (and more) in minutes instead of months.</sup>
33+</a>
34+
1935### Syntax highlighting
2036
2137`bat` supports syntax highlighting for a large number of programming and markup
@@ -39,14 +55,14 @@ characters:
3955
4056### Automatic paging
4157
42−`bat` can pipe its own output to `less` if the output is too large for one screen.
58+By default, `bat` pipes its own output to a pager (e.g. `less`) if the output is too large for one screen.
59+If you would rather `bat` work like `cat` all the time (never page output), you can set `--paging=never` as an option, either on the command line or in your configuration file.
60+If you intend to alias `cat` to `bat` in your shell configuration, you can use `alias cat='bat --paging=never'` to preserve the default behavior.
4361
44−### File concatenation
62+#### File concatenation
4563
46−Oh.. you can also use it to concatenate files :wink:. Whenever
47−`bat` detects a non-interactive terminal (i.e. when you pipe into another process
48−or into a file), `bat` will act as a drop-in replacement for `cat` and
49−fall back to printing the plain file contents.
64+Even with a pager set, you can still use `bat` to concatenate files :wink:.
65+Whenever `bat` detects a non-interactive terminal (i.e. when you pipe into another process or into a file), `bat` will act as a drop-in replacement for `cat` and fall back to printing the plain file contents, regardless of the `--pager` option's value.
5066
5167## How to use
5268
@@ -62,7 +78,9 @@ Display multiple files at once
6278> bat src/*.rs
6379```
6480
65−Read from stdin, determine the syntax automatically
81+Read from stdin, determine the syntax automatically (note, highlighting will
82+only work if the syntax can be determined from the first line of the file,
83+usually through a shebang such as `#!/bin/sh`)
6684
6785```bash
6886> curl -s https://sh.rustup.rs | bat
@@ -93,14 +111,28 @@ bat f - g # output 'f', then stdin, then 'g'.
93111
94112### Integration with other tools
95113
114+#### `fzf`
115+
116+You can use `bat` as a previewer for [`fzf`](https://github.com/junegunn/fzf). To do this,
117+use `bat`s `--color=always` option to force colorized output. You can also use `--line-range`
118+option to restrict the load times for long files:
119+
120+```bash
121+fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'
122+```
123+
124+For more information, see [`fzf`'s `README`](https://github.com/junegunn/fzf#preview-window).
125+
96126#### `find` or `fd`
97127
98128You can use the `-exec` option of `find` to preview all search results with `bat`:
129+
99130```bash
100131find … -exec bat {} +
101132```
102133
103134If you happen to use [`fd`](https://github.com/sharkdp/fd), you can use the `-X`/`--exec-batch` option to do the same:
135+
104136```bash
105137fd … -X bat
106138```
@@ -116,9 +148,11 @@ batgrep needle src/
116148#### `tail -f`
117149
118150`bat` can be combined with `tail -f` to continuously monitor a given file with syntax highlighting.
151+
119152```bash
120153tail -f /var/log/pacman.log | bat --paging=never -l log
121154```
155+
122156Note that we have to switch off paging in order for this to work. We have also specified the syntax
123157explicitly (`-l log`), as it can not be auto-detected in this case.
124158
@@ -126,11 +160,23 @@ explicitly (`-l log`), as it can not be auto-detected in this case.
126160
127161You can combine `bat` with `git show` to view an older version of a given file with proper syntax
128162highlighting:
163+
129164```bash
130165git show v0.6.0:src/main.rs | bat -l rs
131166```
132167
133−Note that syntax highlighting within diffs is currently not supported. If you are looking for this, check out [`delta`](https://github.com/dandavison/delta).
168+#### `git diff`
169+
170+You can combine `bat` with `git diff` to view lines around code changes with proper syntax
171+highlighting:
172+```bash
173+batdiff() {
174+ git diff --name-only --relative --diff-filter=d | xargs bat --diff
175+}
176+```
177+If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).
178+
179+If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta).
134180
135181#### `xclip`
136182
@@ -151,36 +197,71 @@ bat main.cpp | xclip
151197export MANPAGER="sh -c 'col -bx | bat -l man -p'"
152198man 2 select
153199```
200+(replace `bat` with `batcat` if you are on Debian or Ubuntu)
154201
155202It might also be necessary to set `MANROFFOPT="-c"` if you experience
156203formatting problems.
157204
158205If you prefer to have this bundled in a new command, you can also use [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md).
159206
160−Note that the [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
207+Note that the [Manpage syntax](assets/syntaxes/02_Extra/Manpage.sublime-syntax) is developed in this repository and still needs some work.
208+
209+Also, note that this will [not work](https://github.com/sharkdp/bat/issues/1145) with Mandocs `man` implementation.
161210
162211#### `prettier` / `shfmt` / `rustfmt`
163212
164213The [`prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md) script is a wrapper that will format code and print it with `bat`.
165214
215+#### Highlighting `--help` messages
216+
217+You can use `bat` to colorize help text: `$ cp --help | bat -plhelp`
218+
219+You can also use a wrapper around this:
220+
221+```bash
222+# in your .bashrc/.zshrc/*rc
223+alias bathelp='bat --plain --language=help'
224+help() {
225+ "$@" --help 2>&1 | bathelp
226+}
227+```
228+
229+Then you can do `$ help cp` or `$ help git commit`.
230+
231+Please report any issues with the help syntax in [this repository](https://github.com/victor-gp/cmd-help-sublime-syntax).
232+
166233
167234## Installation
168235
169−[![Packaging status](https://repology.org/badge/vertical-allrepos/bat.svg)](https://repology.org/project/bat/versions)
236+[![Packaging status](https://repology.org/badge/vertical-allrepos/bat-cat.svg)](https://repology.org/project/bat-cat/versions)
170237
171−### On Ubuntu
238+### On Ubuntu (using `apt`)
172239*... and other Debian-based Linux distributions.*
173240
174−You can install [the Ubuntu `bat` package](https://packages.ubuntu.com/eoan/bat) or [the Debian `bat` package](https://packages.debian.org/sid/bat) since Ubuntu Eoan 19.10 or Debian unstable sid.
241+`bat` is available on [Ubuntu since 20.04 ("Focal")](https://packages.ubuntu.com/search?keywords=bat&exact=1) and [Debian since August 2021 (Debian 11 - "Bullseye")](https://packages.debian.org/bullseye/bat).
242+
243+If your Ubuntu/Debian installation is new enough you can simply run:
175244
176245```bash
177−apt install bat
246+sudo apt install bat
247+```
248+
249+**Important**: If you install `bat` this way, please note that the executable may be installed as `batcat` instead of `bat` (due to [a name
250+clash with another package](https://github.com/sharkdp/bat/issues/982)). You can set up a `bat -> batcat` symlink or alias to prevent any issues that may come up because of this and to be consistent with other distributions:
251+``` bash
252+mkdir -p ~/.local/bin
253+ln -s /usr/bin/batcat ~/.local/bin/bat
178254```
179255
180−If you want to run the latest release of bat or if you are on older versions of Ubuntu/Debian, download the latest `.deb` package from the [release page](https://github.com/sharkdp/bat/releases)
181−and install it via:
256+### On Ubuntu (using most recent `.deb` packages)
257+*... and other Debian-based Linux distributions.*
258+
259+If the package has not yet been promoted to your Ubuntu/Debian installation, or you want
260+the most recent release of `bat`, download the latest `.deb` package from the
261+[release page](https://github.com/sharkdp/bat/releases) and install it via:
262+
182263```bash
183−sudo dpkg -i bat_0.12.1_amd64.deb # adapt version number and architecture
264+sudo dpkg -i bat_0.18.3_amd64.deb # adapt version number and architecture
184265```
185266
186267### On Alpine Linux
@@ -209,6 +290,14 @@ You can install [the `bat` package](https://koji.fedoraproject.org/koji/packagei
209290dnf install bat
210291```
211292
293+### On Funtoo Linux
294+
295+You can install [the `bat` package](https://github.com/funtoo/dev-kit/tree/1.4-release/sys-apps/bat) from dev-kit.
296+
297+```bash
298+emerge sys-apps/bat
299+```
300+
212301### On Gentoo Linux
213302
214303You can install [the `bat` package](https://packages.gentoo.org/packages/sys-apps/bat)
@@ -225,6 +314,13 @@ You can install `bat` via xbps-install:
225314xbps-install -S bat
226315```
227316
317+### On Termux
318+
319+You can install `bat` via pkg:
320+```bash
321+pkg install bat
322+```
323+
228324### On FreeBSD
229325
230326You can install a precompiled [`bat` package](https://www.freshports.org/textproc/bat) with pkg:
@@ -240,6 +336,14 @@ cd /usr/ports/textproc/bat
240336make install
241337```
242338
339+### On OpenBSD
340+
341+You can install `bat` package using [`pkg_add(1)`](https://man.openbsd.org/pkg_add.1):
342+
343+```bash
344+pkg_add bat
345+```
346+
243347### Via nix
244348
245349You can install `bat` using the [nix package manager](https://nixos.org/nix):
@@ -256,14 +360,21 @@ You can install `bat` with zypper:
256360zypper install bat
257361```
258362
259−### On macOS
363+### Via snap package
364+
365+There is currently no recommended snap package available.
366+Existing packages may be available, but are not officially supported and may contain [issues](https://github.com/sharkdp/bat/issues/1519).
260367
261−You can install `bat` with [Homebrew](http://braumeister.org/formula/bat):
368+### On macOS (or Linux) via Homebrew
369+
370+You can install `bat` with [Homebrew on MacOS](https://formulae.brew.sh/formula/bat) or [Homebrew on Linux](https://formulae.brew.sh/formula-linux/bat):
262371
263372```bash
264373brew install bat
265374```
266375
376+### On macOS via MacPorts
377+
267378Or install `bat` with [MacPorts](https://ports.macports.org/port/bat/summary):
268379
269380```bash
@@ -272,54 +383,32 @@ port install bat
272383
273384### On Windows
274385
275−You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),
276−or install it with [scoop](https://scoop.sh/) or [Chocolatey](https://chocolatey.org):
386+There are a few options to install `bat` on Windows. Once you have installed `bat`,
387+take a look at the ["Using `bat` on Windows"](#using-bat-on-windows) section.
277388
278−```bash
279−scoop install bat
280−```
281−
282−```bash
283−choco install bat
284−```
389+#### Prerequisites
285390
286−[See below](#using-bat-on-windows) for notes.
391+You will need to install the [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) package.
287392
288−### Via Docker
393+#### With Chocolatey
289394
290−There is a [Docker image](https://hub.docker.com/r/danlynn/bat/) that you can use to run `bat` in a container:
395+You can install `bat` via [Chocolatey](https://chocolatey.org/packages/Bat):
291396```bash
292−docker pull danlynn/bat
293−alias bat='docker run -it --rm -e BAT_THEME -e BAT_STYLE -e BAT_TABS -v "$(pwd):/myapp" danlynn/bat'
397+choco install bat
294398```
295399
296−### Via Ansible
297−
298−You can install `bat` with [Ansible](https://www.ansible.com/):
400+#### With Scoop
299401
402+You can install `bat` via [scoop](https://scoop.sh/):
300403```bash
301−# Install role on local machine
302−ansible-galaxy install aeimer.install_bat
404+scoop install bat
303405```
304406
305−```yaml
306−---
307−# Playbook to install bat
308−- host: all
309− roles:
310− - aeimer.install_bat
311−```
407+#### From prebuilt binaries:
312408
313−- [Ansible Galaxy](https://galaxy.ansible.com/aeimer/install_bat)
314−- [GitHub](https://github.com/aeimer/ansible-install-bat)
409+You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),
315410
316−This should work with the following distributions:
317−- Debian/Ubuntu
318−- ARM (eg. Raspberry PI)
319−- Arch Linux
320−- Void Linux
321−- FreeBSD
322−- MacOS
411+You will need to install the [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) package.
323412
324413### From binaries
325414
@@ -329,14 +418,15 @@ binaries are also available: look for archives with `musl` in the file name.
329418
330419### From source
331420
332−If you want to build `bat` from source, you need Rust 1.36 or
421+If you want to build `bat` from source, you need Rust 1.51 or
333422higher. You can then use `cargo` to build everything:
334423
335424```bash
336−cargo install bat
425+cargo install --locked bat
337426```
338427
339−On some platforms, you might need to install `llvm` and/or `libclang-dev`.
428+Note that additional files like the man page or shell completion
429+files can not be installed in this way. They will be generated by `cargo` and should be available in the cargo target folder (under `build`).
340430
341431## Customization
342432
@@ -360,6 +450,26 @@ light background, some themes like `GitHub` or `OneHalfLight` will work better f
360450You can also use a custom theme by following the
361451['Adding new themes' section below](https://github.com/sharkdp/bat#adding-new-themes).
362452
453+### 8-bit themes
454+
455+`bat` has three themes that always use [8-bit colors](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors),
456+even when truecolor support is available:
457+
458+- `ansi` looks decent on any terminal. It uses 3-bit colors: black, red, green,
459+ yellow, blue, magenta, cyan, and white.
460+- `base16` is designed for [base16](https://github.com/chriskempson/base16) terminal themes. It uses
461+ 4-bit colors (3-bit colors plus bright variants) in accordance with the
462+ [base16 styling guidelines](https://github.com/chriskempson/base16/blob/master/styling.md).
463+- `base16-256` is designed for [base16-shell](https://github.com/chriskempson/base16-shell).
464+ It replaces certain bright colors with 8-bit colors from 16 to 21. **Do not** use this simply
465+ because you have a 256-color terminal but are not using base16-shell.
466+
467+Although these themes are more restricted, they have three advantages over truecolor themes. They:
468+
469+- Enjoy maximum compatibility. Some terminal utilities do not support more than 3-bit colors.
470+- Adapt to terminal theme changes. Even for already printed output.
471+- Visually harmonize better with other terminal software.
472+
363473### Output style
364474
365475You can use the `--style` option to control the appearance of `bat`s output.
@@ -370,35 +480,45 @@ variable to make these changes permanent or use `bat`s
370480
371481### Adding new syntaxes / language definitions
372482
483+Should you find that a particular syntax is not available within `bat`, you can follow these
484+instructions to easily add new syntaxes to your current `bat` installation.
485+
373486`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/)
374487library for syntax highlighting. `syntect` can read any
375488[Sublime Text `.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)
376−and theme. To add new syntax definitions, do the following.
489+and theme.
377490
378−Create a folder with syntax definition files:
491+A good resource for finding Sublime Syntax packages is [Package Control](https://packagecontrol.io/). Once you found a
492+syntax:
379493
380−```bash
381−mkdir -p "$(bat --config-dir)/syntaxes"
382−cd "$(bat --config-dir)/syntaxes"
494+1. Create a folder with syntax definition files:
383495
384−# Put new '.sublime-syntax' language definition files
385−# in this folder (or its subdirectories), for example:
386−git clone https://github.com/tellnobody1/sublime-purescript-syntax
387−```
496+ ```bash
497+ mkdir -p "$(bat --config-dir)/syntaxes"
498+ cd "$(bat --config-dir)/syntaxes"
388499
389−Now use the following command to parse these files into a binary cache:
500+ # Put new '.sublime-syntax' language definition files
501+ # in this folder (or its subdirectories), for example:
502+ git clone https://github.com/tellnobody1/sublime-purescript-syntax
503+ ```
390504
391−```bash
392−bat cache --build
393−```
505+2. Now use the following command to parse these files into a binary cache:
394506
395−Finally, use `bat --list-languages` to check if the new languages are available.
507+ ```bash
508+ bat cache --build
509+ ```
396510
397−If you ever want to go back to the default settings, call:
511+3. Finally, use `bat --list-languages` to check if the new languages are available.
398512
399−```bash
400−bat cache --clear
401−```
513+ If you ever want to go back to the default settings, call:
514+
515+ ```bash
516+ bat cache --clear
517+ ```
518+
519+4. If you think that a specific syntax should be included in `bat` by default, please
520+ consider opening a "syntax request" ticket after reading the policies and
521+ instructions [here](doc/assets.md): [Open Syntax Request](https://github.com/sharkdp/bat/issues/new?labels=syntax-request&template=syntax_request.md).
402522
403523### Adding new themes
404524
@@ -418,6 +538,34 @@ bat cache --build
418538
419539Finally, use `bat --list-themes` to check if the new themes are available.
420540
541+### Adding or changing file type associations
542+
543+You can add new (or change existing) file name patterns using the `--map-syntax`
544+command line option. The option takes an argument of the form `pattern:syntax` where
545+`pattern` is a glob pattern that is matched against the file name and
546+the absolute file path. The `syntax` part is the full name of a supported language
547+(use `bat --list-languages` for an overview).
548+
549+**Note:** You probably want to use this option as [an entry in `bat`'s configuration file](#configuration-file)
550+for persistence instead of passing it on the command line as a one-off. Generally
551+you'd just use `-l` if you want to manually specify a language for a file.
552+
553+Example: To use "INI" syntax highlighting for all files with a `.conf` file extension, use
554+```bash
555+--map-syntax='*.conf:INI'
556+```
557+
558+Example: To open all files called `.ignore` (exact match) with the "Git Ignore" syntax, use:
559+```bash
560+--map-syntax='.ignore:Git Ignore'
561+```
562+
563+Example: To open all `.conf` files in subfolders of `/etc/apache2` with the "Apache Conf"
564+syntax, use (this mapping is already built in):
565+```bash
566+--map-syntax='/etc/apache2/**/*.conf:Apache Conf'
567+```
568+
421569### Using a different pager
422570
423571`bat` uses the pager that is specified in the `PAGER` environment variable. If this variable is not
@@ -425,6 +573,8 @@ set, `less` is used by default. If you want to use a different pager, you can ei
425573`PAGER` variable or set the `BAT_PAGER` environment variable to override what is specified in
426574`PAGER`.
427575
576+**Note**: If `PAGER` is `more` or `most`, `bat` will silently use `less` instead to ensure support for colors.
577+
428578If you want to pass command-line arguments to the pager, you can also set them via the
429579`PAGER`/`BAT_PAGER` variables:
430580
@@ -449,21 +599,32 @@ If you want to enable mouse-wheel scrolling on older versions of `less`, you can
449599in the example above, this will disable the quit-if-one-screen feature). For less 530 or newer,
450600it should work out of the box.
451601
602+### Indentation
603+
604+`bat` expands tabs to 4 spaces by itself, not relying on the pager. To change this, simply add the
605+`--tabs` argument with the number of spaces you want to be displayed.
606+
607+**Note**: Defining tab stops for the pager (via the `--pager` argument by `bat`, or via the `LESS`
608+environment variable for `less`) won't be taken into account because the pager will already get
609+expanded spaces instead of tabs. This behaviour is added to avoid indentation issues caused by the
610+sidebar. Calling `bat` with `--tabs=0` will override it and let tabs be consumed by the pager.
611+
452612### Dark mode
453613
454614If you make use of the dark mode feature in macOS, you might want to configure `bat` to use a different
455−theme based on the OS theme. The following snippet uses the `default` theme when in the light mode
456−and the `GitHub` theme when in the dark mode.
615+theme based on the OS theme. The following snippet uses the `default` theme when in the _dark mode_
616+and the `GitHub` theme when in the _light mode_.
457617
458618```bash
459619alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
460620```
461621
622+
462623## Configuration file
463624
464625`bat` can also be customized with a configuration file. The location of the file is dependent
465626on your operating system. To get the default path for your system, call
466−```
627+```bash
467628bat --config-file
468629```
469630
@@ -473,6 +634,11 @@ non-default location of the configuration file:
473634export BAT_CONFIG_PATH="/path/to/bat.conf"
474635```
475636
637+A default configuration file can be created with the `--generate-config-file` option.
638+```bash
639+bat --generate-config-file
640+```
641+
476642### Format
477643
478644The configuration file is a simple list of command line arguments. Use `bat --help` to see a full list of possible options and values. In addition, you can add comments by prepending a line with the `#` character.
@@ -488,17 +654,18 @@ Example configuration file:
488654# Use italic text on the terminal (not supported on all terminals)
489655--italic-text=always
490656
491−# Use C++ syntax (instead of C) for .h header files
492−--map-syntax h:cpp
493−
494−# Use "gitignore" highlighting for ".ignore" files
495−--map-syntax .ignore:.gitignore
657+# Use C++ syntax for Arduino .ino files
658+--map-syntax "*.ino:C++"
496659```
497660
498661## Using `bat` on Windows
499662
500663`bat` mostly works out-of-the-box on Windows, but a few features may need extra configuration.
501664
665+### Prerequisites
666+
667+You will need to install the [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) package.
668+
502669### Paging
503670
504671Windows only includes a very limited pager in the form of `more`. You can download a Windows binary
@@ -539,11 +706,19 @@ bat() {
539706
540707## Troubleshooting
541708
709+### Garbled output
710+
711+If an input file contains color codes or other ANSI escape sequences or control characters, `bat` will have problems
712+performing syntax highlighting and text wrapping, and thus the output can become garbled.
713+When displaying such files it is recommended to disable both syntax highlighting and wrapping by
714+passing the `--color=never --wrap=never` options to `bat`.
715+
542716### Terminals & colors
543717
544−`bat` handles terminals *with* and *without* truecolor support. However, the colors in the syntax
545−highlighting themes are not optimized for 8-bit colors and it is therefore strongly recommended
546−that you use a terminal with 24-bit truecolor support (`terminator`, `konsole`, `iTerm2`, ...).
718+`bat` handles terminals *with* and *without* truecolor support. However, the colors in most syntax
719+highlighting themes are not optimized for 8-bit colors. It is therefore strongly recommended
720+that you use a terminal with 24-bit truecolor support (`terminator`, `konsole`, `iTerm2`, ...),
721+or use one of the basic [8-bit themes](#8-bit-themes) designed for a restricted set of colors.
547722See [this article](https://gist.github.com/XVilka/8346728) for more details and a full list of
548723terminals with truecolor support.
549724
@@ -582,17 +757,32 @@ cargo build --bins
582757cargo test
583758
584759# Install (release version)
585−cargo install
760+cargo install --path . --locked
586761
587762# Build a bat binary with modified syntaxes and themes
588763bash assets/create.sh
589−cargo install -f
764+cargo install --path . --locked --force
590765```
591766
767+If you want to build an application that uses `bat`s pretty-printing
768+features as a library, check out the [the API documentation](https://docs.rs/bat/).
769+Note that you have to use either `regex-onig` or `regex-fancy` as a feature
770+when you depend on `bat` as a library.
771+
772+## Contributing
773+
774+Take a look at the [`CONTRIBUTING.md`](CONTRIBUTING.md) guide.
775+
592776## Maintainers
593777
594778- [sharkdp](https://github.com/sharkdp)
595779- [eth-p](https://github.com/eth-p)
780+- [keith-hall](https://github.com/keith-hall)
781+- [Enselic](https://github.com/Enselic)
782+
783+## Security vulnerabilities
784+
785+Please contact [David Peter](https://david-peter.de/) via email if you want to report a vulnerability in `bat`.
596786
597787## Project goals and alternatives
598788
@@ -607,8 +797,8 @@ There are a lot of alternatives, if you are looking for similar programs. See
607797[this document](doc/alternatives.md) for a comparison.
608798
609799## License
610−Copyright (c) 2018-2020 [bat-developers](https://github.com/sharkdp/bat).
800+Copyright (c) 2018-2021 [bat-developers](https://github.com/sharkdp/bat).
611801
612−`bat` is distributed under the terms of both the MIT License and the Apache License 2.0.
802+`bat` is made available under the terms of either the MIT License or the Apache License 2.0, at your option.
613803
614804See the [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) files for license details.
appveyor.ymldeleted−49
@@ -1,49 +0,0 @@
1−environment:
2− global:
3− TARGET: x86_64-pc-windows-msvc
4− RUST_VERSION: stable
5− CRATE_NAME: bat
6− CARGO_HOME: "c:\\cargo"
7− RUSTUP_HOME: "c:\\rustup"
8−
9−install:
10− - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
11− - rustup-init.exe -y --default-host %TARGET%
12− - set PATH=%PATH%;C:\cargo\bin
13− - rustc -Vv
14− - cargo -V
15−
16−build: false
17−test_script:
18− - cargo test --target %TARGET% --verbose
19− - cargo run --target %TARGET% -- src/bin/bat/main.rs README.md --paging=never
20−
21−before_deploy:
22− # Generate artifacts for release
23− - cargo build --bins --release --verbose
24− - ps: ci\before_deploy.ps1
25−
26−deploy:
27− description: 'Automatically deployed release'
28− artifact: /.*\.zip/
29− # Here's how:
30− # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
31− # `public_repo` scope enabled
32− # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.
33− # - Enter the "encrypted value" below
34− auth_token:
35− secure: oO4/J+hcFXgXcEqEc8gzlQNqLG0IxU78s4EyH+uczGdsyWajb3yipxPR6nXUvmoj
36− provider: GitHub
37− on:
38− RUST_VERSION: stable
39− appveyor_repo_tag: true
40−
41−cache:
42− - C:\Users\appveyor\.cargo\registry
43− - target
44−
45−notifications:
46− - provider: Email
47− on_build_success: false
48− on_build_failure: false
49− on_build_status_changed: false
assets/README.mddeleted−41
@@ -1,41 +0,0 @@
1−## Syntax Highlighting in bat
2−
3−`bat` uses the [syntect](https://github.com/trishume/syntect) library to highlight source
4−code. As a basis, syntect uses [Sublime Text](https://www.sublimetext.com/) syntax definitions
5−in the `.sublime-syntax` format.
6−
7−In order to add new syntaxes to `bat`, follow these steps:
8−
9−1. Find a Sublime Text syntax for the given language, preferably in a separate Git repository
10− which can be included as a submodule (under `assets/syntaxes`).
11−
12−2. If the Sublime Text syntax is only available as a `.tmLanguage` file, open the file in
13− Sublime Text and convert it to a `.sublime-syntax` file via *Tools* -> *Developer* ->
14− *New Syntax from XXX.tmLanguage...*. Save the new file in the `assets/syntaxes` folder.
15−
16−3. Run the `create.sh` script. It calls `bat cache --build` to parse all available
17− `.sublime-syntax` files and serialize them to a `syntaxes.bin` file (in this folder).
18−
19−4. Re-compile `bat`. At compilation time, the `syntaxes.bin` file will be stored inside the
20− `bat` binary.
21−
22−5. If you send a pull request with your changes, please do *not* include the changed `syntaxes.bin`
23− file. A new binary cache file will be created once before every new release of `bat`.
24−
25−### Troubleshooting
26−
27−Make sure that the local cache does not interfere with the internally stored syntaxes and
28−themes (`bat cache --clear`).
29−
30−### Manual modifications
31−
32−The following files have been manually modified after converting from a `.tmLanguage` file:
33−
34−* `Dart.sublime-syntax` => removed `#regex.dart` include.
35−* `INI.sublime-syntax` => added `.hgrc`, `hgrc`, and `desktop` file types.
36−* `Org mode.sublime-syntax` => removed `task` file type.
37−
38−### Non-submodule additions
39−
40−* `Assembly (x86_64)` has been manually added from https://github.com/13xforever/x86-assembly-textmate-bundle due to `git clone` recursion problems
41−* `Nim.sublime-syntax` has been added manually from https://github.com/getzola/zola/blob/master/sublime_syntaxes/Nim.sublime-syntax as there was no suitable Git repository for it. The original syntax seems to originate from https://github.com/Varriount/NimLime
assets/acknowledgements.binnew file

Binary file not shown.

assets/completions/_bat.ps1.innew file+92
@@ -0,0 +1,92 @@
1+
2+using namespace System.Management.Automation
3+using namespace System.Management.Automation.Language
4+
5+Register-ArgumentCompleter -Native -CommandName '{{PROJECT_EXECUTABLE}}' -ScriptBlock {
6+ param($wordToComplete, $commandAst, $cursorPosition)
7+
8+ $commandElements = $commandAst.CommandElements
9+ $command = @(
10+ '{{PROJECT_EXECUTABLE}}'
11+ for ($i = 1; $i -lt $commandElements.Count; $i++) {
12+ $element = $commandElements[$i]
13+ if ($element -isnot [StringConstantExpressionAst] -or
14+ $element.StringConstantType -ne [StringConstantType]::BareWord -or
15+ $element.Value.StartsWith('-')) {
16+ break
17+ }
18+ $element.Value
19+ }) -join ';'
20+
21+ $completions = @(switch ($command) {
22+ '{{PROJECT_EXECUTABLE}}' {
23+ [CompletionResult]::new('-l', 'l', [CompletionResultType]::ParameterName, 'Set the language for syntax highlighting.')
24+ [CompletionResult]::new('--language', 'language', [CompletionResultType]::ParameterName, 'Set the language for syntax highlighting.')
25+ [CompletionResult]::new('-H', 'H', [CompletionResultType]::ParameterName, 'Highlight lines N through M.')
26+ [CompletionResult]::new('--highlight-line', 'highlight-line', [CompletionResultType]::ParameterName, 'Highlight lines N through M.')
27+ [CompletionResult]::new('--file-name', 'file-name', [CompletionResultType]::ParameterName, 'Specify the name to display for a file.')
28+ [CompletionResult]::new('--diff-context', 'diff-context', [CompletionResultType]::ParameterName, 'diff-context')
29+ [CompletionResult]::new('--tabs', 'tabs', [CompletionResultType]::ParameterName, 'Set the tab width to T spaces.')
30+ [CompletionResult]::new('--wrap', 'wrap', [CompletionResultType]::ParameterName, 'Specify the text-wrapping mode (*auto*, never, character).')
31+ [CompletionResult]::new('--terminal-width', 'terminal-width', [CompletionResultType]::ParameterName, 'Explicitly set the width of the terminal instead of determining it automatically. If prefixed with ''+'' or ''-'', the value will be treated as an offset to the actual terminal width. See also: ''--wrap''.')
32+ [CompletionResult]::new('--color', 'color', [CompletionResultType]::ParameterName, 'When to use colors (*auto*, never, always).')
33+ [CompletionResult]::new('--italic-text', 'italic-text', [CompletionResultType]::ParameterName, 'Use italics in output (always, *never*)')
34+ [CompletionResult]::new('--decorations', 'decorations', [CompletionResultType]::ParameterName, 'When to show the decorations (*auto*, never, always).')
35+ [CompletionResult]::new('--paging', 'paging', [CompletionResultType]::ParameterName, 'Specify when to use the pager, or use `-P` to disable (*auto*, never, always).')
36+ [CompletionResult]::new('--pager', 'pager', [CompletionResultType]::ParameterName, 'Determine which pager to use.')
37+ [CompletionResult]::new('-m', 'm', [CompletionResultType]::ParameterName, 'Use the specified syntax for files matching the glob pattern (''*.cpp:C++'').')
38+ [CompletionResult]::new('--map-syntax', 'map-syntax', [CompletionResultType]::ParameterName, 'Use the specified syntax for files matching the glob pattern (''*.cpp:C++'').')
39+ [CompletionResult]::new('--theme', 'theme', [CompletionResultType]::ParameterName, 'Set the color theme for syntax highlighting.')
40+ [CompletionResult]::new('--style', 'style', [CompletionResultType]::ParameterName, 'Comma-separated list of style elements to display (*default*, auto, full, plain, changes, header, header-filename, header-filesize, grid, rule, numbers, snip).')
41+ [CompletionResult]::new('-r', 'r', [CompletionResultType]::ParameterName, 'Only print the lines from N to M.')
42+ [CompletionResult]::new('--line-range', 'line-range', [CompletionResultType]::ParameterName, 'Only print the lines from N to M.')
43+ [CompletionResult]::new('-A', 'A', [CompletionResultType]::ParameterName, 'Show non-printable characters (space, tab, newline, ..).')
44+ [CompletionResult]::new('--show-all', 'show-all', [CompletionResultType]::ParameterName, 'Show non-printable characters (space, tab, newline, ..).')
45+ [CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'Show plain style (alias for ''--style=plain'').')
46+ [CompletionResult]::new('--plain', 'plain', [CompletionResultType]::ParameterName, 'Show plain style (alias for ''--style=plain'').')
47+ [CompletionResult]::new('-d', 'd', [CompletionResultType]::ParameterName, 'Only show lines that have been added/removed/modified.')
48+ [CompletionResult]::new('--diff', 'diff', [CompletionResultType]::ParameterName, 'Only show lines that have been added/removed/modified.')
49+ [CompletionResult]::new('-n', 'n', [CompletionResultType]::ParameterName, 'Show line numbers (alias for ''--style=numbers'').')
50+ [CompletionResult]::new('--number', 'number', [CompletionResultType]::ParameterName, 'Show line numbers (alias for ''--style=numbers'').')
51+ [CompletionResult]::new('-f', 'f', [CompletionResultType]::ParameterName, 'f')
52+ [CompletionResult]::new('--force-colorization', 'force-colorization', [CompletionResultType]::ParameterName, 'force-colorization')
53+ [CompletionResult]::new('-P', 'P', [CompletionResultType]::ParameterName, 'Alias for ''--paging=never''')
54+ [CompletionResult]::new('--no-paging', 'no-paging', [CompletionResultType]::ParameterName, 'Alias for ''--paging=never''')
55+ [CompletionResult]::new('--list-themes', 'list-themes', [CompletionResultType]::ParameterName, 'Display all supported highlighting themes.')
56+ [CompletionResult]::new('-L', 'L', [CompletionResultType]::ParameterName, 'Display all supported languages.')
57+ [CompletionResult]::new('--list-languages', 'list-languages', [CompletionResultType]::ParameterName, 'Display all supported languages.')
58+ [CompletionResult]::new('-u', 'u', [CompletionResultType]::ParameterName, 'u')
59+ [CompletionResult]::new('--unbuffered', 'unbuffered', [CompletionResultType]::ParameterName, 'unbuffered')
60+ [CompletionResult]::new('--no-config', 'no-config', [CompletionResultType]::ParameterName, 'Do not use the configuration file')
61+ [CompletionResult]::new('--no-custom-assets', 'no-custom-assets', [CompletionResultType]::ParameterName, 'Do not load custom assets')
62+ [CompletionResult]::new('--config-file', 'config-file', [CompletionResultType]::ParameterName, 'Show path to the configuration file.')
63+ [CompletionResult]::new('--generate-config-file', 'generate-config-file', [CompletionResultType]::ParameterName, 'Generates a default configuration file.')
64+ [CompletionResult]::new('--config-dir', 'config-dir', [CompletionResultType]::ParameterName, 'Show bat''s configuration directory.')
65+ [CompletionResult]::new('--cache-dir', 'cache-dir', [CompletionResultType]::ParameterName, 'Show bat''s cache directory.')
66+ [CompletionResult]::new('--diagnostic', 'diagnostic', [CompletionResultType]::ParameterName, 'Show diagnostic information for bug reports.')
67+ [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print this help message.')
68+ [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print this help message.')
69+ [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Show version information.')
70+ [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Show version information.')
71+ [CompletionResult]::new('cache', 'cache', [CompletionResultType]::ParameterValue, 'Modify the syntax-definition and theme cache')
72+ break
73+ }
74+ '{{PROJECT_EXECUTABLE}};cache' {
75+ [CompletionResult]::new('--source', 'source', [CompletionResultType]::ParameterName, 'Use a different directory to load syntaxes and themes from.')
76+ [CompletionResult]::new('--target', 'target', [CompletionResultType]::ParameterName, 'Use a different directory to store the cached syntax and theme set.')
77+ [CompletionResult]::new('-b', 'b', [CompletionResultType]::ParameterName, 'Initialize (or update) the syntax/theme cache.')
78+ [CompletionResult]::new('--build', 'build', [CompletionResultType]::ParameterName, 'Initialize (or update) the syntax/theme cache.')
79+ [CompletionResult]::new('-c', 'c', [CompletionResultType]::ParameterName, 'Remove the cached syntax definitions and themes.')
80+ [CompletionResult]::new('--clear', 'clear', [CompletionResultType]::ParameterName, 'Remove the cached syntax definitions and themes.')
81+ [CompletionResult]::new('--blank', 'blank', [CompletionResultType]::ParameterName, 'Create completely new syntax and theme sets (instead of appending to the default sets).')
82+ [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information')
83+ [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information')
84+ [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information')
85+ [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information')
86+ break
87+ }
88+ })
89+
90+ $completions.Where{ $_.CompletionText -like "$wordToComplete*" } |
91+ Sort-Object -Property ListItemText
92+}
assets/completions/bat.bash.innew file+101
@@ -0,0 +1,101 @@
1+# shellcheck disable=SC2207
2+
3+# Requires https://github.com/scop/bash-completion
4+
5+# Macs have bash3 for which the bash-completion package doesn't include
6+# _init_completion. This is a minimal version of that function.
7+__bat_init_completion()
8+{
9+ COMPREPLY=()
10+ _get_comp_words_by_ref "$@" cur prev words cword
11+}
12+
13+_bat() {
14+ local cur prev words cword split=false
15+ if declare -F _init_completion >/dev/null 2>&1; then
16+ _init_completion -s || return 0
17+ else
18+ __bat_init_completion -n "=" || return 0
19+ _split_longopt && split=true
20+ fi
21+
22+ if [[ ${words[1]-} == cache ]]; then
23+ case $prev in
24+ --source | --target)
25+ _filedir -d
26+ return 0
27+ ;;
28+ esac
29+ COMPREPLY=($(compgen -W "
30+ --build --clear --source --target --blank --help
31+ " -- "$cur"))
32+ return 0
33+ fi
34+
35+ case $prev in
36+ -l | --language)
37+ local IFS=$'\n'
38+ COMPREPLY=($(compgen -W "$(
39+ "$1" --list-languages | while IFS=: read -r lang _; do
40+ printf "%s\n" "$lang"
41+ done
42+ )" -- "$cur"))
43+ compopt -o filenames # for escaping
44+ return 0
45+ ;;
46+ -H | --highlight-line | --diff-context | --tabs | --terminal-width | \
47+ -m | --map-syntax | --style | --line-range | -h | --help | -V | \
48+ --version | --diagnostic | --config-file | --config-dir | \
49+ --cache-dir | --generate-config-file)
50+ # argument required but no completion available, or option
51+ # causes an exit
52+ return 0
53+ ;;
54+ --file-name)
55+ _filedir
56+ return 0
57+ ;;
58+ --wrap)
59+ COMPREPLY=($(compgen -W "auto never character" -- "$cur"))
60+ return 0
61+ ;;
62+ --color | --decorations | --paging)
63+ COMPREPLY=($(compgen -W "auto never always" -- "$cur"))
64+ return 0
65+ ;;
66+ --italic-text)
67+ COMPREPLY=($(compgen -W "always never" -- "$cur"))
68+ return 0
69+ ;;
70+ --pager)
71+ COMPREPLY=($(compgen -c -- "$cur"))
72+ return 0
73+ ;;
74+ --theme)
75+ local IFS=$'\n'
76+ COMPREPLY=($(compgen -W "$("$1" --list-themes)" -- "$cur"))
77+ compopt -o filenames # for escaping
78+ return 0
79+ ;;
80+ esac
81+
82+ $split && return 0
83+
84+ if [[ $cur == -* ]]; then
85+ COMPREPLY=($(compgen -W "
86+ --show-all --plain --language --highlight-line
87+ --file-name --diff --diff-context --tabs --wrap
88+ --terminal-width --number --color --italic-text
89+ --decorations --paging --pager --map-syntax --theme
90+ --list-themes --style --line-range --list-languages
91+ --help --version --force-colorization --unbuffered
92+ --diagnostic --config-file --config-dir --cache-dir
93+ --generate-config-file
94+ " -- "$cur"))
95+ return 0
96+ fi
97+
98+ _filedir
99+ ((cword == 1)) && COMPREPLY+=($(compgen -W cache -- "$cur"))
100+
101+} && complete -F _bat {{PROJECT_EXECUTABLE}}
assets/completions/bat.fish.in+4−2
@@ -34,7 +34,7 @@ complete -c {{PROJECT_EXECUTABLE}} -s H -l highlight-line -x -d "<N> Highlight t
3434
3535complete -c {{PROJECT_EXECUTABLE}} -l italic-text -xka "always never" -d "Specify when to use ANSI sequences for italic text (default: never)" -n "not __fish_seen_subcommand_from cache"
3636
37−complete -c {{PROJECT_EXECUTABLE}} -s l -l language -d "Set the language for syntax highlighting" -n "not __fish_seen_subcommand_from cache" -xa "(__{{PROJECT_EXECUTABLE}}_autocomplete_languages)"
37+complete -c {{PROJECT_EXECUTABLE}} -s l -l language -d "Set the language for syntax highlighting" -n "not __fish_seen_subcommand_from cache" -xa "(__{{PROJECT_EXECUTABLE}}_autocomplete_languages)"
3838
3939complete -c {{PROJECT_EXECUTABLE}} -s r -l line-range -x -d "<N:M> Only print the specified range of lines for each file" -n "not __fish_seen_subcommand_from cache"
4040
@@ -52,9 +52,11 @@ complete -c {{PROJECT_EXECUTABLE}} -l paging -xka "auto never always" -d "Specif
5252
5353complete -c {{PROJECT_EXECUTABLE}} -s p -l plain -d "Only show plain style, no decorations. Alias for '--style=plain'" -n "not __fish_seen_subcommand_from cache"
5454
55+complete -c {{PROJECT_EXECUTABLE}} -s P -d "Disable paging. Alias for '--paging=never'" -n "not __fish_seen_subcommand_from cache"
56+
5557complete -c {{PROJECT_EXECUTABLE}} -s A -l show-all -d "Show non-printable characters like space/tab/newline" -n "not __fish_seen_subcommand_from cache"
5658
57−complete -c {{PROJECT_EXECUTABLE}} -l style -xka "auto full plain changes header grid numbers" -d "Comma-separated list of style elements or presets to display with file contents" -n "not __fish_seen_subcommand_from cache"
59+complete -c {{PROJECT_EXECUTABLE}} -l style -xka "default auto full plain changes header header-filename header-filesize grid rule numbers snip" -d "Comma-separated list of style elements or presets to display with file contents" -n "not __fish_seen_subcommand_from cache"
5860
5961complete -c {{PROJECT_EXECUTABLE}} -l tabs -x -d "<T> Set the tab width to T spaces (width of 0 passes tabs through directly)" -n "not __fish_seen_subcommand_from cache"
6062
assets/completions/bat.zsh.innew file+99
@@ -0,0 +1,99 @@
1+#compdef {{PROJECT_EXECUTABLE}}
2+
3+local context state state_descr line
4+typeset -A opt_args
5+
6+(( $+functions[_{{PROJECT_EXECUTABLE}}_cache_subcommand] )) ||
7+_{{PROJECT_EXECUTABLE}}_cache_subcommand() {
8+ local -a args
9+ args=(
10+ '(-b --build -c --clear)'{-b,--build}'[Initialize or update the syntax/theme cache]'
11+ '(-b --build -c --clear)'{-c,--clear}'[Remove the cached syntax definitions and themes]'
12+ '(--source)'--source='[Use a different directory to load syntaxes and themes from]:directory:_files -/'
13+ '(--target)'--target='[Use a different directory to store the cached syntax and theme set]:directory:_files -/'
14+ '(--blank)'--blank'[Create completely new syntax and theme sets]'
15+ '(: -)'{-h,--help}'[Prints help information]'
16+ '*: :'
17+ )
18+
19+ _arguments -S -s $args
20+}
21+
22+(( $+functions[_{{PROJECT_EXECUTABLE}}_main] )) ||
23+_{{PROJECT_EXECUTABLE}}_main() {
24+ local -a args
25+ args=(
26+ '(-A --show-all)'{-A,--show-all}'[Show non-printable characters (space, tab, newline, ..)]'
27+ '*'{-p,--plain}'[Show plain style (alias for `--style=plain`), repeat twice to disable disable automatic paging (alias for `--paging=never`)]'
28+ '(-l --language)'{-l+,--language=}'[Set the language for syntax highlighting]:<language>:->language'
29+ '(-H --highlight-line)'{-H,--highlight-line}'[Highlight lines N through M]:<N\:M>...'
30+ '(--file-name)'--file-name'[Specify the name to display for a file]:<name>...:_files'
31+ '(-d --diff)'--diff'[Only show lines that have been added/removed/modified]'
32+ '(--diff-context)'--diff-context'[Include N lines of context around added/removed/modified lines when using `--diff`]:<N> (lines):()'
33+ '(--tabs)'--tabs'[Set the tab width to T spaces]:<T> (tab width):()'
34+ '(--wrap)'--wrap='[Specify the text-wrapping mode]:<when>:(auto never character)'
35+ '(--terminal-width)'--terminal-width'[Explicitly set the width of the terminal instead of determining it automatically]:<width>'
36+ '(-n --number)'{-n,--number}'[Show line numbers]'
37+ '(--color)'--color='[When to use colors]:<when>:(auto never always)'
38+ '(--italic-text)'--italic-text='[Use italics in output]:<when>:(always never)'
39+ '(--decorations)'--decorations='[When to show the decorations]:<when>:(auto never always)'
40+ '(--paging)'--paging='[Specify when to use the pager]:<when>:(auto never always)'
41+ '(-m --map-syntax)'{-m+,--map-syntax=}'[Use the specified syntax for files matching the glob pattern]:<glob\:syntax>...'
42+ '(--theme)'--theme='[Set the color theme for syntax highlighting]:<theme>:->theme'
43+ '(: --list-themes --list-languages -L)'--list-themes'[Display all supported highlighting themes]'
44+ '(--style)'--style='[Comma-separated list of style elements to display]:<components>:->style'
45+ '(-r --line-range)'{-r+,--line-range=}'[Only print the lines from N to M]:<N\:M>...'
46+ '(: --list-themes --list-languages -L)'{-L,--list-languages}'[Display all supported languages]'
47+ '(: --no-config)'--no-config'[Do not use the configuration file]'
48+ '(: --no-custom-assets)'--no-custom-assets'[Do not load custom assets]'
49+ '(: --config-dir)'--config-dir'[Show bat'"'"'s configuration directory]'
50+ '(: --config-file)'--config-file'[Show path to the configuration file]'
51+ '(: --generate-config-file)'--generate-config-file'[Generates a default configuration file]'
52+ '(: --cache-dir)'--cache-dir'[Show bat'"'"'s cache directory]'
53+ '(: -)'{-h,--help}'[Print this help message]'
54+ '(: -)'{-V,--version}'[Show version information]'
55+ '*: :_files'
56+ )
57+
58+ _arguments -S -s $args
59+
60+ case "$state" in
61+ language)
62+ local IFS=$'\n'
63+ local -a languages
64+ languages=( $({{PROJECT_EXECUTABLE}} --list-languages | awk -F':|,' '{ for (i = 1; i <= NF; ++i) printf("%s:%s\n", $i, $1) }') )
65+
66+ _describe 'language' languages
67+ ;;
68+
69+ theme)
70+ local IFS=$'\n'
71+ local -a themes
72+ themes=( $({{PROJECT_EXECUTABLE}} --list-themes | sort) )
73+
74+ _values 'theme' $themes
75+ ;;
76+
77+ style)
78+ _values -s , 'style' default auto full plain changes header header-filename header-filesize grid rule numbers snip
79+ ;;
80+ esac
81+}
82+
83+# first positional argument
84+if (( ${#words} == 2 )); then
85+ local -a subcommands
86+ subcommands=('cache:Modify the syntax-definition and theme cache')
87+ _describe subcommand subcommands
88+ _{{PROJECT_EXECUTABLE}}_main
89+else
90+ case $words[2] in
91+ cache)
92+ _{{PROJECT_EXECUTABLE}}_cache_subcommand
93+ ;;
94+
95+ *)
96+ _{{PROJECT_EXECUTABLE}}_main
97+ ;;
98+ esac
99+fi
assets/create.sh+25−9
@@ -1,11 +1,11 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
22set -euo pipefail
33
44ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55REPO_DIR="$ASSET_DIR/.."
66
77# Ensure submodules are initialized.
8−function update_submodules() {
8+update_submodules() {
99 local submodule
1010 local submodule_prompt=unspecified
1111 local submodule_path
@@ -42,12 +42,28 @@ fi
4242# Always remove the local cache to avoid any confusion
4343bat cache --clear
4444
45−# TODO: Remove this (and the reverse part below) when
46−# https://github.com/trishume/syntect/issues/222 has been fixed
47−JAVADOC_FILE="${ASSET_DIR}/syntaxes/Packages/Java/JavaDoc.sublime-syntax"
48−JAVADOC_PATCH="${ASSET_DIR}/JavaDoc.sublime-syntax.patch"
49−patch "$JAVADOC_FILE" "$JAVADOC_PATCH"
45+# TODO:
46+# - Remove the JavaDoc patch once https://github.com/trishume/syntect/issues/222 has been fixed
47+# - Remove the C# patch once https://github.com/sublimehq/Packages/pull/2331 has been merged
5048
51−bat cache --build --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
49+# Apply patches
50+(
51+ cd "$ASSET_DIR"
52+ for patch in patches/*.patch; do
53+ patch --strip=0 < "$patch"
54+ done
55+)
5256
53−patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"
57+reverse_patches() {
58+ (
59+ cd "$ASSET_DIR"
60+ for patch in patches/*.patch; do
61+ patch --strip=0 --reverse <"$patch"
62+ done
63+ )
64+}
65+
66+# Make sure to always reverse patches, even if the `bat cache` command fails or aborts
67+trap reverse_patches EXIT
68+
69+bat cache --build --blank --acknowledgements --source="$ASSET_DIR" --target="$ASSET_DIR"
assets/manual/bat.1.in+146−68
@@ -1,18 +1,23 @@
1−.TH {{PROJECT_EXECUTABLE | upcase}} "1"
1+.TH {{PROJECT_EXECUTABLE_UPPERCASE}} "1"
22.SH NAME
3−{{PROJECT_EXECUTABLE}} \- manual page for {{PROJECT_NAME}}
4−.SH DESCRIPTION
5−{{PROJECT_EXECUTABLE}} - a cat(1) clone with syntax highlighting and Git integration.
3+{{PROJECT_EXECUTABLE}} \- a cat(1) clone with syntax highlighting and Git integration.
64.SH "USAGE"
7−.IP
8−{{PROJECT_EXECUTABLE}} [OPTIONS] [FILE]...
9−.IP
10−{{PROJECT_EXECUTABLE}} <SUBCOMMAND>
5+.IP "{{PROJECT_EXECUTABLE}} [OPTIONS] [FILE]..."
6+.IP "{{PROJECT_EXECUTABLE}} cache [CACHE-OPTIONS] [--build|--clear]
7+.SH DESCRIPTION
8+{{PROJECT_EXECUTABLE}} prints the syntax-highlighted content of a collection of FILEs to the
9+terminal. If no FILE is specified, or when FILE is '-', it reads from standard input.
10+
11+{{PROJECT_EXECUTABLE}} supports a large number of programming and markup languages.
12+It also communicates with git(1) to show modifications with respect to the git index.
13+{{PROJECT_EXECUTABLE}} automatically pipes its output through a pager (by default: less).
14+
15+Whenever the output of {{PROJECT_EXECUTABLE}} goes to a non-interactive terminal, i.e. when the
16+output is piped into another process or into a file, {{PROJECT_EXECUTABLE}} will act as a drop-in
17+replacement for cat(1) and fall back to printing the plain file contents.
18+
1119.SH "OPTIONS"
12−.HP
13−General remarks
14−.IP
15−Command-line options like '-l'/'--language' that take values can be specified as
20+General remarks: Command-line options like '-l'/'--language' that take values can be specified as
1621either '--language value', '--language=value', '-l value' or '-lvalue'.
1722.HP
1823\fB\-A\fR, \fB\-\-show\-all\fR
@@ -33,78 +38,102 @@ specified as a name (like 'C++' or 'LaTeX') or possible file extension
3338(like 'cpp', 'hpp' or 'md'). Use '\-\-list\-languages' to show all supported
3439language names and file extensions.
3540.HP
36−\fB\-H\fR, \fB\-\-highlight\-line\fR <N>...
41+\fB\-H\fR, \fB\-\-highlight\-line\fR <N:M>...
42+.IP
43+Highlight the specified line ranges with a different background color. For example:
44+.RS
45+.IP "\-\-highlight\-line 40"
46+highlights line 40
47+.IP "\-\-highlight\-line 30:40"
48+highlights lines 30 to 40
49+.IP "\-\-highlight\-line :40"
50+highlights lines 1 to 40
51+.IP "\-\-highlight\-line 40:"
52+highlights lines 40 to the end of the file
53+.IP "\-\-highlight\-line 30:+10"
54+highlights lines 30 to 40
55+.RE
56+.HP
57+\fB\-\-file\-name\fR <name>...
58+.IP
59+Specify the name to display for a file. Useful when piping data to {{PROJECT_EXECUTABLE}} from STDIN when {{PROJECT_EXECUTABLE}} does not otherwise know the filename. Note that the provided file name is also used for syntax detection.
60+.HP
61+\fB\-d\fR, \fB\-\-diff\fR
62+.IP
63+Only show lines that have been added/removed/modified with respect to the Git index. Use '\-\-diff\-context=N' to control how much context you want to see.
64+.HP
65+\fB\-\-diff\-context\fR <N>...
3766.IP
38−Highlight the N\-th line with a different background color
67+Include N lines of context around added/removed/modified lines when using '\-\-diff'.
3968.HP
4069\fB\-\-tabs\fR <T>
4170.IP
42−Set the tab width to T spaces. Use a width of 0 to pass tabs through
43−directly
71+Set the tab width to T spaces. Use a width of 0 to pass tabs through directly
4472.HP
4573\fB\-\-wrap\fR <mode>
4674.IP
47−Specify the text\-wrapping mode (*auto*, never, character). The
48−\&'\-\-terminal\-width' option can be used in addition to control the output
49−width.
75+Specify the text\-wrapping mode (*auto*, never, character). The '\-\-terminal\-width' option
76+can be used in addition to control the output width.
5077.HP
5178\fB\-\-terminal\-width\fR <width>
5279.IP
53−Explicitly set the width of the terminal instead of determining it
54−automatically. If prefixed with '+' or '\-', the value will be treated as
55−an offset to the actual terminal width. See also: '\-\-wrap'.
80+Explicitly set the width of the terminal instead of determining it automatically. If
81+prefixed with '+' or '\-', the value will be treated as an offset to the actual terminal
82+width. See also: '\-\-wrap'.
5683.HP
5784\fB\-n\fR, \fB\-\-number\fR
5885.IP
59−Only show line numbers, no other decorations. This is an alias for
60−\&'\-\-style=numbers'
86+Only show line numbers, no other decorations. This is an alias for '\-\-style=numbers'
6187.HP
6288\fB\-\-color\fR <when>
6389.IP
64−Specify when to use colored output. The automatic mode only enables colors
65−if an interactive terminal is detected. Possible values: *auto*, never,
66−always.
90+Specify when to use colored output. The automatic mode only enables colors if an
91+interactive terminal is detected. Possible values: *auto*, never, always.
6792.HP
6893\fB\-\-italic\-text\fR <when>
6994.IP
70−Specify when to use ANSI sequences for italic text in the output. Possible
71−values: always, *never*.
95+Specify when to use ANSI sequences for italic text in the output. Possible values:
96+always, *never*.
7297.HP
7398\fB\-\-decorations\fR <when>
7499.IP
75−Specify when to use the decorations that have been specified via
76−\&'\-\-style'. The automatic mode only enables decorations if an interactive
77−terminal is detected. Possible values: *auto*, never, always.
100+Specify when to use the decorations that have been specified via '\-\-style'. The
101+automatic mode only enables decorations if an interactive terminal is detected. Possible
102+values: *auto*, never, always.
103+.HP
104+\fB\-f\fR, \fB\-\-force\-colorization\fR
105+.IP
106+Alias for '--decorations=always --color=always'. This is useful \
107+if the output of {{PROJECT_EXECUTABLE}} is piped to another program, but you want \
108+to keep the colorization/decorations.
78109.HP
79110\fB\-\-paging\fR <when>
80111.IP
81−Specify when to use the pager. To control which pager is used, set the
82−PAGER or BAT_PAGER environment variables (the latter takes precedence) or
83−use the '\-\-pager' option. To disable the pager permanently, set BAT_PAGER
84−to an empty string or set '\-\-paging=never' in the configuration file.
85−Possible values: *auto*, never, always.
112+Specify when to use the pager. To disable the pager, use \&'\-\-paging=never' or its alias,
113+\fB-P\fR. To disable the pager permanently, set BAT_PAGER to an empty string. To control
114+which pager is used, see the '\-\-pager' option. Possible values: *auto*, never, always.
86115.HP
87116\fB\-\-pager\fR <command>
88117.IP
89−Determine which pager is used. This option will overwrite the PAGER and
90−BAT_PAGER environment variables. The default pager is 'less'. To disable
91−the pager completely, use the '\-\-paging' option. Example: '\-\-pager "less
92−\fB\-RF\fR"'.
118+Determine which pager is used. This option will override the PAGER and BAT_PAGER
119+environment variables. The default pager is 'less'. To control when the pager is used, see
120+the '\-\-paging' option. Example: '\-\-pager "less \fB\-RF\fR"'.
121+
122+Note: By default, if the pager is set to 'less' (and no command-line options are specified), 'bat' will pass the following command line options to the pager: '-R'/'--RAW-CONTROL-CHARS', '-F'/'--quit-if-one-screen' and '-X'/'--no-init'. The last option ('-X') is only used for 'less' versions older than 530. The '-R' option is needed to interpret ANSI colors correctly. The second option ('-F') instructs less to exit immediately if the output size is smaller than the vertical size of the terminal. This is convenient for small files because you do not have to press 'q' to quit the pager. The third option ('-X') is needed to fix a bug with the '--quit-if-one-screen' feature in old versions of 'less'. Unfortunately, it also breaks mouse-wheel support in 'less'. If you want to enable mouse-wheel scrolling on older versions of 'less', you can pass just '-R' (as in the example above, this will disable the quit-if-one-screen feature). For less 530 or newer, it should work out of the box.
93123.HP
94−\fB\-m\fR, \fB\-\-map\-syntax\fR <from:to>...
124+\fB\-m\fR, \fB\-\-map\-syntax\fR <glob-pattern:syntax-name>...
95125.IP
96−Map a file extension or file name to an existing syntax (specified by a
97−file extension or file name). For example, to
98−highlight *.build files with the Python syntax, use '\-m build:py'. To
99−highlight files named '.myignore' with the Git Ignore syntax, use '\-m
100−\&.myignore:gitignore'.
126+Map a glob pattern to an existing syntax name. The glob pattern is matched on the full
127+path and the filename. For example, to highlight *.build files with the Python syntax,
128+use -m '*.build:Python'. To highlight files named '.myignore' with the Git Ignore
129+syntax, use -m '.myignore:Git Ignore'.
130+Note that the right-hand side is the *name* of the syntax, not a file extension.
101131.HP
102132\fB\-\-theme\fR <theme>
103133.IP
104−Set the theme for syntax highlighting. Use '\-\-list\-themes' to see all
105−available themes. To set a default theme, add the '\-\-theme="..."' option
106−to the configuration file or export the BAT_THEME environment variable
107−(e.g.: export BAT_THEME="...").
134+Set the theme for syntax highlighting. Use '\-\-list\-themes' to see all available themes.
135+To set a default theme, add the '\-\-theme="..."' option to the configuration file or
136+export the BAT_THEME environment variable (e.g.: export BAT_THEME="...").
108137.HP
109138\fB\-\-list\-themes\fR
110139.IP
@@ -112,13 +141,13 @@ Display a list of supported themes for syntax highlighting.
112141.HP
113142\fB\-\-style\fR <style\-components>
114143.IP
115−Configure which elements (line numbers, file headers, grid borders, Git
116−modifications, ..) to display in addition to the file contents. The
117−argument is a comma\-separated list of components to display (e.g.
118−\&'numbers,changes,grid') or a pre\-defined style ('full'). To set a default
119−style, add the '\-\-style=".."' option to the configuration file or export
120−the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). Possible
121−values: *auto*, full, plain, changes, header, grid, numbers, snip.
144+Configure which elements (line numbers, file headers, grid borders, Git modifications,
145+\&..) to display in addition to the file contents. The argument is a comma\-separated list
146+of components to display (e.g. 'numbers,changes,grid') or a pre\-defined style ('full').
147+To set a default style, add the '\-\-style=".."' option to the configuration file or
148+export the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). Possible
149+values: *default*, full, auto, plain, changes, header, header-filename, header-filesize, grid,
150+rule, numbers, snip.
122151.HP
123152\fB\-r\fR, \fB\-\-line\-range\fR <N:M>...
124153.IP
@@ -130,6 +159,8 @@ prints lines 30 to 40
130159prints lines 1 to 40
131160.IP "\-\-line\-range 40:"
132161prints lines 40 to the end of the file
162+.IP "\-\-line\-range 30:+10"
163+prints lines 30 to 40
133164.RE
134165.HP
135166\fB\-L\fR, \fB\-\-list\-languages\fR
@@ -138,8 +169,8 @@ Display a list of supported languages for syntax highlighting.
138169.HP
139170\fB\-u\fR, \fB\-\-unbuffered\fR
140171.IP
141−This option exists for POSIX\-compliance reasons ('u' is for 'unbuffered').
142−The output is always unbuffered \- this option is simply ignored.
172+This option exists for POSIX\-compliance reasons ('u' is for 'unbuffered'). The output is
173+always unbuffered \- this option is simply ignored.
143174.HP
144175\fB\-h\fR, \fB\-\-help\fR
145176.IP
@@ -148,13 +179,60 @@ Print this help message.
148179\fB\-V\fR, \fB\-\-version\fR
149180.IP
150181Show version information.
151−.SH "ARGS"
152−.IP
153−<FILE>...
182+.SH "POSITIONAL ARGUMENTS"
183+.HP
184+\fB<FILE>...\fR
154185.IP
155−File(s) to print / concatenate. Use a dash ('\-') or no argument at all to read
156−from standard input.
186+Files to print and concatenate. Use a dash ('\-') or no argument at all to read from
187+standard input.
157188.SH "SUBCOMMANDS"
158−.IP
159−cache
160−Modify the syntax\-definition and theme cache
189+.HP
190+\fBcache\fR - Modify the syntax\-definition and theme cache.
191+.SH "FILES"
192+{{PROJECT_EXECUTABLE}} can also be customized with a configuration file. The location of the file
193+is dependent on your operating system. To get the default path for your system, call:
194+
195+\fB{{PROJECT_EXECUTABLE}} --config-file\fR
196+
197+Alternatively, you can use the BAT_CONFIG_PATH environment variable to point {{PROJECT_EXECUTABLE}} to a non-default
198+location of the configuration file.
199+
200+To generate a default configuration file, call:
201+
202+\fB{{PROJECT_EXECUTABLE}} --generate-config-file\fR
203+.SH "ADDING CUSTOM LANGUAGES"
204+{{PROJECT_EXECUTABLE}} supports Sublime Text \fB.sublime-syntax\fR language files, and can be
205+customized to add additional languages to your local installation. To do this, add the \fB.sublime-syntax\fR language
206+files to `\fB$({{PROJECT_EXECUTABLE}} --config-dir)/syntaxes\fR` and run `\fB{{PROJECT_EXECUTABLE}} cache --build\fR`.
207+
208+\fBExample:\fR
209+
210+.RS 0.5i
211+mkdir -p "$({{PROJECT_EXECUTABLE}} --config-dir)/syntaxes"
212+.br
213+cd "$({{PROJECT_EXECUTABLE}} --config-dir)/syntaxes"
214+
215+# Put new '.sublime-syntax' language definition files
216+.br
217+# in this folder (or its subdirectories), for example:
218+.br
219+git clone https://github.com/tellnobody1/sublime-purescript-syntax
220+
221+# And then build the cache.
222+.br
223+{{PROJECT_EXECUTABLE}} cache --build
224+.RE
225+
226+Once the cache is built, the new language will be visible in `\fB{{PROJECT_EXECUTABLE}} --list-languages\fR`.
227+.br
228+If you ever want to remove the custom languages, you can clear the cache with `\fB{{PROJECT_EXECUTABLE}} cache --clear\fR`.
229+
230+.SH "ADDING CUSTOM THEMES"
231+Similarly to custom languages, {{PROJECT_EXECUTABLE}} supports Sublime Text \fB.tmTheme\fR themes.
232+These can be installed to `\fB$({{PROJECT_EXECUTABLE}} --config-dir)/themes\fR`, and are added to the cache with
233+`\fB{{PROJECT_EXECUTABLE}} cache --build`.
234+.SH "MORE INFORMATION"
235+
236+For more information and up-to-date documentation, visit the {{PROJECT_EXECUTABLE}} repo:
237+.br
238+\fBhttps://github.com/sharkdp/bat\fR
assets/patches/C#.sublime-syntax.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git syntaxes/01_Packages/C#/C#.sublime-syntax syntaxes/01_Packages/C#/C#.sublime-syntax
2+index ed494f8b..01b710e8 100644
3+--- syntaxes/01_Packages/C#/C#.sublime-syntax
4++++ syntaxes/01_Packages/C#/C#.sublime-syntax
5+@@ -1312,7 +1312,7 @@ contexts:
6+ 2: punctuation.separator.cs
7+ 3: punctuation.section.brackets.end.cs
8+ 4: keyword.operator.pointer.cs
9+- - match: \((?=(?:[^,)(]*|\([^\)]*\))*,)
10++ - match: \((?=(?:[^,)(]|\([^\)]*\))*,)
11+ scope: punctuation.section.group.begin.cs
12+ push:
13+ - meta_scope: meta.group.tuple.cs
assets/patches/Groff.sublime-syntax.patchnew file+16
@@ -0,0 +1,16 @@
1+diff --git syntaxes/02_Extra/Groff/Man Page/Man Page.sublime-syntax syntaxes/02_Extra/Groff/Man Page/Man Page.sublime-syntax
2+index 57834af..6648664 100644
3+--- syntaxes/02_Extra/Groff/Man Page/Man Page.sublime-syntax
4++++ syntaxes/02_Extra/Groff/Man Page/Man Page.sublime-syntax
5+@@ -4,9 +4,9 @@
6+ # - man-pages(7)
7+ # - groff(7)
8+ ---
9+-name: Man Page (groff/troff)
10++name: Groff/troff
11+ scope: text.groff
12+-file_extensions: [man, groff, troff, '1', '2', '3', '4', '5', '6', '7']
13++file_extensions: [groff, troff, '1', '2', '3', '4', '5', '6', '7', '8', '9']
14+
15+ contexts:
16+ main:
assets/JavaDoc.sublime-syntax.patch → assets/patches/JavaDoc.sublime-syntax.patchrenamed+3−3
@@ -1,7 +1,7 @@
1−diff --git syntaxes/Packages/Java/JavaDoc.sublime-syntax syntaxes/Packages/Java/JavaDoc.sublime-syntax
1+diff --git syntaxes/01_Packages/Java/JavaDoc.sublime-syntax syntaxes/01_Packages/Java/JavaDoc.sublime-syntax
22index 422a6a9..40a741e 100644
3−--- syntaxes/Packages/Java/JavaDoc.sublime-syntax
4−+++ syntaxes/Packages/Java/JavaDoc.sublime-syntax
3+--- syntaxes/01_Packages/Java/JavaDoc.sublime-syntax
4++++ syntaxes/01_Packages/Java/JavaDoc.sublime-syntax
55@@ -13,7 +13,7 @@ variables:
66 contexts:
77 prototype:
assets/patches/Makefile.sublime-syntax.patchnew file+81
@@ -0,0 +1,81 @@
1+diff --git syntaxes/01_Packages/Makefile/Makefile.sublime-syntax syntaxes/01_Packages/Makefile/Makefile.sublime-syntax
2+index 3cc3a97e..0c7a3f24 100644
3+--- syntaxes/01_Packages/Makefile/Makefile.sublime-syntax
4++++ syntaxes/01_Packages/Makefile/Makefile.sublime-syntax
5+@@ -44,64 +44,50 @@ variables:
6+ # variable substitutions anywhere. We try to remedy this by hacking in a
7+ # regex that matches up to four levels of nested parentheses, and ignores
8+ # whatever's inside the parentheses.
9+- nps: '[^()]*'
10+- open: '(?:\('
11+- close: '\))?' # ignore this invalid.illegal
12++ nps_unnested: '[^()]*'
13++ nps: '[^()]*(?=[()])'
14++ open: '(?:{{nps}}\('
15++ close: '\){{nps_unnested}})?' # ignore this invalid.illegal
16+ just_eat: | # WARNING: INSANITY FOLLOWS!
17+- (?x) # ignore whitespace in this regex
18+- {{nps}} # level 0
19++ (?x)(?: # ignore whitespace in this regex
20+ {{open}} # start level 1 __
21+- {{nps}} # level 1 _______ /*_>-<
22+ {{open}} # start level 2 ___/ _____ \__/ /
23+- {{nps}} # level 2 <____/ \____/
24+ {{open}} # start level 3 is like snek... (by Valerie Haecky)
25+- {{nps}} # level 3
26+ {{open}} # start level 4
27+ {{nps}} # level 4
28+ {{close}} # end level 4
29+- {{nps}} # level 3
30+ {{close}} # end level 3
31+- {{nps}} # level 2
32+ {{open}} # start level 3
33+- {{nps}} # level 3
34+ {{open}} # start level 4
35+ {{nps}} # level 4
36+ {{close}} # end level 4
37+- {{nps}} # level 3
38+ {{close}} # end level 3
39+- {{nps}} # level 2
40++ {{nps}}
41+ {{close}} # end level 2
42+- {{nps}} # level 1
43+ {{open}} # start level 2
44+- {{nps}} # level 2
45+ {{open}} # start level 3
46+- {{nps}} # level 3
47+ {{open}} # start level 4
48+ {{nps}} # level 4
49+ {{close}} # end level 4
50+- {{nps}} # level 3
51++ {{nps}}
52+ {{close}} # end level 3
53+- {{nps}} # level 2
54+ {{open}} # start level 3
55+- {{nps}} # level 3
56+ {{open}} # start level 4
57+ {{nps}} # level 4
58+ {{close}} # end level 4
59+- {{nps}} # level 3
60++ {{nps}}
61+ {{close}} # end level 3
62+- {{nps}} # level 2
63+ {{open}} # start level 3
64+- {{nps}} # level 3
65+ {{open}} # start level 4
66+ {{nps}} # level 4
67+ {{close}} # end level 4
68+- {{nps}} # level 3
69++ {{nps}}
70+ {{close}} # end level 3
71+- {{nps}} # level 2
72++ {{nps}}
73+ {{close}} # end level 2
74+- {{nps}} # level 1
75++ {{nps}}
76+ {{close}} # end level 1
77+- {{nps}} # level 0
78++ |{{nps_unnested}})
79+ rule_lookahead: '{{just_eat}}{{ruleassign}}{{just_eat}}'
80+
81+ var_lookahead_base: '{{just_eat}}({{varassign}}|{{shellassign}}){{just_eat}}'
assets/patches/Markdown.sublime-syntax.patchnew file+177
@@ -0,0 +1,177 @@
1+diff --git syntaxes/01_Packages/Markdown/Markdown.sublime-syntax syntaxes/01_Packages/Markdown/Markdown.sublime-syntax
2+index 19dc685d..44440c7f 100644
3+--- syntaxes/01_Packages/Markdown/Markdown.sublime-syntax
4++++ syntaxes/01_Packages/Markdown/Markdown.sublime-syntax
5+@@ -24,7 +24,6 @@ variables:
6+ )
7+ [ \t]*$ # followed by any number of tabs or spaces, followed by the end of the line
8+ )
9+- setext_escape: ^(?=\s{0,3}(?:---+|===+)\s*$)
10+ block_quote: (?:[ ]{,3}>(?:.|$)) # between 0 and 3 spaces, followed by a greater than sign, followed by any character or the end of the line
11+ atx_heading: (?:[#]{1,6}\s*) # between 1 and 6 hashes, followed by any amount of whitespace
12+ indented_code_block: (?:[ ]{4}|\t) # 4 spaces or a tab
13+@@ -277,69 +276,40 @@ contexts:
14+ 8: markup.underline.link.markdown
15+ push: [link-ref-def, after-link-title, link-title]
16+ - match: '^(?=\S)(?![=-]{3,}\s*$)'
17+- branch_point: heading2-branch
18+- branch:
19+- - not-heading2
20+- - heading2
21+-
22+- not-paragraph:
23+- - match: |-
24+- (?x) # pop out of this context when one of the following conditions are met:
25+- ^(?:
26+- \s*$ # the line is blank (or only contains whitespace)
27+- | (?=
28+- {{block_quote}} # a block quote begins the line
29+- | [ ]{,3}[*+-][ ] # an unordered list item begins the line
30+- | [ ]{,3}1[.][ ] # an ordered list item with number "1" begins the line
31+- | \# # an ATX heading begins the line
32+- | [ ]{,3}<( # all types of HTML blocks except type 7 may interrupt a paragraph
33+- {{html_tag_block_end_at_close_tag}} # 1
34+- | !-- # 2
35+- | \? # 3
36+- | ![A-Z] # 4
37+- | !\[CDATA\[ # 5
38+- | {{html_tag_block_end_at_blank_line}} # 6
39++ push:
40++ - meta_scope: meta.paragraph.markdown
41++ - match: |-
42++ (?x) # pop out of this context when one of the following conditions are met:
43++ ^(?:
44++ \s*$ # the line is blank (or only contains whitespace)
45++ | (?=
46++ {{block_quote}} # a block quote begins the line
47++ | [ ]{,3}[*+-][ ] # an unordered list item begins the line
48++ | [ ]{,3}1[.][ ] # an ordered list item with number "1" begins the line
49++ | \# # an ATX heading begins the line
50++ | [ ]{,3}<( # all types of HTML blocks except type 7 may interrupt a paragraph
51++ {{html_tag_block_end_at_close_tag}} # 1
52++ | !-- # 2
53++ | \? # 3
54++ | ![A-Z] # 4
55++ | !\[CDATA\[ # 5
56++ | {{html_tag_block_end_at_blank_line}} # 6
57++ )
58+ )
59+ )
60+- )
61+- pop: true
62+-
63+- not-heading2:
64+- - include: not-paragraph
65+- - match: (?=\S)
66+- branch_point: heading1-branch
67+- branch:
68+- - paragraph
69+- - heading1
70+- - match: ''
71+- pop: true
72+-
73+- paragraph:
74+- - meta_scope: meta.paragraph.markdown
75+- - match: ^\s{0,3}===+\s*$
76+- fail: heading1-branch
77+- - match: ^\s{0,3}---+\s*$
78+- fail: heading2-branch
79+- - include: not-paragraph
80+- - include: inline-bold-italic-linebreak
81+- - include: scope:text.html.basic
82+-
83+- heading1:
84+- - meta_scope: markup.heading.1.markdown
85+- - include: inline-bold-italic-linebreak
86+- - match: '^[ \t]{0,3}(={3,})(?=[ \t]*$)'
87+- captures:
88+- 1: markup.heading.1.setext.markdown punctuation.definition.heading.setext.markdown
89+- pop: true
90+-
91+- heading2:
92+- - meta_scope: markup.heading.2.markdown
93+- - include: inline-bold-italic-linebreak
94+- - match: '^[ \t]{0,3}(-{3,})(?=[ \t]*$)'
95+- captures:
96+- 1: markup.heading.2.setext.markdown punctuation.definition.heading.setext.markdown
97+- pop: true
98+-
99++ pop: true
100++ - include: inline-bold-italic-linebreak
101++ - include: scope:text.html.basic
102++ - match: '^(={3,})(?=[ \t]*$)'
103++ scope: markup.heading.1.setext.markdown
104++ captures:
105++ 1: punctuation.definition.heading.setext.markdown
106++ pop: true
107++ - match: '^(-{3,})(?=[ \t]*$)'
108++ scope: markup.heading.2.setext.markdown
109++ captures:
110++ 1: punctuation.definition.heading.setext.markdown
111++ pop: true
112+ link-ref-def:
113+ - meta_scope: meta.link.reference.def.markdown
114+ - match: ''
115+@@ -430,8 +400,6 @@ contexts:
116+ push:
117+ - meta_scope: markup.bold.markdown
118+ - meta_content_scope: markup.italic.markdown
119+- - match: '{{setext_escape}}'
120+- pop: true
121+ - match: |-
122+ (?x)
123+ [ \t]*\*{4,} # if there are more than 3 its not applicable to be bold or italic
124+@@ -446,8 +414,6 @@ contexts:
125+ scope: punctuation.definition.bold.end.markdown
126+ set:
127+ - meta_content_scope: markup.italic.markdown
128+- - match: '{{setext_escape}}'
129+- pop: true
130+ - match: |-
131+ (?x)
132+ [ \t]*\*{3,} # if there are more than 3 its not applicable to be bold or italic
133+@@ -463,8 +429,6 @@ contexts:
134+ scope: punctuation.definition.italic.end.markdown
135+ set:
136+ - meta_content_scope: markup.bold.markdown
137+- - match: '{{setext_escape}}'
138+- pop: true
139+ - match: |-
140+ (?x)
141+ [ \t]*\*{3,} # if there are more than 3 its not applicable to be bold or italic
142+@@ -727,8 +691,6 @@ contexts:
143+ scope: punctuation.definition.italic.begin.markdown
144+ push:
145+ - meta_scope: markup.italic.markdown
146+- - match: '{{setext_escape}}'
147+- pop: true
148+ - match: |-
149+ (?x)
150+ [ \t]*\*{4,} # if there are more than 3 its not applicable to be bold or italic
151+@@ -745,8 +707,6 @@ contexts:
152+ scope: punctuation.definition.italic.begin.markdown
153+ push:
154+ - meta_scope: markup.italic.markdown
155+- - match: '{{setext_escape}}'
156+- pop: true
157+ - match: |-
158+ (?x)
159+ [ \t]*_{4,} # if there are more than 3 its not applicable to be bold or italic
160+@@ -773,8 +733,6 @@ contexts:
161+ - include: bold-italic-trailing
162+ bold-italic-trailing:
163+ - include: scope:text.html.basic
164+- - match: '{{setext_escape}}'
165+- pop: true
166+ - match: ^\s*$\n?
167+ scope: invalid.illegal.non-terminated.bold-italic.markdown
168+ pop: true
169+@@ -1152,7 +1110,7 @@ contexts:
170+ - match: |-
171+ (?x)
172+ {{fenced_code_block_start}}
173+- ((?i:rust))
174++ ((?i:rust|rs))
175+ {{fenced_code_block_trailing_infostring_characters}}
176+ captures:
177+ 0: meta.code-fence.definition.begin.rust.markdown-gfm
assets/patches/MediaWiki.sublime-syntax.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git syntaxes/02_Extra/MediaWiki/MediawikiNG.sublime-syntax syntaxes/02_Extra/MediaWiki/MediawikiNG.sublime-syntax
2+index f542c9e..8eaf020 100644
3+--- syntaxes/02_Extra/MediaWiki/MediawikiNG.sublime-syntax
4++++ syntaxes/02_Extra/MediaWiki/MediawikiNG.sublime-syntax
5+@@ -1,7 +1,7 @@
6+ %YAML 1.2
7+ ---
8+ # http://www.sublimetext.com/docs/3/syntax.html
9+-name: Mediawiki NG
10++name: MediaWiki
11+ file_extensions: [mediawiki, wikipedia, wiki]
12+ scope: text.html.mediawiki
13+
assets/patches/Monokai-Extended.tmTheme.patchnew file+36
@@ -0,0 +1,36 @@
1+diff --git themes/sublime-monokai-extended/Monokai\ Extended.tmTheme themes/sublime-monokai-extended/Monokai\ Extended.tmTheme
2+index 9c2aa3e..180cbbf 100644
3+--- themes/sublime-monokai-extended/Monokai Extended.tmTheme
4++++ themes/sublime-monokai-extended/Monokai Extended.tmTheme
5+@@ -810,11 +810,11 @@
6+ <key>name</key>
7+ <string>JSON String</string>
8+ <key>scope</key>
9+- <string>meta.structure.dictionary.json string.quoted.double.json</string>
10++ <string>meta.mapping.key.json string.quoted.double.json, punctuation.separator.sequence.csv</string>
11+ <key>settings</key>
12+ <dict>
13+ <key>foreground</key>
14+- <string>#cfcfc2</string>
15++ <string>#fd971f</string>
16+ </dict>
17+ </dict>
18+ <dict>
19+@@ -1027,7 +1027,7 @@
20+ <key>name</key>
21+ <string>Invalid</string>
22+ <key>scope</key>
23+- <string>invalid</string>
24++ <string>invalid, markup.error</string>
25+ <key>settings</key>
26+ <dict>
27+ <key>background</key>
28+@@ -1042,7 +1042,7 @@
29+ <key>name</key>
30+ <string>Invalid deprecated</string>
31+ <key>scope</key>
32+- <string>invalid.deprecated</string>
33++ <string>invalid.deprecated, markup.warning</string>
34+ <key>settings</key>
35+ <dict>
36+ <key>background</key>
assets/patches/Python.sublime-syntax.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git syntaxes/01_Packages/Python/Python.sublime-syntax syntaxes/01_Packages/Python/Python.sublime-syntax
2+index 2acd86d8..86257f7b 100644
3+--- syntaxes/01_Packages/Python/Python.sublime-syntax
4++++ syntaxes/01_Packages/Python/Python.sublime-syntax
5+@@ -988,10 +988,6 @@ contexts:
6+ - match: \}
7+ scope: punctuation.section.mapping-or-set.end.python
8+ set: after-expression
9+- - match: (?={{simple_expression}}:|\s*\*\*)
10+- set: inside-dictionary
11+- - match: (?={{simple_expression}}[,}]|\s*\*)
12+- set: inside-set
13+ - match: ','
14+ scope: punctuation.separator.set.python
15+ set: inside-set
assets/patches/Rust.sublime-syntax.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git syntaxes/01_Packages/Rust/Rust.sublime-syntax syntaxes/01_Packages/Rust/Rust.sublime-syntax
2+index 3c354486..24727a4e 100644
3+--- syntaxes/01_Packages/Rust/Rust.sublime-syntax
4++++ syntaxes/01_Packages/Rust/Rust.sublime-syntax
5+@@ -907,6 +907,8 @@ contexts:
6+ - include: type-any-identifier
7+ - match: ':'
8+ scope: punctuation.separator.rust
9++ - match: (?=;)
10++ pop: true
11+
12+ fn-body:
13+ - meta_scope: meta.function.rust
assets/patches/ShellScript.sublime-syntax.patchnew file+20
@@ -0,0 +1,20 @@
1+diff --git syntaxes/01_Packages/ShellScript/Bash.sublime-syntax syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
2+index e973e319..07c170a7 100644
3+--- syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
4++++ syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
5+@@ -30,12 +30,12 @@ file_extensions:
6+ - .zshenv
7+ - .zshrc
8+ - PKGBUILD # https://jlk.fjfi.cvut.cz/arch/manpages/man/PKGBUILD.5
9+- - .ebuild
10+- - .eclass
11++ - ebuild
12++ - eclass
13+
14+ first_line_match: |
15+ (?x)
16+- ^\#! .* \b(bash|zsh|sh|tcsh|ash)\b
17++ ^\#! .* \b(bash|zsh|sh|tcsh|ash|dash)\b
18+ | ^\# \s* -\*- [^*]* mode: \s* shell-script [^*]* -\*-
19+
20+ #-------------------------------------------------------------------------------
assets/patches/XML.sublime-syntax.patchnew file+12
@@ -0,0 +1,12 @@
1+diff --git syntaxes/01_Packages/XML/XML.sublime-syntax syntaxes/01_Packages/XML/XML.sublime-syntax
2+index ad7d9c87..af4a00f0 100644
3+--- syntaxes/01_Packages/XML/XML.sublime-syntax
4++++ syntaxes/01_Packages/XML/XML.sublime-syntax
5+@@ -12,6 +12,7 @@ file_extensions:
6+ - rss
7+ - opml
8+ - svg
9++ - xaml
10+ first_line_match: |-
11+ (?x:
12+ ^(?:
assets/syntaxes.bin

Binary file not shown.

assets/syntaxes/01_Packagesnew file+1

Submodule changed.

assets/syntaxes/02_Extra/AWKnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Apachenew file+1

Submodule changed.

assets/syntaxes/02_Extra/Apache.sublime-syntaxnew file+221
@@ -0,0 +1,221 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Apache Conf
5+file_extensions:
6+ - envvars
7+ - htaccess
8+ - HTACCESS
9+ - htgroups
10+ - HTGROUPS
11+ - htpasswd
12+ - HTPASSWD
13+ - .htaccess
14+ - .HTACCESS
15+ - .htgroups
16+ - .HTGROUPS
17+ - .htpasswd
18+ - .HTPASSWD
19+scope: source.apacheconf
20+contexts:
21+ main:
22+ - match: ^(\s)*(#).*$\n?
23+ scope: comment.line.hash.ini
24+ captures:
25+ 1: punctuation.definition.comment.apacheconf
26+ - match: (<)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(\s(.+?))?(>)
27+ captures:
28+ 1: punctuation.definition.tag.apacheconf
29+ 2: entity.tag.apacheconf
30+ 4: string.value.apacheconf
31+ 5: punctuation.definition.tag.apacheconf
32+ - match: (</)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(>)
33+ captures:
34+ 1: punctuation.definition.tag.apacheconf
35+ 2: entity.tag.apacheconf
36+ 3: punctuation.definition.tag.apacheconf
37+ - match: (?<=(Rewrite(Rule|Cond)))\s+(.+?)\s+(.+?)($|\s)
38+ captures:
39+ 3: string.regexp.apacheconf
40+ 4: string.replacement.apacheconf
41+ - match: (?<=RedirectMatch)(\s+(\d\d\d|permanent|temp|seeother|gone))?\s+(.+?)\s+((.+?)($|\s))?
42+ captures:
43+ 2: entity.status.apacheconf
44+ 3: string.regexp.apacheconf
45+ 5: string.path.apacheconf
46+ - match: (?<=Redirect)(\s+(\d\d\d|permanent|temp|seeother|gone))?\s+(.+?)\s+((.+?)($|\s))?
47+ captures:
48+ 2: entity.status.apacheconf
49+ 3: string.path.apacheconf
50+ 5: string.path.apacheconf
51+ - match: (?<=ScriptAliasMatch|AliasMatch)\s+(.+?)\s+((.+?)\s)?
52+ captures:
53+ 1: string.regexp.apacheconf
54+ 3: string.path.apacheconf
55+ - match: (?<=RedirectPermanent|RedirectTemp|ScriptAlias|Alias)\s+(.+?)\s+((.+?)($|\s))?
56+ captures:
57+ 1: string.path.apacheconf
58+ 3: string.path.apacheconf
59+ - match: \b(AcceptPathInfo|AccessFileName|AddDefaultCharset|AddOutputFilterByType|AllowEncodedSlashes|AllowOverride|AuthName|AuthType|CGIMapExtension|ContentDigest|DefaultType|Define|DocumentRoot|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|FileETag|ForceType|HostnameLookups|IdentityCheck|Include(Optional)?|KeepAlive|KeepAliveTimeout|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine|LimitXMLRequestBody|LogLevel|MaxKeepAliveRequests|Mutex|NameVirtualHost|Options|Require|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScriptInterpreterSource|ServerAdmin|ServerAlias|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetHandler|SetInputFilter|SetOutputFilter|Time(O|o)ut|TraceEnable|UseCanonicalName|Use|ErrorLogFormat|GlobalLog|PHPIniDir|SSLHonorCipherOrder|SSLCompression|SSLUseStapling|SSLStapling\w+|SSLCARevocationCheck|SSLSRPVerifierFile|SSLSessionTickets|RequestReadTimeout|ProxyHTML\w+|MaxRanges)\b
60+ captures:
61+ 1: keyword.core.apacheconf
62+ - match: \b(AcceptMutex|AssignUserID|BS2000Account|ChildPerUserID|CoreDumpDirectory|EnableExceptionHook|Group|Listen|ListenBacklog|LockFile|MaxClients|MaxConnectionsPerChild|MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxRequestWorkers|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MinSpareServers|MinSpareThreads|NumServers|PidFile|ReceiveBufferSize|ScoreBoardFile|SendBufferSize|ServerLimit|StartServers|StartThreads|ThreadLimit|ThreadsPerChild|ThreadStackSize|User|Win32DisableAcceptEx)\b
63+ captures:
64+ 1: keyword.mpm.apacheconf
65+ - match: \b(Allow|Deny|Order)\b
66+ captures:
67+ 1: keyword.access.apacheconf
68+ - match: \b(Action|Script)\b
69+ captures:
70+ 1: keyword.actions.apacheconf
71+ - match: \b(Alias|AliasMatch|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ScriptAlias|ScriptAliasMatch)\b
72+ captures:
73+ 1: keyword.alias.apacheconf
74+ - match: \b(AuthAuthoritative|AuthGroupFile|AuthUserFile|AuthBasicProvider|AuthBasicFake|AuthBasicAuthoritative|AuthBasicUseDigestAlgorithm)\b
75+ captures:
76+ 1: keyword.auth.apacheconf
77+ - match: \b(Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID|Anonymous_VerifyEmail)\b
78+ captures:
79+ 1: keyword.auth_anon.apacheconf
80+ - match: \b(AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile)\b
81+ captures:
82+ 1: keyword.auth_dbm.apacheconf
83+ - match: \b(AuthDigestAlgorithm|AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize|AuthDigestProvider)\b
84+ captures:
85+ 1: keyword.auth_digest.apacheconf
86+ - match: \b(AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases|AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl)\b
87+ captures:
88+ 1: keyword.auth_ldap.apacheconf
89+ - match: \b(AddAlt|AddAltByEncoding|AddAltByType|AddDescription|AddIcon|AddIconByEncoding|AddIconByType|DefaultIcon|HeaderName|IndexIgnore|IndexOptions|IndexOrderDefault|IndexStyleSheet|IndexHeadInsert|ReadmeName)\b
90+ captures:
91+ 1: keyword.autoindex.apacheconf
92+ - match: \b(BalancerMember|BalancerGrowth|BalancerPersist|BalancerInherit)\b
93+ captures:
94+ 1: keyword.filter.apacheconf
95+ - match: \b(CacheDefaultExpire|CacheDisable|CacheEnable|CacheForceCompletion|CacheIgnoreCacheControl|CacheIgnoreHeaders|CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire)\b
96+ captures:
97+ 1: keyword.cache.apacheconf
98+ - match: \b(MetaDir|MetaFiles|MetaSuffix)\b
99+ captures:
100+ 1: keyword.cern_meta.apacheconf
101+ - match: \b(ScriptLog|ScriptLogBuffer|ScriptLogLength)\b
102+ captures:
103+ 1: keyword.cgi.apacheconf
104+ - match: \b(ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock)\b
105+ captures:
106+ 1: keyword.cgid.apacheconf
107+ - match: \b(CharsetDefault|CharsetOptions|CharsetSourceEnc)\b
108+ captures:
109+ 1: keyword.charset_lite.apacheconf
110+ - match: \b(Dav|DavDepthInfinity|DavMinTimeout|DavLockDB)\b
111+ captures:
112+ 1: keyword.dav.apacheconf
113+ - match: \b(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize)\b
114+ captures:
115+ 1: keyword.deflate.apacheconf
116+ - match: \b(DirectoryIndex|DirectorySlash|FallbackResource)\b
117+ captures:
118+ 1: keyword.dir.apacheconf
119+ - match: \b(CacheDirLength|CacheDirLevels|CacheExpiryCheck|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheMaxFileSize|CacheMinFileSize|CacheRoot|CacheSize|CacheTimeMargin)\b
120+ captures:
121+ 1: keyword.disk_cache.apacheconf
122+ - match: \b(DumpIOInput|DumpIOOutput)\b
123+ captures:
124+ 1: keyword.dumpio.apacheconf
125+ - match: \b(PassEnv|SetEnv|UnsetEnv)\b
126+ captures:
127+ 1: keyword.env.apacheconf
128+ - match: \b(ExpiresActive|ExpiresByType|ExpiresDefault)\b
129+ captures:
130+ 1: keyword.expires.apacheconf
131+ - match: \b(ExtFilterDefine|ExtFilterOptions)\b
132+ captures:
133+ 1: keyword.ext_filter.apacheconf
134+ - match: \b(CacheFile|MMapFile)\b
135+ captures:
136+ 1: keyword.file_cache.apacheconf
137+ - match: \b(AddOutputFilterByType|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace)\b
138+ captures:
139+ 1: keyword.filter.apacheconf
140+ - match: \b(Header|RequestHeader)\b
141+ captures:
142+ 1: keyword.headers.apacheconf
143+ - match: \b(ImapBase|ImapDefault|ImapMenu)\b
144+ captures:
145+ 1: keyword.imap.apacheconf
146+ - match: \b(SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|XBitHack)\b
147+ captures:
148+ 1: keyword.include.apacheconf
149+ - match: \b(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer)\b
150+ captures:
151+ 1: keyword.isapi.apacheconf
152+ - match: \b(LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize|LDAPTrustedCA|LDAPTrustedCAType)\b
153+ captures:
154+ 1: keyword.ldap.apacheconf
155+ - match: \b(BufferedLogs|CookieLog|CustomLog|LogFormat|TransferLog|ForensicLog)\b
156+ captures:
157+ 1: keyword.log.apacheconf
158+ - match: \b(MCacheMaxObjectCount|MCacheMaxObjectSize|MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize)\b
159+ captures:
160+ 1: keyword.mem_cache.apacheconf
161+ - match: \b(AddCharset|AddEncoding|AddHandler|AddInputFilter|AddLanguage|AddOutputFilter|AddType|DefaultLanguage|ModMimeUsePathInfo|MultiviewsMatch|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|TypesConfig)\b
162+ captures:
163+ 1: keyword.mime.apacheconf
164+ - match: \b(ProtocolEcho|Example|AddModuleInfo|MimeMagicFile|CheckSpelling|ExtendedStatus|SuexecUserGroup|UserDir)\b
165+ captures:
166+ 1: keyword.misc.apacheconf
167+ - match: \b(CacheNegotiatedDocs|ForceLanguagePriority|LanguagePriority)\b
168+ captures:
169+ 1: keyword.negotiation.apacheconf
170+ - match: \b(NWSSLTrustedCerts|NWSSLUpgradeable|SecureListen)\b
171+ captures:
172+ 1: keyword.nw_ssl.apacheconf
173+ - match: \b(AllowCONNECT|NoProxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyFtpDirCharset|ProxyIOBufferSize|ProxyMaxForwards|ProxyPass|ProxyPassMatch|ProxyPassReverse|ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia)\b
174+ captures:
175+ 1: keyword.proxy.apacheconf
176+ - match: \b(RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule)\b
177+ captures:
178+ 1: keyword.rewrite.apacheconf
179+ - match: \b(BrowserMatch|BrowserMatchNoCase|SetEnvIf|SetEnvIfNoCase)\b
180+ captures:
181+ 1: keyword.setenvif.apacheconf
182+ - match: \b(LoadFile|LoadModule)\b
183+ captures:
184+ 1: keyword.so.apacheconf
185+ - match: \b(SSLCACertificateFile|SSLCACertificatePath|SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions|SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite|SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire|SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|SSLInsecureRenegotiation|SSLOpenSSLConfCmd)\b
186+ captures:
187+ 1: keyword.ssl.apacheconf
188+ - match: \b(Substitute|SubstituteInheritBefore|SubstituteMaxLineLength)\b
189+ captures:
190+ 1: keyword.substitute.apacheconf
191+ - match: \b(CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking)\b
192+ captures:
193+ 1: keyword.usertrack.apacheconf
194+ - match: \b(VirtualDocumentRoot|VirtualDocumentRootIP|VirtualScriptAlias|VirtualScriptAliasIP)\b
195+ captures:
196+ 1: keyword.vhost_alias.apacheconf
197+ - match: \b(php_value|php_flag|php_admin_value|php_admin_flag)\b(\s+(.+?)(\s+(".+?"|.+?))?)?\s
198+ captures:
199+ 1: keyword.php.apacheconf
200+ 3: entity.property.apacheconf
201+ 5: string.value.apacheconf
202+ - match: '(%\{)((HTTP_USER_AGENT|HTTP_REFERER|HTTP_COOKIE|HTTP_FORWARDED|HTTP_HOST|HTTP_PROXY_CONNECTION|HTTP_ACCEPT|REMOTE_ADDR|REMOTE_HOST|REMOTE_PORT|REMOTE_USER|REMOTE_IDENT|REQUEST_METHOD|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_ADMIN|SERVER_NAME|SERVER_ADDR|SERVER_PORT|SERVER_PROTOCOL|SERVER_SOFTWARE|TIME_YEAR|TIME_MON|TIME_DAY|TIME_HOUR|TIME_MIN|TIME_SEC|TIME_WDAY|TIME|API_VERSION|THE_REQUEST|REQUEST_URI|REQUEST_FILENAME|IS_SUBREQ|HTTPS)|(.*?))(\})'
203+ captures:
204+ 1: punctuation.variable.apacheconf
205+ 3: variable.env.apacheconf
206+ 4: variable.misc.apacheconf
207+ 5: punctuation.variable.apacheconf
208+ - match: \b((text|image|application|video|audio)/.+?)\s
209+ captures:
210+ 1: entity.mime-type.apacheconf
211+ - match: \b(?i)(export|from|unset|set|on|off)\b
212+ captures:
213+ 1: entity.helper.apacheconf
214+ - match: \b(\d+)\b
215+ captures:
216+ 1: constant.numeric.integer.decimal.apacheconf
217+ - match: '\s(\[)(.*?)(\])\s'
218+ captures:
219+ 1: punctuation.definition.flag.apacheconf
220+ 2: string.flag.apacheconf
221+ 3: punctuation.definition.flag.apacheconf
assets/syntaxes/02_Extra/AsciiDocnew file+1

Submodule changed.

assets/syntaxes/02_Extra/AsciiDoc.sublime-syntaxnew file+997
@@ -0,0 +1,997 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: AsciiDoc (Asciidoctor)
5+file_extensions:
6+ - adoc
7+ - ad
8+ - asciidoc
9+scope: text.asciidoc
10+contexts:
11+ main:
12+ - include: lists
13+ - include: blocks
14+ - include: section_titles
15+ - include: lines
16+ - include: inline
17+ - include: characters
18+ attribute_entry:
19+ - match: |-
20+ (?x)
21+ ^(:) # opening delimiter
22+ (!)? # bang symbol (unset attribute)
23+ ([A-Za-z0-9_][A-Za-z0-9_-]*) # attribute name
24+ (!)? # bang symbol (unset attribute)
25+ (:) # closing delimiter
26+ (?:\s+|(?=$))
27+ comment: |
28+ An attribute entry.
29+
30+ Examples:
31+ :my-attribute: value
32+ :sectnums!:
33+ :!sectnums:
34+ captures:
35+ 1: punctuation.definition.attributeentry.attrname.begin.asciidoc
36+ 2: punctuation.definition.attributeentry.unset.asciidoc
37+ 3: support.variable.attribute.asciidoc
38+ 4: punctuation.definition.attributeentry.unset.asciidoc
39+ 5: punctuation.definition.attributeentry.attrname.end.asciidoc
40+ push:
41+ - meta_scope: meta.attributeentry.asciidoc
42+ - meta_content_scope: meta.attributeentry.value.asciidoc
43+ - match: $\n?
44+ pop: true
45+ - include: characters
46+ attribute_list_line:
47+ - match: '^(\[)[^\[\]]*(\])\s*$\n?'
48+ comment: "Attribute list as paragraph: single brackets. No need for special treatment of escape; follows literal block, section template as being a more general regex."
49+ scope: support.variable.attributelist.asciidoc
50+ captures:
51+ 1: punctuation.definition.attributelistline.begin.asciidoc
52+ 2: punctuation.definition.attributelistline.end.asciidoc
53+ attribute_reference:
54+ - match: "({)([A-Za-z0-9_][A-Za-z0-9_-]*)(})"
55+ comment: |
56+ Examples:
57+ {my-attribute}
58+ scope: variable.other
59+ captures:
60+ 1: constant.character.attributes.reference.begin.asciidoc
61+ 2: support.variable.attribute.asciidoc
62+ 3: constant.character.attributes.reference.end.asciidoc
63+ biblio_anchor:
64+ - match: '(?<!\[)(\[\[\[).*?(\]\]\])(?!\])'
65+ comment: |
66+ Bibliography anchor
67+
68+ Examples:
69+ [[[Lorem ipsum]]]
70+ scope: storage.type.reference.biblioanchor.asciidoc
71+ captures:
72+ 1: punctuation.definition.biblioanchor.begin.asciidoc
73+ 2: punctuation.definition.biblioanchor.end.asciidoc
74+ block_admonition_label:
75+ - match: ^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):(?=\s+)
76+ comment: |
77+ Label of an admonition block.
78+
79+ Examples:
80+ NOTE: This is a admonition block.
81+ WARNING: Be aware of them!
82+ scope: support.constant.admonitionword.asciidoc
83+ block_comment:
84+ - match: '^(/{4,})\s*$\n?'
85+ comment: |
86+ Examples:
87+ ////
88+ A multi-line comment.
89+ Notice it's a delimited block.
90+ ////
91+ captures:
92+ 0: punctuation.definition.comment.begin.asciidoc
93+ push:
94+ - meta_scope: comment.block.asciidoc
95+ - meta_content_scope: meta.block.comment.content.asciidoc
96+ - match: ^\1\s*$\n?
97+ captures:
98+ 0: punctuation.definition.comment.end.asciidoc
99+ pop: true
100+ - include: macro
101+ block_example:
102+ - match: '^(={4,})\s*$\n?'
103+ comment: |
104+ Examples:
105+ ====
106+ Lorem ipsum.
107+ ====
108+
109+ Note: Might need to add more includes, but these are the ones that arise in
110+ practice for me.
111+ captures:
112+ 0: constant.delimiter.example.begin.asciidoc
113+ push:
114+ - meta_scope: string.unquoted.block.example.asciidoc
115+ - meta_content_scope: meta.block.example.content.asciidoc
116+ - match: ^\1\s*$\n?
117+ captures:
118+ 0: constant.delimiter.example.end.asciidoc
119+ pop: true
120+ - include: lists
121+ - include: block_listing
122+ - include: lines
123+ - include: inline
124+ - include: characters
125+ block_id:
126+ - match: '^(\[\[)([^\[].*)(\]\])\s*$\n?'
127+ comment: |
128+ A block id (i.e. anchor).
129+
130+ Examples:
131+ [[myid]]
132+ Lorem ipsum dolor.
133+ scope: meta.tag.blockid.asciidoc
134+ captures:
135+ 1: punctuation.definition.blockid.begin.asciidoc
136+ 2: markup.underline.blockid.id.asciidoc
137+ 3: punctuation.definition.blockid.end.asciidoc
138+ block_listing:
139+ - match: '^(\-{4,})\s*$\n?'
140+ comment: |
141+ Examples:
142+ ----
143+ Lorem ipsum.
144+ ----
145+ captures:
146+ 0: constant.delimiter.listing.begin.asciidoc
147+ push:
148+ - meta_scope: meta.embedded.block.listing.asciidoc
149+ - meta_content_scope: source.block.listing.content.asciidoc
150+ - match: ^\1\s*$\n?
151+ captures:
152+ 0: constant.delimiter.listing.end.asciidoc
153+ pop: true
154+ - include: inline_callout
155+ block_literal:
156+ - match: '^(\.{4,})\s*$\n?'
157+ comment: |
158+ Examples:
159+ ....
160+ Lorem ipsum.
161+ ....
162+ captures:
163+ 0: constant.delimiter.block.literal.begin.asciidoc
164+ push:
165+ - meta_scope: string.literal.block.delimited.asciidoc
166+ - meta_content_scope: meta.block.literal.content.asciidoc
167+ - match: ^\1\s*$\n?
168+ captures:
169+ 0: constant.delimiter.block.literal.end.asciidoc
170+ pop: true
171+ - include: inline_callout
172+ block_open:
173+ - match: ^\-\-\s*$\n?
174+ comment: |
175+ Examples:
176+ --
177+ Lorem ipsum
178+ --
179+ Note: Might need to check on these includes.
180+ captures:
181+ 0: constant.delimiter.block.open.begin.asciidoc
182+ push:
183+ - meta_scope: meta.block.open.asciidoc
184+ - meta_content_scope: meta.block.open.content.asciidoc
185+ - match: ^\-\-\s*$\n?
186+ captures:
187+ 0: constant.delimiter.block.open.end.asciidoc
188+ pop: true
189+ - include: lists
190+ - include: block_comment
191+ - include: block_listing
192+ - include: block_pass
193+ - include: lines
194+ - include: inline
195+ - include: characters
196+ block_page_break:
197+ - match: '^<{3,}$\n?'
198+ comment: |
199+ A page break.
200+
201+ Examples:
202+ <<<
203+ <<<<<
204+ scope: meta.separator.pagebreak.asciidoc
205+ block_pass:
206+ - match: '^(\+{4,})\s*$\n?'
207+ captures:
208+ 0: constant.delimiter.block.passthrough.begin.asciidoc
209+ push:
210+ - meta_scope: meta.embedded.block.passthrough.asciidoc
211+ - meta_content_scope: text.xml.block.passthrough.content.asciidoc
212+ - match: ^\1\s*$\n?
213+ captures:
214+ 0: constant.delimiter.block.passthrough.end.asciidoc
215+ pop: true
216+ - include: scope:text.xml
217+ block_quote:
218+ - match: '^(_{4,})\s*$\n?'
219+ comment: |
220+ Examples:
221+ ____
222+ Lorem ipsum
223+ ____
224+
225+ Note: Might need to add more includes, but these are the ones that arise for me in practice.
226+ captures:
227+ 0: constant.delimiter.block.quote.begin.asciidoc
228+ push:
229+ - meta_scope: markup.quote.block.asciidoc
230+ - meta_content_scope: meta.block.quote.content.asciidoc
231+ - match: ^\1\s*$\n?
232+ captures:
233+ 0: constant.delimiter.block.quote.end.asciidoc
234+ pop: true
235+ - include: lines
236+ - include: inline
237+ - include: characters
238+ block_sidebar:
239+ - match: '^(\*{4,})\s*$\n?'
240+ comment: |
241+ Examples:
242+ ****
243+ Lorem ipsum
244+ ****
245+
246+ Note: Might need to add more includes, but these are the ones that arise
247+ for me in practice.
248+ captures:
249+ 0: constant.delimiter.block.sidebar.begin.asciidoc
250+ push:
251+ - meta_scope: string.quoted.block.sidebar.asciidoc
252+ - meta_content_scope: meta.block.sidebar.content.asciidoc
253+ - match: ^\1\s*$\n?
254+ captures:
255+ 0: constant.delimiter.block.sidebar.end.asciidoc
256+ pop: true
257+ - include: lists
258+ - include: block_comment
259+ - include: block_listing
260+ - include: lines
261+ - include: inline
262+ - include: characters
263+ block_source_fenced:
264+ - match: ^(```)(\w+)?\s*$\n?
265+ comment: |
266+ Fenced code block (ala Markdown)
267+
268+ Examples:
269+ ```rb
270+ puts 'Hello world!'
271+ ```
272+ captures:
273+ 0: constant.delimiter.listing.begin.asciidoc
274+ push:
275+ - meta_scope: meta.embedded.block.listing.asciidoc
276+ - meta_content_scope: source.block.listing.content.asciidoc
277+ - match: ^\1\s*$\n?
278+ captures:
279+ 0: constant.delimiter.listing.end.asciidoc
280+ pop: true
281+ - include: inline_callout
282+ block_thematic_break:
283+ - match: '^''{3,}$\n?'
284+ comment: |
285+ A thematic break (aka horizontal rule).
286+
287+ Examples:
288+ '''
289+ ''''''
290+ scope: meta.separator.ruler.asciidoc
291+ block_title:
292+ - match: ^(\.)\w.*$\n?
293+ comment: |
294+ Title of a block.
295+
296+ Examples:
297+ .My title
298+ Lorem ipsum dolor.
299+ scope: markup.heading.block.asciidoc
300+ captures:
301+ 1: punctuation.definition.blockheading.asciidoc
302+ blocks:
303+ - include: block_literal
304+ - include: block_comment
305+ - include: block_listing
306+ - include: block_source_fenced
307+ - include: block_sidebar
308+ - include: block_pass
309+ - include: block_quote
310+ - include: block_example
311+ - include: block_open
312+ characters:
313+ - include: attribute_reference
314+ - include: entity_number
315+ - include: entity_name
316+ - include: escape
317+ - include: replacement
318+ - include: macro_pass
319+ - include: macro
320+ - include: xref
321+ - include: biblio_anchor
322+ - include: indexterm_triple
323+ - include: indexterm_double
324+ colist_item_marker:
325+ - match: ^(\s*((<)\d+?(>)))\s+(?=\S)
326+ comment: |
327+ Marker of a callout list item.
328+
329+ Examples:
330+ <1> a callout
331+ <42> another callout
332+ scope: markup.list.numbered.callout.asciidoc
333+ captures:
334+ 1: string.unquoted.list.callout.asciidoc
335+ 2: constant.numeric.callout.asciidoc
336+ 3: punctuation.definition.calloutlistnumber.begin.asciidoc
337+ 4: punctuation.definition.calloutlistnumber.end.asciidoc
338+ dlist_item_label:
339+ - match: '^\s*(?=.*:{2,4}(?:\s|$))'
340+ comment: |
341+ Label of a definition (labeled) list item.
342+
343+ Examples:
344+ Label level 1:: lorem ipsum
345+ Label level 2::: dolor sit amet
346+ Label level 3:::: consectetur
347+ Label level 1::
348+ lorem ipsum
349+ Another label :: lorem ipsum
350+ Last::label:: dolor sit amet
351+
352+ Note: This rule is not strictly correct, because Asciidoctor allows
353+ double colon followed by a space inside a label, i.e. it matches the
354+ *last* double colon, not the first. I don't know how to do that
355+ *effectively.
356+ push:
357+ - meta_scope: markup.list.labeled.asciidoc
358+ - meta_content_scope: meta.list.label.asciidoc
359+ - match: '(:{2,4})(?:\s|$\n?)'
360+ captures:
361+ 1: constant.labeledlist.separator.asciidoc
362+ pop: true
363+ - include: inline
364+ - include: characters
365+ emphasis:
366+ - match: |-
367+ (?x)
368+ (\[[^\]]*?\])? # might be preceded by an attributes list
369+ (?<=^|\W)(?<!\\|}) # must be preceded by nonword character, and not by escape or } (attribute)
370+ (_)(?=\S) # delimiter underscore that must be followed by a nonspace character
371+ comment: |
372+ Emphasized (italic) text (constrained variant).
373+
374+ Examples:
375+ _Lorem ipsum_ dolor
376+ [red]_Lorem ipsum_ dolor
377+ captures:
378+ 1: support.variable.attributelist.asciidoc
379+ 2: punctuation.definition.italic.single.begin.asciidoc
380+ push:
381+ - meta_scope: markup.italic.single.asciidoc
382+ - meta_content_scope: meta.italicinner.single.asciidoc
383+ - match: |-
384+ (?x)
385+ (?<=\S)(_) # delimiter underscore that must be preceded by a nonspace character
386+ (?!\w) # ...and followed by a nonword character
387+ captures:
388+ 1: punctuation.definition.italic.single.end.asciidoc
389+ pop: true
390+ - include: strong_double
391+ - include: monospaced_double
392+ - include: mark_double
393+ - include: strong
394+ - include: monospaced
395+ - include: mark
396+ - include: superscript
397+ - include: subscript
398+ - include: characters
399+ emphasis_double:
400+ - match: |-
401+ (?x)
402+ (\[[^\]]*?\])? # might start with attribute list
403+ (?<!\\) # must not be preceded by escape
404+ (__)
405+ comment: |
406+ Emphasized (italic) text (unconstrained variant).
407+
408+ Examples:
409+ Lo__re__m __ipsum dolor__.
410+ Lo[red]__re__m
411+ captures:
412+ 1: support.variable.attributelist.asciidoc
413+ 2: punctuation.definition.italic.double.begin.asciidoc
414+ push:
415+ - meta_scope: markup.italic.double.asciidoc
416+ - meta_content_scope: meta.italicinner.double.asciidoc
417+ - match: __
418+ captures:
419+ 0: punctuation.definition.italic.double.end.asciidoc
420+ pop: true
421+ - include: strong_double
422+ - include: monospaced_double
423+ - include: mark_double
424+ - include: strong
425+ - include: monospaced
426+ - include: mark
427+ - include: superscript
428+ - include: subscript
429+ - include: characters
430+ entity_name:
431+ - match: '(?<!\\)&([a-zA-Z][a-zA-Z0-9]*);'
432+ comment: |
433+ Character entity reference
434+
435+ Examples:
436+ &nbsp;
437+ &sup2;
438+ scope: constant.character.entity.xml.asciidoc
439+ entity_number:
440+ - match: '(?<!\\)&#(x?[0-9a-fA-f]{2,4});'
441+ comment: |
442+ Numeric character reference
443+
444+ Examples:
445+ &#x278a;
446+ &#182;
447+ scope: constant.character.entity.asciidoc
448+ escape:
449+ - match: '\\(?=[-`*_#+.!(){}\[\]\\>:])'
450+ comment: |
451+ List of special characters that may be escaped.
452+
453+ Note: I do not really know if this is a good list, adopted wholesale from
454+ original bundle.
455+ scope: constant.character.escape.asciidoc
456+ indexterm_double:
457+ - match: '(?<!\()(\({2})([^\(\s].*?)(\){2})(?!\))'
458+ comment: |
459+ Double parenthesis indexterm.
460+
461+ Examples:
462+ ((Arthur))
463+ scope: variable.other.indexterm.double.asciidoc
464+ captures:
465+ 1: constant.character.indexterm.double.begin.asciidoc
466+ 3: constant.character.indexterm.double.end.asciidoc
467+ indexterm_triple:
468+ - match: '(?<!\()(\({3})([^\(].*?)(\){3})(?!\))'
469+ comment: |
470+ Triple parenthesis indexterm.
471+
472+ Examples:
473+ (((Sword, Broadsword, Excalibur)))
474+ scope: variable.other.indexterm.triple.asciidoc
475+ captures:
476+ 1: constant.character.indexterm.triple.begin.asciidoc
477+ 3: constant.character.indexterm.triple.end.asciidoc
478+ inline:
479+ - include: passthrough
480+ - include: strong_double
481+ - include: emphasis_double
482+ - include: monospaced_double
483+ - include: mark_double
484+ - include: strong
485+ - include: emphasis
486+ - include: monospaced
487+ - include: mark
488+ - include: superscript
489+ - include: subscript
490+ inline_break:
491+ - match: (?<=\s)\+$\n?
492+ comment: |
493+ Line hard break with a plus sign (+).
494+
495+ Examples:
496+ Rubies are red, +
497+ Topazes are blue.
498+ scope: constant.linebreak.asciidoc
499+ inline_callout:
500+ - match: (?<!\\)(<)\d+(>)
501+ comment: |
502+ Callout label
503+
504+ Examples:
505+ <1>
506+ <42>
507+ scope: constant.other.callout.asciidoc
508+ captures:
509+ 1: punctuation.definition.callout.begin.asciidoc
510+ 2: punctuation.definition.callout.end.asciidoc
511+ inline_comment:
512+ - match: '^(//)([^/\n].*|)$\n?'
513+ comment: |
514+ Inline comment.
515+
516+ Examples:
517+ // This is just a comment!
518+ scope: comment.line.double-slash.asciidoc
519+ captures:
520+ 1: punctuation.definition.comment.line.asciidoc
521+ 2: meta.line.comment.content.asciidoc
522+ lines:
523+ - include: inline_comment
524+ - include: list_continuation
525+ - include: inline_break
526+ - include: block_page_break
527+ - include: block_thematic_break
528+ - include: block_title
529+ - include: block_id
530+ - include: section_template
531+ - include: attribute_list_line
532+ - include: attribute_entry
533+ list_continuation:
534+ - match: ^\+\s*$\n?
535+ scope: constant.listcontinuation.asciidoc
536+ lists:
537+ - include: block_admonition_label
538+ - include: ulist_item_marker
539+ - include: olist_item_marker
540+ - include: dlist_item_label
541+ - include: colist_item_marker
542+ macro:
543+ - match: |-
544+ (?x)
545+ (?:
546+ ((?:https?|mailto|ftp|file) # specify separately so we can mark them as links that TextMate opens
547+ ?:{1} # inline only
548+ \S*) # (others such as image are partial URLs and/or TextMate cannot handle them)
549+ |
550+ (([a-zA-Z0-9][a-zA-Z0-9_]*)
551+ (:{1,2})
552+ (\S*))
553+ )
554+ (?:(\[)([^\]]*)(\]))
555+ comment: |
556+ Note: There are other macro notations, but I match only those that end in
557+ square brackets.
558+ scope: meta.macro.asciidoc
559+ captures:
560+ 1: markup.underline.link.macro.asciidoc
561+ 3: keyword.control.name.macro.asciidoc
562+ 4: constant.character.separator.macro.asciidoc
563+ 5: markup.underline.target.macro.asciidoc
564+ 6: constant.character.attributes.macro.begin.asciidoc
565+ 7: variable.parameter.attributes.macro.asciidoc
566+ 8: constant.character.attributes.macro.end.asciidoc
567+ macro_pass:
568+ - match: |-
569+ (?x)
570+ (pass)
571+ (:{1,2})
572+ (\S*)
573+ (\[)(?=[^\]]*\])
574+ comment: |
575+ Passthrough macro
576+
577+ Examples:
578+ pass:[Lorem ipsum]
579+ pass::[Lorem ipsum]
580+ captures:
581+ 1: keyword.control.name.macro.pass.asciidoc
582+ 2: constant.character.separator.macro.asciidoc
583+ 3: markup.underline.target.macro.asciidoc
584+ 4: constant.character.attributes.macro.begin.asciidoc
585+ push:
586+ - meta_scope: meta.macro.pass.asciidoc
587+ - meta_content_scope: variable.parameter.attributes.macro.pass.asciidoc
588+ - match: '\]'
589+ captures:
590+ 0: constant.character.attributes.macro.end.asciidoc
591+ pop: true
592+ - include: scope:text.xml
593+ mark:
594+ - match: |-
595+ (?x)
596+ (\[[^\]]*?\])? # might start with attribute list (darned well better or why are we here)
597+ (?<=^|\W)(?<!\\|}) # must be preceded by nonword character, and not by escape or } (attribute)
598+ (\#)(?=\S) # delimiter hash that must be followed by a nonspace character
599+ comment: |
600+ Marked text (constrained variant).
601+
602+ Examples:
603+ #Lorem ipsum# dolor
604+ [red]#Lorem ipsum# dolor
605+ captures:
606+ 1: support.variable.attributelist.asciidoc
607+ 2: punctuation.definition.string.unquoted.single.begin.asciidoc
608+ push:
609+ - meta_scope: string.other.unquoted.single.asciidoc
610+ - meta_content_scope: string.unquoted.unquotedinner.single.asciidoc
611+ - match: |-
612+ (?x)
613+ (?<=\S)(\#) # delimiter hash that must be preceded by a nonspace character
614+ (?!\w) # ...and followed by a nonword character
615+ captures:
616+ 1: punctuation.definition.string.unquoted.single.end.asciidoc
617+ pop: true
618+ - include: strong_double
619+ - include: emphasis_double
620+ - include: monospaced_double
621+ - include: strong
622+ - include: emphasis
623+ - include: monospaced
624+ - include: superscript
625+ - include: subscript
626+ - include: characters
627+ mark_double:
628+ - match: |-
629+ (?x)
630+ (\[[^\]]*?\])? # might start with an attribute list (indeed, that is its purpose)
631+ (?<!\\) # must not be preceded by escape
632+ (\#\#)
633+ comment: |
634+ Marked text (unconstrained variant).
635+
636+ Examples:
637+ Lo##re##m ##ipsum dolor##.
638+ Lo[red]##re##m
639+ captures:
640+ 1: support.variable.attributelist.asciidoc
641+ 2: punctuation.definition.string.unquoted.double.begin.asciidoc
642+ push:
643+ - meta_scope: string.other.unquoted.double.asciidoc
644+ - meta_content_scope: string.unquoted.unquotedinner.double.asciidoc
645+ - match: '\#\#'
646+ captures:
647+ 0: punctuation.definition.string.unquoted.double.end.asciidoc
648+ pop: true
649+ - include: strong_double
650+ - include: emphasis_double
651+ - include: monospaced_double
652+ - include: strong
653+ - include: emphasis
654+ - include: monospaced
655+ - include: superscript
656+ - include: subscript
657+ - include: characters
658+ monospaced:
659+ - match: |-
660+ (?x)
661+ (\[[^\]]*?\])? # might start with attributes list
662+ (?<=^|\W)(?<!\\|}) # must be preceded by nonword character, and not by escape or } (attribute)
663+ (`)(?=\S) # delimiter backtick that must be followed by a nonspace character
664+ comment: |
665+ Monospaced text (constrained variant).
666+
667+ Examples:
668+ `Lorem ipsum` dolor
669+ [red]`Lorem ipsum` dolor
670+ captures:
671+ 1: support.variable.attributelist.asciidoc
672+ 2: punctuation.definition.literal.single.begin.asciidoc
673+ push:
674+ - meta_scope: string.other.literal.single.asciidoc
675+ - meta_content_scope: meta.literalinner.single.asciidoc
676+ - match: |-
677+ (?x)
678+ (?<=\S)(`) # delimiter backtick that must be preceded by a nonspace character
679+ (?!\w) # ...and followed by a nonword character
680+ captures:
681+ 1: punctuation.definition.literal.single.end.asciidoc
682+ pop: true
683+ - include: strong_double
684+ - include: emphasis_double
685+ - include: mark_double
686+ - include: strong
687+ - include: emphasis
688+ - include: mark
689+ - include: superscript
690+ - include: subscript
691+ - include: characters
692+ monospaced_double:
693+ - match: |-
694+ (?x)
695+ (\[[^\]]*?\])? # might start with attribute list
696+ (?<!\\) # must not be preceded by escape
697+ (``)
698+ comment: |
699+ Monospaced text (unconstrained variant).
700+
701+ Examples:
702+ Lo``re``m ``ipsum dolor``.
703+ Lo[red]``re``m
704+ captures:
705+ 1: support.variable.attributelist.asciidoc
706+ 2: punctuation.definition.literal.double.begin.asciidoc
707+ push:
708+ - meta_scope: string.other.literal.double.asciidoc
709+ - meta_content_scope: meta.literalinner.double.asciidoc
710+ - match: "``"
711+ captures:
712+ 0: punctuation.definition.literal.double.end.asciidoc
713+ pop: true
714+ - include: strong_double
715+ - include: emphasis_double
716+ - include: mark_double
717+ - include: strong
718+ - include: emphasis
719+ - include: mark
720+ - include: superscript
721+ - include: subscript
722+ - include: characters
723+ olist_item_marker:
724+ - match: '^(\s*(\.{1,5}))\s+(?=\S)'
725+ comment: |
726+ Marker of an ordered (numbered) list item.
727+
728+ Examples:
729+ . level 1
730+ .. level 2
731+ ... level 3
732+ .... level 4
733+ ..... level 5
734+
735+ Note: The space distinguishes it from a block title.
736+ scope: markup.list.numbered.dotted.asciidoc
737+ captures:
738+ 1: string.unquoted.list.dotted.asciidoc
739+ 2: constant.numeric.list.dot.asciidoc
740+ passthrough:
741+ - match: (\+\+\+|\$\$)
742+ comment: |
743+ Inline triple-plus and double dolar passthrough.
744+
745+ Examples:
746+ Lo+++re++++m +++ipsum dolor+++.
747+ Lo$$re$$m $$ipsum dolor$$.
748+
749+ Note: Must be dead first among the inlines, so as to take priority.
750+ captures:
751+ 1: constant.character.passthru.begin.asciidoc
752+ push:
753+ - meta_scope: meta.passthru.inline.asciidoc
754+ - meta_content_scope: variable.parameter.passthruinner.asciidoc
755+ - match: \1
756+ captures:
757+ 0: constant.character.passthru.end.asciidoc
758+ pop: true
759+ replacement:
760+ - match: |-
761+ (?x)
762+ (?<!\\) # must not be escaped
763+ (
764+ \(C\)
765+ | \(TM\)
766+ | \(R\)
767+ | ((?<!\-)\-\-(?!\-)) # exactly two, and even this may not rule out all that I want to
768+ | ((?<!\.)\.\.\.(?!\.)) # exactly three
769+ | \->
770+ | <\-
771+ | =>
772+ | <=
773+ )
774+ scope: constant.character.replacement.asciidoc
775+ section_template:
776+ - match: |-
777+ (?x)^
778+ (\[) # in square brackets
779+ (template\s*=\s*)?(")? # might start with template-equals and might have template name in quotes
780+ (
781+ sect\d|abstract|preface|colophon|dedication|glossary|bibliography|synopsis|appendix|index # fixed list of known templates
782+ )
783+ (".*(\])|(\])) # either close the quote (and perhaps go on) and close the bracket, or close the bracket immediately
784+ \s*$\n?
785+ comment: fixed list of known template names
786+ scope: variable.parameter.sectiontemplate.asciidoc
787+ captures:
788+ 1: punctuation.definition.sectiontemplate.begin.asciidoc
789+ 4: meta.tag.sectiontemplate.asciidoc
790+ 6: punctuation.definition.sectiontemplate.end.asciidoc
791+ 7: punctuation.definition.sectiontemplate.end.asciidoc
792+ section_titles:
793+ - include: title_level_5
794+ - include: title_level_4
795+ - include: title_level_3
796+ - include: title_level_2
797+ - include: title_level_1
798+ - include: title_level_0
799+ strong:
800+ - match: |-
801+ (?x)
802+ (\[[^\]]*?\])? # might start with an attributes list
803+ (?<=^|\W)(?<!\\|}) # must be preceded by nonword character, and not by escape or } (attribute)
804+ (\*)(?=\S) # delimiter star that must be followed by a nonspace character
805+ comment: |
806+ Strong (bold) text (constrained variant).
807+
808+ Examples:
809+ *Lorem ipsum* dolor
810+ [red]*Lorem ipsum* dolor
811+ captures:
812+ 1: support.variable.attributelist.asciidoc
813+ 2: punctuation.definition.bold.single.begin.asciidoc
814+ push:
815+ - meta_scope: markup.bold.single.asciidoc
816+ - meta_content_scope: meta.boldinner.single.asciidoc
817+ - match: |-
818+ (?x)
819+ (?<=\S)(\*) # delimiter star that must be preceded by a nonspace character
820+ (?!\w) # ...and followed by a nonword character
821+ captures:
822+ 1: punctuation.definition.bold.single.end.asciidoc
823+ pop: true
824+ - include: emphasis_double
825+ - include: monospaced_double
826+ - include: mark_double
827+ - include: emphasis
828+ - include: monospaced
829+ - include: mark
830+ - include: superscript
831+ - include: subscript
832+ - include: characters
833+ strong_double:
834+ - match: |-
835+ (?x)
836+ (\[[^\]]*?\])? # might start with an attribute list
837+ (?<!\\) # must not be preceded by escape
838+ (\*\*)
839+ comment: |
840+ Strong (bold) text (unconstrained variant).
841+
842+ Examples:
843+ Lo**re**m **ipsum dolor**.
844+ Lo[red]**re**m
845+ captures:
846+ 1: support.variable.attributelist.asciidoc
847+ 2: punctuation.definition.bold.double.begin.asciidoc
848+ push:
849+ - meta_scope: markup.bold.double.asciidoc
850+ - meta_content_scope: meta.boldinner.double.asciidoc
851+ - match: \*\*
852+ captures:
853+ 0: punctuation.definition.bold.double.end.asciidoc
854+ pop: true
855+ - include: emphasis_double
856+ - include: monospaced_double
857+ - include: mark_double
858+ - include: emphasis
859+ - include: monospaced
860+ - include: mark
861+ - include: superscript
862+ - include: subscript
863+ - include: characters
864+ subscript:
865+ - match: |-
866+ (?x)
867+ (\[[^\]]*?\])? # might start with attribute list
868+ (?<!\\) # must not be preceded by escape
869+ (~)
870+ comment: |
871+ Subscript text.
872+
873+ Examples:
874+ E=mc^2^
875+ E=mc[red]^2^
876+ captures:
877+ 1: support.variable.attributelist.asciidoc
878+ 2: punctuation.definition.string.subscript.begin.asciidoc
879+ push:
880+ - meta_scope: string.other.subscript.asciidoc
881+ - meta_content_scope: meta.subscriptinner.asciidoc
882+ - match: '~' # this tilda a problem if unquoted
883+ captures:
884+ 0: punctuation.definition.string.subscript.end.asciidoc
885+ pop: true
886+ - include: strong_double
887+ - include: emphasis_double
888+ - include: monospaced_double
889+ - include: mark_double
890+ - include: strong
891+ - include: emphasis
892+ - include: monospaced
893+ - include: mark
894+ - include: superscript
895+ - include: characters
896+ superscript:
897+ - match: |-
898+ (?x)
899+ (\[[^\]]*?\])? # might start with attribute list
900+ (?<!\\) # no preceding escape
901+ (\^)
902+ comment: |
903+ Superscript text.
904+
905+ Examples:
906+ H~2~O
907+ H[red]~2~O
908+ captures:
909+ 1: support.variable.attributelist.asciidoc
910+ 2: punctuation.definition.string.superscript.begin.asciidoc
911+ push:
912+ - meta_scope: string.other.superscript.asciidoc
913+ - meta_content_scope: meta.superscriptinner.asciidoc
914+ - match: ^
915+ captures:
916+ 0: punctuation.definition.string.superscript.end.asciidoc
917+ pop: true
918+ - include: strong_double
919+ - include: emphasis_double
920+ - include: monospaced_double
921+ - include: mark_double
922+ - include: strong
923+ - include: emphasis
924+ - include: monospaced
925+ - include: mark
926+ - include: subscript
927+ - include: characters
928+ title_level_0:
929+ - match: ^(=) (\w.*)$\n?
930+ scope: markup.heading.level.0.asciidoc
931+ captures:
932+ 1: punctuation.definition.heading.asciidoc
933+ 2: entity.name.section.asciidoc
934+ title_level_1:
935+ - match: ^(==) (\w.*)$\n?
936+ scope: markup.heading.level.1.asciidoc
937+ captures:
938+ 1: punctuation.definition.heading.asciidoc
939+ 2: entity.name.section.asciidoc
940+ title_level_2:
941+ - match: ^(===) (\w.*)$\n?
942+ scope: markup.heading.level.2.asciidoc
943+ captures:
944+ 1: punctuation.definition.heading.asciidoc
945+ 2: entity.name.section.asciidoc
946+ title_level_3:
947+ - match: ^(====) (\w.*)$\n?
948+ scope: markup.heading.level.3.asciidoc
949+ captures:
950+ 1: punctuation.definition.heading.asciidoc
951+ 2: entity.name.section.asciidoc
952+ title_level_4:
953+ - match: ^(=====) (\w.*)$\n?
954+ scope: markup.heading.level.4.asciidoc
955+ captures:
956+ 1: punctuation.definition.heading.asciidoc
957+ 2: entity.name.section.asciidoc
958+ title_level_5:
959+ - match: ^(======) (\w.*)$\n?
960+ scope: markup.heading.level.5.asciidoc
961+ captures:
962+ 1: punctuation.definition.heading.asciidoc
963+ 2: entity.name.section.asciidoc
964+ ulist_item_marker:
965+ - match: '^(\s*(\-|\*{1,5}))\s+(?=\S)'
966+ comment: |
967+ Marker of an unordered (bullet) list item.
968+
969+ Examples:
970+ * level 1
971+ ** level 2
972+ *** level 3
973+ **** level 4
974+ ***** level 5
975+ - level 1
976+ -- level 2
977+ --- level 3
978+ ---- level 4
979+ ----- level 5
980+ scope: markup.list.bulleted.asciidoc
981+ captures:
982+ 1: string.unquoted.list.bullet.asciidoc
983+ 2: constant.numeric.list.bullet.asciidoc
984+ xref:
985+ - match: '(?<!<)(<<)([^,]*?)((,\s*)(.*?))?(>>)(?!<)'
986+ comment: |
987+ Internal cross-reference
988+
989+ Examples:
990+ <<lorem>>
991+ <<lorem, see here>>
992+ scope: meta.xref.asciidoc
993+ captures:
994+ 1: constant.character.xref.begin.asciidoc
995+ 2: markup.underline.term.xref.asciidoc
996+ 5: variable.parameter.xref.asciidoc
997+ 6: constant.character.xref.end.asciidoc
assets/syntaxes/Assembly (ARM) → assets/syntaxes/02_Extra/Assembly (ARM)renamed

The content is the same.

assets/syntaxes/Assembly (ARM).sublime-syntax → assets/syntaxes/02_Extra/Assembly (ARM).sublime-syntaxrenamed

The content is the same.

assets/syntaxes/Assembly (x86_64).sublime-syntax → assets/syntaxes/02_Extra/Assembly (x86_64).sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/CMakenew file+1

Submodule changed.

assets/syntaxes/02_Extra/CSV.sublime-syntaxnew file+78
@@ -0,0 +1,78 @@
1+%YAML 1.2
2+---
3+# See http://www.sublimetext.com/docs/3/syntax.html
4+name: Comma Separated Values
5+file_extensions:
6+ - csv
7+ - tsv
8+scope: text.csv
9+variables:
10+ field_separator: (?:[,;\t])
11+ record_separator: (?:$\n?)
12+contexts:
13+ prototype:
14+ - match: (?={{record_separator}})
15+ pop: true
16+ fields:
17+ - match: ''
18+ push:
19+ - field_or_record_separator
20+ - field4
21+ - field_or_record_separator
22+ - field3
23+ - field_or_record_separator
24+ - field2
25+ - field_or_record_separator
26+ - field1
27+ main:
28+ - meta_include_prototype: false
29+ - match: '^'
30+ set: fields
31+
32+ field_or_record_separator:
33+ - meta_include_prototype: false
34+ - match: '{{record_separator}}'
35+ scope: punctuation.terminator.record.csv
36+ pop: true
37+ - match: '{{field_separator}}'
38+ scope: punctuation.separator.sequence.csv
39+ pop: true
40+
41+ field_contents:
42+ - match: '"'
43+ scope: punctuation.definition.string.begin.csv
44+ push: double_quoted_string
45+
46+ - match: (?={{field_separator}}|{{record_separator}})
47+ pop: true
48+
49+ double_quoted_string:
50+ - meta_include_prototype: false
51+ - meta_scope: string.quoted.double.csv
52+ - match: '""'
53+ scope: constant.character.escape.csv
54+ - match: '"'
55+ scope: punctuation.definition.string.end.csv
56+ pop: true
57+
58+ field1:
59+ - match: ''
60+ set:
61+ - meta_content_scope: meta.field-1.csv support.type
62+ - include: field_contents
63+ field2:
64+ - match: ''
65+ set:
66+ - meta_content_scope: meta.field-2.csv support.function
67+ - include: field_contents
68+ field3:
69+ - match: ''
70+ set:
71+ - meta_content_scope: meta.field-3.csv constant.numeric
72+ - include: field_contents
73+ field4:
74+ - match: ''
75+ set:
76+ - meta_content_scope: meta.field-4.csv keyword.operator
77+ - include: field_contents
78+
assets/syntaxes/Cabal.sublime-syntax → assets/syntaxes/02_Extra/Cabal.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/CoffeeScriptnew file+1

Submodule changed.

assets/syntaxes/02_Extra/CoffeeScript.sublime-syntaxnew file+271
@@ -0,0 +1,271 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: CoffeeScript
5+comment: "CoffeeScript Syntax: version 1"
6+file_extensions:
7+ - coffee
8+ - Cakefile
9+ - coffee.erb
10+ - cson
11+first_line_match: ^#!.*\bcoffee
12+scope: source.coffee
13+contexts:
14+ main:
15+ - match: '(\([^()]*?\))\s*([=-]>)'
16+ comment: "match stuff like: a -> …"
17+ scope: meta.inline.function.coffee
18+ captures:
19+ 1: variable.parameter.function.coffee
20+ 2: storage.type.function.coffee
21+ - match: (new)\s+(\w+(?:\.\w*)*)
22+ scope: meta.class.instance.constructor
23+ captures:
24+ 1: keyword.operator.new.coffee
25+ 2: support.class.coffee
26+ - match: "'''"
27+ captures:
28+ 0: punctuation.definition.string.begin.coffee
29+ push:
30+ - meta_scope: string.quoted.heredoc.coffee
31+ - match: "'''"
32+ captures:
33+ 0: punctuation.definition.string.end.coffee
34+ pop: true
35+ - match: '"""'
36+ captures:
37+ 0: punctuation.definition.string.begin.coffee
38+ push:
39+ - meta_scope: string.quoted.double.heredoc.coffee
40+ - match: '"""'
41+ captures:
42+ 0: punctuation.definition.string.end.coffee
43+ pop: true
44+ - match: \\.
45+ scope: constant.character.escape.coffee
46+ - include: interpolated_coffee
47+ - match: "`"
48+ captures:
49+ 0: punctuation.definition.string.begin.coffee
50+ push:
51+ - meta_scope: string.quoted.script.coffee
52+ - match: "`"
53+ captures:
54+ 0: punctuation.definition.string.end.coffee
55+ pop: true
56+ - match: '\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)'
57+ scope: constant.character.escape.coffee
58+ - match: (?<!#)###(?!#)
59+ captures:
60+ 0: punctuation.definition.comment.coffee
61+ push:
62+ - meta_scope: comment.block.coffee
63+ - match: '###(?:[ \t]*\n)'
64+ captures:
65+ 0: punctuation.definition.comment.coffee
66+ pop: true
67+ - match: '@\w*'
68+ scope: storage.type.annotation.coffeescript
69+ - match: '(#)(?!\{).*$\n?'
70+ scope: comment.line.number-sign.coffee
71+ captures:
72+ 1: punctuation.definition.comment.coffee
73+ - match: "/{3}"
74+ push:
75+ - meta_scope: string.regexp.coffee
76+ - match: "/{3}[imgy]{0,4}"
77+ pop: true
78+ - include: interpolated_coffee
79+ - include: embedded_comment
80+ - match: '/(?![\s=/*+{}?]).*?[^\\]/[igmy]{0,4}(?![a-zA-Z0-9])'
81+ scope: string.regexp.coffee
82+ - match: |-
83+ (?x)
84+ \b(?<![\.\$])(
85+ break|by|catch|continue|else|finally|for|in|of|if|return|switch|
86+ then|throw|try|unless|when|while|until|loop|do|(?<=for)\s+own
87+ )(?!\s*:)\b
88+ scope: keyword.control.coffee
89+ - match: |-
90+ (?x)
91+ and=|or=|!|%|&|\^|\*|\/|(\-)?\-(?!>)|\+\+|\+|~|==|=(?!>)|!=|<=|>=|<<=|>>=|
92+ >>>=|<>|<|>|!|&&|\.\.(\.)?|\?|\||\|\||\:|\*=|(?<!\()/=|%=|\+=|\-=|&=|
93+ \^=|\b(?<![\.\$])(instanceof|new|delete|typeof|and|or|is|isnt|not|super)\b
94+ scope: keyword.operator.coffee
95+ - match: '([a-zA-Z\$_](\w|\$|\.)*\s*(?!\::)((:)|(=[^=]))(?!(\s*\(.*\))?\s*((=|-)>)))'
96+ scope: variable.assignment.coffee
97+ captures:
98+ 1: variable.assignment.coffee
99+ 4: punctuation.separator.key-value
100+ 5: keyword.operator.coffee
101+ - match: '(?<=\s|^)([\[\{])(?=.*?[\]\}]\s+[:=])'
102+ captures:
103+ 0: keyword.operator.coffee
104+ push:
105+ - meta_scope: meta.variable.assignment.destructured.coffee
106+ - match: '([\]\}]\s*[:=])'
107+ captures:
108+ 0: keyword.operator.coffee
109+ pop: true
110+ - include: variable_name
111+ - include: instance_variable
112+ - include: single_quoted_string
113+ - include: double_quoted_string
114+ - include: numeric
115+ - match: |-
116+ (?x)
117+ (\s*)
118+ (?=[a-zA-Z\$_])
119+ (
120+ [a-zA-Z\$_](\w|\$|:|\.)*\s*
121+ (?=[:=](\s*\(.*\))?\s*([=-]>))
122+ )
123+ scope: meta.function.coffee
124+ captures:
125+ 2: entity.name.function.coffee
126+ 3: entity.name.function.coffee
127+ 4: variable.parameter.function.coffee
128+ 5: storage.type.function.coffee
129+ - match: ^\s*(describe|it|app\.(get|post|put|all|del|delete))
130+ comment: Show well-known functions from Express and Mocha in Go To Symbol view
131+ push:
132+ - meta_scope: meta.function.symbols.coffee
133+ - match: $
134+ pop: true
135+ - include: main
136+ - match: "[=-]>"
137+ scope: storage.type.function.coffee
138+ - match: '\b(?<!\.)(true|on|yes)(?!\s*[:=])\b'
139+ scope: constant.language.boolean.true.coffee
140+ - match: '\b(?<!\.)(false|off|no)(?!\s*[:=])\b'
141+ scope: constant.language.boolean.false.coffee
142+ - match: '\b(?<!\.)null(?!\s*[:=])\b'
143+ scope: constant.language.null.coffee
144+ - match: '\b(?<!\.)(this|extends)(?!\s*[:=])\b'
145+ scope: variable.language.coffee
146+ - match: '(class\b)\s+(@?[a-zA-Z\$_][\w\.]*)?(?:\s+(extends)\s+(@?[a-zA-Z\$\._][\w\.]*))?'
147+ scope: meta.class.coffee
148+ captures:
149+ 1: storage.type.class.coffee
150+ 2: entity.name.type.class.coffee
151+ 3: keyword.control.inheritance.coffee
152+ 4: entity.other.inherited-class.coffee
153+ - match: \b(debugger|\\)\b
154+ scope: keyword.other.coffee
155+ - match: |-
156+ (?x)\b(
157+ Array|ArrayBuffer|Blob|Boolean|Date|document|event|Function|
158+ Int(8|16|32|64)Array|Math|Map|Number|
159+ Object|Proxy|RegExp|Set|String|WeakMap|
160+ window|Uint(8|16|32|64)Array|XMLHttpRequest
161+ )\b
162+ scope: support.class.coffee
163+ - match: ((?<=console\.)(debug|warn|info|log|error|time|timeEnd|assert))\b
164+ scope: support.function.console.coffee
165+ - match: |-
166+ (?x)\b(
167+ decodeURI(Component)?|encodeURI(Component)?|eval|parse(Float|Int)|require
168+ )\b
169+ scope: support.function.coffee
170+ - match: |-
171+ (?x)((?<=\.)(
172+ apply|call|concat|every|filter|forEach|from|hasOwnProperty|indexOf|
173+ isPrototypeOf|join|lastIndexOf|map|of|pop|propertyIsEnumerable|push|
174+ reduce(Right)?|reverse|shift|slice|some|sort|splice|to(Locale)?String|
175+ unshift|valueOf
176+ ))\b
177+ scope: support.function.method.array.coffee
178+ - match: |-
179+ (?x)((?<=Array\.)(
180+ isArray
181+ ))\b
182+ scope: support.function.static.array.coffee
183+ - match: |-
184+ (?x)((?<=Object\.)(
185+ create|definePropert(ies|y)|freeze|getOwnProperty(Descriptors?|Names)|
186+ getProperty(Descriptor|Names)|getPrototypeOf|is(Extensible|Frozen|Sealed)?|
187+ isnt|keys|preventExtensions|seal
188+ ))\b
189+ scope: support.function.static.object.coffee
190+ - match: |-
191+ (?x)((?<=Math\.)(
192+ abs|acos|acosh|asin|asinh|atan|atan2|atanh|ceil|cos|cosh|exp|expm1|floor|
193+ hypot|log|log10|log1p|log2|max|min|pow|random|round|sign|sin|sinh|sqrt|
194+ tan|tanh|trunc
195+ ))\b
196+ scope: support.function.static.math.coffee
197+ - match: |-
198+ (?x)((?<=Number\.)(
199+ is(Finite|Integer|NaN)|toInteger
200+ ))\b
201+ scope: support.function.static.number.coffee
202+ - match: \b(Infinity|NaN|undefined)\b
203+ scope: constant.language.coffee
204+ - match: \;
205+ scope: punctuation.terminator.statement.coffee
206+ - match: ',[ |\t]*'
207+ scope: meta.delimiter.object.comma.coffee
208+ - match: \.
209+ scope: meta.delimiter.method.period.coffee
210+ - match: '\{|\}'
211+ scope: meta.brace.curly.coffee
212+ - match: \(|\)
213+ scope: meta.brace.round.coffee
214+ - match: '\[|\]\s*'
215+ scope: meta.brace.square.coffee
216+ - include: instance_variable
217+ - include: single_quoted_string
218+ - include: double_quoted_string
219+ - include: numeric
220+ double_quoted_string:
221+ - match: '"'
222+ captures:
223+ 0: punctuation.definition.string.begin.coffee
224+ push:
225+ - meta_scope: string.quoted.double.coffee
226+ - match: '"'
227+ captures:
228+ 0: punctuation.definition.string.end.coffee
229+ pop: true
230+ - match: '\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)'
231+ scope: constant.character.escape.coffee
232+ - include: interpolated_coffee
233+ embedded_comment:
234+ - match: (?<!\\)(#).*$\n?
235+ scope: comment.line.number-sign.coffee
236+ captures:
237+ 1: punctuation.definition.comment.coffee
238+ instance_variable:
239+ - match: '(@)([a-zA-Z_\$]\w*)?'
240+ scope: variable.other.readwrite.instance.coffee
241+ interpolated_coffee:
242+ - match: '\#\{'
243+ captures:
244+ 0: punctuation.section.embedded.coffee
245+ push:
246+ - meta_scope: source.coffee.embedded.source
247+ - match: '\}'
248+ captures:
249+ 0: punctuation.section.embedded.coffee
250+ pop: true
251+ - include: main
252+ numeric:
253+ - match: '(?<!\$)\b((0([box])[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?(e[+\-]?[0-9]+)?))\b'
254+ scope: constant.numeric.coffee
255+ single_quoted_string:
256+ - match: "'"
257+ captures:
258+ 0: punctuation.definition.string.begin.coffee
259+ push:
260+ - meta_scope: string.quoted.single.coffee
261+ - match: "'"
262+ captures:
263+ 0: punctuation.definition.string.end.coffee
264+ pop: true
265+ - match: '\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)'
266+ scope: constant.character.escape.coffee
267+ variable_name:
268+ - match: '([a-zA-Z\$_]\w*(\.\w+)*)'
269+ scope: variable.assignment.coffee
270+ captures:
271+ 1: variable.assignment.coffee
assets/syntaxes/CpuInfo.sublime-syntax → assets/syntaxes/02_Extra/CpuInfo.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/Crystalnew file+1

Submodule changed.

assets/syntaxes/Crystal.sublime-syntax → assets/syntaxes/02_Extra/Crystal.sublime-syntaxrenamed+4−3
@@ -108,7 +108,7 @@ contexts:
108108 - match: (?<!\.)\belse(\s)+if\b
109109 comment: else if is a common mistake carried over from other languages. it works if you put in a second end, but it’s never what you want.
110110 scope: invalid.deprecated.crystal
111− - match: '(?<!\.)\b(BEGIN|alias|as|begin|case|select|abstract|class|END|ensure|for|fun|if|ifdef|in|lib|module|of|out|private|protected|rescue|struct|with|union|enum|macro|then|type|unless|until|while)\b(?![?!])'
111+ - match: '(?<!\.)\b(BEGIN|alias|as|begin|case|select|abstract|class|END|ensure|for|fun|if|ifdef|in|lib|module|of|out|private|protected|rescue|struct|with|union|enum|macro|then|unless|until|while)\b(?![?!])|(?<!\.)\btype\b\s*(?=[A-Z])'
112112 comment: everything being a reserved word, not a value and needing a 'end' is a..
113113 scope: keyword.control.primary.crystal
114114 - match: '(?<!\.)\b(when|else|elsif)\b(?![?!])'
@@ -131,7 +131,7 @@ contexts:
131131 scope: keyword.control.pseudo-method.crystal
132132 - match: '\b(nil|true|false)\b(?![?!])'
133133 scope: constant.language.crystal
134− - match: '\b(__(DIR|FILE|LINE|END_LINE)__|self)\b(?![?!])'
134+ - match: '\b(__(DIR|FILE|LINE|END_LINE)__|self)\b(?![?!])|self[?]'
135135 scope: variable.language.crystal
136136 - match: '\b(initialize|new|loop|include|extend|raise|getter|setter|property|class_getter|class_setter|class_property|describe|context|it|with|delegate|def_hash|def_equals|def_equals_and_hash|forward_missing_to|record|assert_responds_to|spawn|annotation|verbatim)\b[!?]?'
137137 comment: everything being a method but having a special function is a..
@@ -190,7 +190,7 @@ contexts:
190190 push:
191191 - meta_scope: meta.function.method.with-arguments.crystal
192192 - meta_content_scope: variable.parameter.function.crystal
193− - match: \)\s*$|\)\s*:|\)\s*;
193+ - match: \)
194194 captures:
195195 0: punctuation.definition.parameters.crystal
196196 pop: true
@@ -705,6 +705,7 @@ contexts:
705705 0: punctuation.definition.string.end.crystal
706706 pop: true
707707 - include: heredoc
708+ - include: scope:text.html.basic
708709 - include: scope:source.js
709710 - include: interpolated_crystal
710711 - include: escaped_char
assets/syntaxes/02_Extra/Dartnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Dart.sublime-syntaxnew file+211
@@ -0,0 +1,211 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/syntax.html
4+name: Dart
5+file_extensions:
6+ - dart
7+scope: source.dart
8+contexts:
9+ main:
10+ - match: ^(#!.*)$
11+ scope: meta.preprocessor.script.dart
12+ - match: ^\w*\b(library|import|part of|part|export)\b
13+ captures:
14+ 0: keyword.other.import.dart
15+ push:
16+ - meta_scope: meta.declaration.dart
17+ - match: ;
18+ captures:
19+ 0: punctuation.terminator.dart
20+ pop: true
21+ - include: strings
22+ - include: comments
23+ - match: \b(as|show|hide)\b
24+ scope: keyword.other.import.dart
25+ - include: comments
26+ - include: punctuation
27+ - include: annotations
28+ - include: keywords
29+ - include: constants-and-special-vars
30+ - include: strings
31+ annotations:
32+ - match: '@[a-zA-Z]+'
33+ scope: storage.type.annotation.dart
34+ comments:
35+ - match: /\*\*/
36+ scope: comment.block.empty.dart
37+ captures:
38+ 0: punctuation.definition.comment.dart
39+ - include: comments-doc-oldschool
40+ - include: comments-doc
41+ - include: comments-inline
42+ comments-block:
43+ - match: /\*
44+ push:
45+ - meta_scope: comment.block.dart
46+ - match: \*/
47+ pop: true
48+ - include: comments-block
49+ comments-doc:
50+ - match: ///
51+ push:
52+ - meta_scope: comment.block.documentation.dart
53+ - match: .*
54+ pop: true
55+ - include: dartdoc
56+ comments-doc-oldschool:
57+ - match: /\*\*
58+ push:
59+ - meta_scope: comment.block.documentation.dart
60+ - match: \*/
61+ pop: true
62+ - include: comments-doc-oldschool
63+ - include: comments-block
64+ - include: dartdoc
65+ comments-inline:
66+ - include: comments-block
67+ - match: ((//).*)$
68+ captures:
69+ 1: comment.line.double-slash.dart
70+ constants-and-special-vars:
71+ - match: (?<!\$)\b(true|false|null)\b(?!\$)
72+ scope: constant.language.dart
73+ - match: (?<!\$)\b(this|super)\b(?!\$)
74+ scope: variable.language.dart
75+ - match: '(?<!\$)\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b(?!\$)'
76+ scope: constant.numeric.dart
77+ - match: '(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*|bool\b|num\b|int\b|double\b|dynamic\b)'
78+ scope: support.class.dart
79+ - match: '([_$]*[a-z][a-zA-Z0-9_$]*)(<|\(|\s+=>)'
80+ captures:
81+ 1: entity.name.function.dart
82+ dartdoc:
83+ - match: '(\[.*?\])'
84+ captures:
85+ 0: variable.name.source.dart
86+ - match: '^ {4,}(?![ \*]).*'
87+ captures:
88+ 0: variable.name.source.dart
89+ - match: '```.*?$'
90+ push:
91+ - meta_content_scope: variable.other.source.dart
92+ - match: '```'
93+ pop: true
94+ - match: (`.*?`)
95+ captures:
96+ 0: variable.other.source.dart
97+ - match: (`.*?`)
98+ captures:
99+ 0: variable.other.source.dart
100+ - match: (\* (( ).*))$
101+ captures:
102+ 2: variable.other.source.dart
103+ - match: (\* .*)$
104+ keywords:
105+ - match: (?<!\$)\bas\b(?!\$)
106+ scope: keyword.cast.dart
107+ - match: (?<!\$)\b(try|on|catch|finally|throw|rethrow)\b(?!\$)
108+ scope: keyword.control.catch-exception.dart
109+ - match: (?<!\$)\b(break|case|continue|default|do|else|for|if|in|return|switch|while)\b(?!\$)
110+ scope: keyword.control.dart
111+ - match: (?<!\$)\b(sync(\*)?|async(\*)?|await|yield(\*)?)\b(?!\$)
112+ scope: keyword.control.dart
113+ - match: (?<!\$)\bassert\b(?!\$)
114+ scope: keyword.control.dart
115+ - match: (?<!\$)\b(new)\b(?!\$)
116+ scope: keyword.control.new.dart
117+ - match: (?<!\$)\b(abstract|class|enum|extends|external|factory|implements|get|mixin|native|operator|set|typedef|with|covariant)\b(?!\$)
118+ scope: keyword.declaration.dart
119+ - match: (?<!\$)\b(is\!?)\b(?!\$)
120+ scope: keyword.operator.dart
121+ - match: '\?|:'
122+ scope: keyword.operator.ternary.dart
123+ - match: (<<|>>>?|~|\^|\||&)
124+ scope: keyword.operator.bitwise.dart
125+ - match: ((&|\^|\||<<|>>>?)=)
126+ scope: keyword.operator.assignment.bitwise.dart
127+ - match: (=>)
128+ scope: keyword.operator.closure.dart
129+ - match: (==|!=|<=?|>=?)
130+ scope: keyword.operator.comparison.dart
131+ - match: '(([+*/%-]|\~)=)'
132+ scope: keyword.operator.assignment.arithmetic.dart
133+ - match: (=)
134+ scope: keyword.operator.assignment.dart
135+ - match: (\-\-|\+\+)
136+ scope: keyword.operator.increment-decrement.dart
137+ - match: (\-|\+|\*|\/|\~\/|%)
138+ scope: keyword.operator.arithmetic.dart
139+ - match: (!|&&|\|\|)
140+ scope: keyword.operator.logical.dart
141+ - match: (?<!\$)\b(static|final|const)\b(?!\$)
142+ scope: storage.modifier.dart
143+ - match: (?<!\$)\b(?:void|var)\b(?!\$)
144+ scope: storage.type.primitive.dart
145+ punctuation:
146+ - match: ','
147+ scope: punctuation.comma.dart
148+ - match: ;
149+ scope: punctuation.terminator.dart
150+ - match: \.
151+ scope: punctuation.dot.dart
152+ string-interp:
153+ - match: '\$((\w+)|\{([^{}]+)\})'
154+ captures:
155+ 2: variable.parameter.dart
156+ 3: variable.parameter.dart
157+ - match: \\.
158+ scope: constant.character.escape.dart
159+ strings:
160+ - match: (?<!r)"""
161+ push:
162+ - meta_scope: string.interpolated.triple.double.dart
163+ - match: '"""(?!")'
164+ pop: true
165+ - include: string-interp
166+ - match: (?<!r)'''
167+ push:
168+ - meta_scope: string.interpolated.triple.single.dart
169+ - match: '''''''(?!'')'
170+ pop: true
171+ - include: string-interp
172+ - match: r"""
173+ push:
174+ - meta_scope: string.quoted.triple.double.dart
175+ - match: '"""(?!")'
176+ pop: true
177+ - match: r'''
178+ push:
179+ - meta_scope: string.quoted.triple.single.dart
180+ - match: '''''''(?!'')'
181+ pop: true
182+ - match: (?<!\|r)"
183+ push:
184+ - meta_scope: string.interpolated.double.dart
185+ - match: '"'
186+ pop: true
187+ - match: \n
188+ scope: invalid.string.newline
189+ - include: string-interp
190+ - match: r"
191+ push:
192+ - meta_scope: string.quoted.double.dart
193+ - match: '"'
194+ pop: true
195+ - match: \n
196+ scope: invalid.string.newline
197+ - match: (?<!\|r)'
198+ push:
199+ - meta_scope: string.interpolated.single.dart
200+ - match: "'"
201+ pop: true
202+ - match: \n
203+ scope: invalid.string.newline
204+ - include: string-interp
205+ - match: r'
206+ push:
207+ - meta_scope: string.quoted.single.dart
208+ - match: "'"
209+ pop: true
210+ - match: \n
211+ scope: invalid.string.newline
assets/syntaxes/Docker → assets/syntaxes/02_Extra/Dockerrenamed

The content is the same.

assets/syntaxes/02_Extra/DotENVnew file+1

Submodule changed.

assets/syntaxes/DotENV.sublime-syntax → assets/syntaxes/02_Extra/DotENV.sublime-syntaxrenamed+4−2
@@ -4,7 +4,6 @@
44name: DotENV
55file_extensions:
66 - .env
7− - .envrc
87 - .env.dist
98 - .env.local
109 - .env.sample
@@ -19,8 +18,11 @@ file_extensions:
1918 - .env.production
2019 - .env.production.local
2120 - .env.dusk.local
22− - .flaskenv
2321 - .env.staging
22+ - .env.default
23+ - .env.defaults
24+ - .envrc
25+ - .flaskenv
2426scope: source.env
2527contexts:
2628 main:
assets/syntaxes/02_Extra/Elixirnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Elmnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Emailnew file+1

Submodule changed.

assets/syntaxes/02_Extra/FSharpnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Fishnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Fortrannew file+1

Submodule changed.

assets/syntaxes/Fstab.sublime-syntax → assets/syntaxes/02_Extra/Fstab.sublime-syntaxrenamed+2
@@ -4,6 +4,8 @@
44name: fstab
55file_extensions:
66 - fstab
7+ - crypttab
8+ - mtab
79scope: source.fstab
810
911contexts:
assets/syntaxes/02_Extra/GLSLnew file+1

Submodule changed.

assets/syntaxes/02_Extra/GraphQLnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Groffnew file+1

Submodule changed.

assets/syntaxes/Group.sublime-syntax → assets/syntaxes/02_Extra/Group.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/HTML (Twig) → assets/syntaxes/02_Extra/HTML (Twig)renamed

The content is the same.

assets/syntaxes/HTML (Twig).sublime-syntax → assets/syntaxes/02_Extra/HTML (Twig).sublime-syntaxrenamed

The content is the same.

assets/syntaxes/Hosts.sublime-syntax → assets/syntaxes/02_Extra/Hosts.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/INI → assets/syntaxes/02_Extra/INIrenamed

The content is the same.

assets/syntaxes/INI.sublime-syntax → assets/syntaxes/02_Extra/INI.sublime-syntaxrenamed+4−3
@@ -5,8 +5,8 @@ name: INI
55file_extensions:
66 - ini
77 - INI
8− - inf
9− - INF
8+ - "inf"
9+ - "INF"
1010 - reg
1111 - REG
1212 - lng
@@ -25,12 +25,13 @@ contexts:
2525 scope: comment.line.semicolon.ini
2626 captures:
2727 1: punctuation.definition.comment.ini
28− - match: '^\s*(\[)(.*?)(\])'
28+ - match: '^\s*(\[)(.*?)(\])\s*(;.*)?$\n?'
2929 scope: meta.tag.section.ini
3030 captures:
3131 1: punctuation.definition.section.ini
3232 2: entity.section.ini
3333 3: punctuation.definition.section.ini
34+ 4: comment.definition.section.ini
3435 - match: '^(\s*(["'']?)(.+?)(\2)\s*(=))?\s*((["'']?)(.*?)(\7))\s*(;.*)?$\n?'
3536 scope: meta.declaration.ini
3637 captures:
assets/syntaxes/02_Extra/JavaScript (Babel)new file+1

Submodule changed.

assets/syntaxes/Javascript (Babel).sublime-syntax → assets/syntaxes/02_Extra/JavaScript (Babel).sublime-syntaxrenamed+2
@@ -4,9 +4,11 @@
44name: JavaScript (Babel)
55file_extensions:
66 - js
7+ - mjs
78 - jsx
89 - babel
910 - es6
11+ - cjs
1012first_line_match: ^#!\s*/.*\b(node|js)$\n?
1113scope: source.js
1214contexts:
assets/syntaxes/Jinja2 → assets/syntaxes/02_Extra/Jinja2renamed

The content is the same.

assets/syntaxes/Jsonnet → assets/syntaxes/02_Extra/Jsonnetrenamed

The content is the same.

assets/syntaxes/02_Extra/Julianew file+1

Submodule changed.

assets/syntaxes/Kotlin → assets/syntaxes/02_Extra/Kotlinrenamed

The content is the same.

assets/syntaxes/Kotlin.sublime-syntax → assets/syntaxes/02_Extra/Kotlin.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/LESSnew file+1

Submodule changed.

assets/syntaxes/02_Extra/LLVMnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Leannew file+1

Submodule changed.

assets/syntaxes/02_Extra/Lean.sublime-syntaxnew file+125
@@ -0,0 +1,125 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Lean
5+file_extensions:
6+ - lean
7+scope: source.lean
8+contexts:
9+ main:
10+ - include: comments
11+ - match: '\b(?<!\.)(inductive|coinductive|structure|theorem|axiom|axioms|abbreviation|lemma|definition|def|instance|class|constant)\b\s+(\{[^}]*\})?'
12+ captures:
13+ 1: keyword.other.definitioncommand.lean
14+ push:
15+ - meta_scope: meta.definitioncommand.lean
16+ - match: '(?=\bwith\b|\bextends\b|[:\|\(\[\{⦃<>])'
17+ pop: true
18+ - include: comments
19+ - include: definitionName
20+ - match: ","
21+ - match: \b(Prop|Type|Sort)\b
22+ scope: storage.type.lean
23+ - match: '\battribute\b\s*\[[^\]]*\]'
24+ scope: storage.modifier.lean
25+ - match: '@\[[^\]]*\]'
26+ scope: storage.modifier.lean
27+ - match: \b(?<!\.)(private|meta|mutual|protected|noncomputable)\b
28+ scope: keyword.control.definition.modifier.lean
29+ - match: \b(sorry)\b
30+ scope: invalid.illegal.lean
31+ - match: '#print\s+(def|definition|inductive|instance|structure|axiom|axioms|class)\b'
32+ scope: keyword.other.command.lean
33+ - match: '#(print|eval|reduce|check|help|exit|find|where)\b'
34+ scope: keyword.other.command.lean
35+ - match: \b(?<!\.)(import|export|prelude|theory|definition|def|abbreviation|instance|renaming|hiding|exposing|parameter|parameters|begin|constant|constants|lemma|variable|variables|theorem|example|open|axiom|inductive|coinductive|with|structure|universe|universes|alias|precedence|reserve|postfix|prefix|infix|infixl|infixr|notation|end|using|namespace|section|local|set_option|extends|include|omit|class|classes|instances|raw|run_cmd|restate_axiom)(?!\.)\b
36+ scope: keyword.other.lean
37+ - match: \b(?<!\.)(calc|have|this|match|do|suffices|show|by|in|at|let|forall|fun|exists|assume|from|obtain|haveI|λ)(?!\.)\b
38+ scope: keyword.other.lean
39+ - match: «
40+ push:
41+ - meta_content_scope: entity.name.lean
42+ - match: »
43+ pop: true
44+ - match: \b(?<!\.)(if|then|else)\b
45+ scope: keyword.control.lean
46+ - match: '"'
47+ captures:
48+ 0: punctuation.definition.string.begin.lean
49+ push:
50+ - meta_scope: string.quoted.double.lean
51+ - match: '"'
52+ captures:
53+ 0: punctuation.definition.string.end.lean
54+ pop: true
55+ - match: '\\[\\"nt'']'
56+ scope: constant.character.escape.lean
57+ - match: '\\x[0-9A-Fa-f][0-9A-Fa-f]'
58+ scope: constant.character.escape.lean
59+ - match: '\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]'
60+ scope: constant.character.escape.lean
61+ - match: '''[^\\'']'''
62+ scope: string.quoted.single.lean
63+ - match: '''(\\(x..|u....|.))'''
64+ scope: string.quoted.single.lean
65+ captures:
66+ 1: constant.character.escape.lean
67+ - match: '`+[^\[(]\S+'
68+ scope: entity.name.lean
69+ - match: '\b([0-9]+|0([xX][0-9a-fA-F]+))\b'
70+ scope: constant.numeric.lean
71+ blockComment:
72+ - match: /-
73+ push:
74+ - meta_scope: comment.block.lean
75+ - match: "-/"
76+ pop: true
77+ - include: scope:source.lean.markdown
78+ - include: blockComment
79+ comments:
80+ - include: dashComment
81+ - include: docComment
82+ - include: stringBlock
83+ - include: modDocComment
84+ - include: blockComment
85+ dashComment:
86+ - match: (--)
87+ captures:
88+ 0: punctuation.definition.comment.lean
89+ push:
90+ - meta_scope: comment.line.double-dash.lean
91+ - match: $
92+ pop: true
93+ - include: scope:source.lean.markdown
94+ definitionName:
95+ - match: '\b[^:«»\(\)\{\}[:space:]=→λ∀?][^:«»\(\)\{\}[:space:]]*'
96+ scope: entity.name.function.lean
97+ - match: «
98+ push:
99+ - meta_content_scope: entity.name.function.lean
100+ - match: »
101+ pop: true
102+ docComment:
103+ - match: /--
104+ push:
105+ - meta_scope: comment.block.documentation.lean
106+ - match: "-/"
107+ pop: true
108+ - include: scope:source.lean.markdown
109+ - include: blockComment
110+ modDocComment:
111+ - match: /-!
112+ push:
113+ - meta_scope: comment.block.documentation.lean
114+ - match: "-/"
115+ pop: true
116+ - include: scope:source.lean.markdown
117+ - include: blockComment
118+ stringBlock:
119+ - match: /-"
120+ push:
121+ - meta_scope: comment.block.string.lean
122+ - match: '"-/'
123+ pop: true
124+ - include: scope:source.lean.markdown
125+ - include: blockComment
assets/syntaxes/02_Extra/LiveScriptnew file+1

Submodule changed.

assets/syntaxes/02_Extra/LiveScript.sublime-syntaxnew file+400
@@ -0,0 +1,400 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: LiveScript
5+comment: "LiveScript Syntax: version 1"
6+file_extensions:
7+ - ls
8+ - Slakefile
9+ - ls.erb
10+first_line_match: ^#!.*\bls
11+scope: source.livescript
12+contexts:
13+ main:
14+ - match: |-
15+ (?x)
16+ !?[~-]{1,2}>\*?
17+ |<[~-]{1,2}!?
18+ |\(\s* (?= instanceof[\s)]|and[\s)]|or[\s)]|is[\s)]|isnt[\s)]|in[\s)]|import[\s)]|import\ all[\s)] |\.|[-+/*%^&<>=|][\b\s)\w$]|\*\*|\%\%)
19+ | (?<=[\s(]instanceof|[\s(]and|[\s(]or|[\s(]is|[\s(]isnt|[\s(]in|[\s(]import|[\s(]import\ all|[\s(]do|\.|\*\*|\%\%|[\b\s(\w$][-+/*%^&<>=|]) \s*\)
20+ scope: storage.type.function.livescript
21+ - match: \/\*
22+ captures:
23+ 0: punctuation.definition.comment.livescript
24+ push:
25+ - meta_scope: comment.block.livescript
26+ - match: \*\/
27+ captures:
28+ 0: punctuation.definition.comment.livescript
29+ pop: true
30+ - match: '@\w*'
31+ scope: storage.type.annotation.livescriptscript
32+ - match: '(#)(?!\{).*$\n?'
33+ scope: comment.line.number-sign.livescript
34+ captures:
35+ 1: punctuation.definition.comment.livescript
36+ - match: '((?:!|~|!~|~!)?function\*?)\s+([$\w\-]*[$\w]+)'
37+ captures:
38+ 1: storage.type.function.livescript
39+ 2: entity.name.function.livescript
40+ - match: (new)\s+(\w+(?:\.\w*)*)
41+ captures:
42+ 1: keyword.operator.new.livescript
43+ 2: entity.name.type.instance.livescript
44+ - match: \b(package|private|protected|public|interface|enum|static)(?!-)\b
45+ scope: keyword.illegal.livescript
46+ - match: "'''"
47+ captures:
48+ 0: punctuation.definition.string.begin.livescript
49+ push:
50+ - meta_scope: string.quoted.heredoc.livescript
51+ - match: "'''"
52+ captures:
53+ 0: punctuation.definition.string.end.livescript
54+ pop: true
55+ - match: '"""'
56+ captures:
57+ 0: punctuation.definition.string.begin.livescript
58+ push:
59+ - meta_scope: string.quoted.double.heredoc.livescript
60+ - match: '"""'
61+ captures:
62+ 0: punctuation.definition.string.end.livescript
63+ pop: true
64+ - match: \\.
65+ scope: constant.character.escape.livescript
66+ - include: interpolated_livescript
67+ - match: "``"
68+ captures:
69+ 0: punctuation.definition.string.begin.livescript
70+ push:
71+ - meta_scope: string.quoted.script.livescript
72+ - match: "``"
73+ captures:
74+ 0: punctuation.definition.string.end.livescript
75+ pop: true
76+ - match: '\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)'
77+ scope: constant.character.escape.livescript
78+ - match: '<\['
79+ push:
80+ - meta_scope: string.array-literal.livescript
81+ - match: '\]>'
82+ pop: true
83+ - match: '/{2}(?![\s=/*+{}?]).*?[^\\]/[igmy]{0,4}(?![a-zA-Z0-9])/{2}'
84+ scope: string.regexp.livescript
85+ - match: '/{2}\n'
86+ push:
87+ - meta_scope: string.regexp.livescript
88+ - match: "/{2}[imgy]{0,4}"
89+ pop: true
90+ - include: embedded_spaced_comment
91+ - include: interpolated_livescript
92+ - match: "/{2}"
93+ push:
94+ - meta_scope: string.regexp.livescript
95+ - match: "/{2}[imgy]{0,4}"
96+ pop: true
97+ - match: '\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)'
98+ scope: constant.character.escape.livescript
99+ - include: interpolated_livescript
100+ - match: '/(?![\s=/*+{}?]).*?[^\\]/[igmy]{0,4}(?![a-zA-Z0-9])'
101+ scope: string.regexp.livescript
102+ - match: |-
103+ (?x)
104+ \b(?<![\.\$\-@])(
105+ instanceof|new|delete|typeof|and|or|is|isnt|not
106+ )(?!\-|\s*:)\b
107+ scope: keyword.operator.livescript
108+ - match: <\||\|>
109+ scope: keyword.operator.livescript
110+ - match: "=>"
111+ scope: keyword.control.livescript
112+ - match: |-
113+ (?x)
114+ \b(?<![\.\$\-@])(?:
115+ return|break|continue|throw
116+ |try|if|while|for|for\s+own|switch|unless|until
117+ |catch|finally|else|nobreak|case|default|fallthrough|when|otherwise|then
118+ |yield
119+ )(?!\-|\s*:)\b
120+ scope: keyword.control.livescript
121+ - match: |-
122+ (?x)
123+ and=|or=|%|&|\^|\*|\/|(?<![a-zA-Z$_])(\-)?\-(?!\-?>)|\+\+|\+|
124+ ~(?!~?>)|==|=|!=|<=|>=|<<=|>>=|
125+ >>>=|<>|<(?!\[)|(?<!\])>|(?<!\w)!(?!([~\-]+)?>)|&&|\.\.(\.)?|\s\.\s|\?|\|\||\:|\*=|(?<!\()/=|%=|\+=|\-=|\.=|&=
126+ |\^=
127+ scope: keyword.operator.livescript
128+ - match: |-
129+ (?x)
130+ \b(?<![\.\$\-@])(?:
131+ function
132+ )(?!\-|\s*:)\b
133+ scope: storage.type.function.livescript
134+ - match: |-
135+ (?x)
136+ \b(?<![\.\$\-@])(?:
137+ this|throw|then|try|typeof!?|til|to
138+ |continue|const|case|catch|class
139+ |in|instanceof|import|import\s+all|implements|if|is
140+ |default|delete|debugger|do
141+ |for|for\s+own|finally|function|from|fallthrough
142+ |super|switch
143+ |else|nobreak|extends|export|eval
144+ |and|arguments
145+ |new|not
146+ |unless|until
147+ |while|with|when
148+ |of|or|otherwise
149+ |let|var|loop
150+ |match
151+ |by|yield
152+ )(?!\-|\s*:)\b
153+ scope: keyword.other.livescript
154+ - match: '([a-zA-Z\$_](?:[\w$.-])*)\s*(?!\::)((:)|(=(?!>)))\s*(?!(\s*!?\s*\(.*\))?\s*(!?[~-]{1,2}>\*?))'
155+ captures:
156+ 1: variable.assignment.livescript
157+ 3: punctuation.separator.key-value, keyword.operator.livescript
158+ 4: keyword.operator.livescript
159+ - match: '(?<=\s|^)([\[\{])(?=.*?[\]\}]\s+[:=])'
160+ captures:
161+ 0: keyword.operator.livescript
162+ push:
163+ - meta_scope: meta.variable.assignment.destructured.livescript
164+ - match: '([\]\}]\s*[:=])'
165+ captures:
166+ 0: keyword.operator.livescript
167+ pop: true
168+ - include: variable_name
169+ - include: instance_variable
170+ - include: single_quoted_string
171+ - include: double_quoted_string
172+ - include: numeric
173+ - match: |-
174+ (?x)
175+ (\s*)
176+ (?=[a-zA-Z\$_])
177+ ([a-zA-Z\$_]([\w$.:-])*)\s*
178+ (?=[:=](\s*!?\s*\(.*\))?\s*(!?[~-]{1,2}>\*?))
179+ scope: meta.function.livescript
180+ captures:
181+ 2: entity.name.function.livescript
182+ 3: entity.name.function.livescript
183+ 4: variable.parameter.function.livescript
184+ 5: storage.type.function.livescript
185+ - match: \b(?<!\.)(true|on|yes)(?!\s*:)\b
186+ scope: constant.language.boolean.true.livescript
187+ - match: \b(?<!\.)(false|off|no)(?!\s*:)\b
188+ scope: constant.language.boolean.false.livescript
189+ - match: \b(?<!\.)(null|void)(?!\s*:)\b
190+ scope: constant.language.null.livescript
191+ - match: \b(?<!\.)(super|this|extends)(?!\s*:)\b
192+ scope: variable.language.livescript
193+ - match: '(class\b)\s+(@?[a-zA-Z$_][\w$.-]*)?(?:\s+(extends)\s+(@?[a-zA-Z$_][\w$.-]*))?'
194+ scope: meta.class.livescript
195+ captures:
196+ 1: storage.type.class.livescript
197+ 2: entity.name.type.class.livescript
198+ 3: keyword.control.inheritance.livescript
199+ 4: entity.other.inherited-class.livescript
200+ - match: \b(debugger|\\)\b
201+ scope: keyword.other.livescript
202+ - match: |-
203+ (?x)\b(
204+ Array|ArrayBuffer|Blob|Boolean|Date|document|event|Function|
205+ Int(8|16|32|64)Array|Math|Map|Number|
206+ Object|Proxy|RegExp|Set|String|WeakMap|
207+ window|Uint(8|16|32|64)Array|XMLHttpRequest
208+ )\b
209+ scope: support.class.livescript
210+ - match: \b(console)\b
211+ scope: entity.name.type.object.livescript
212+ - match: \b(Infinity|NaN|undefined)\b
213+ scope: constant.language.livescript
214+ - match: \;
215+ scope: punctuation.terminator.statement.livescript
216+ - match: ',[ |\t]*'
217+ scope: meta.delimiter.object.comma.livescript
218+ - match: \.
219+ scope: meta.delimiter.method.period.livescript
220+ - match: '\{|\}'
221+ scope: meta.brace.curly.livescript
222+ - match: \(|\)
223+ scope: meta.brace.round.livescript
224+ - match: '\[|\]\s*'
225+ scope: meta.brace.square.livescript
226+ - include: instance_variable
227+ - include: backslash_string
228+ - include: single_quoted_string
229+ - include: double_quoted_string
230+ - include: numeric
231+ - match: '()(@|@@|[$\w\-]*[$\w]+)\s*(`)'
232+ captures:
233+ 1: keyword.operator.livescript
234+ 2: meta.function-call.livescript
235+ 3: keyword.operator.livescript
236+ - match: "`"
237+ scope: keyword.operator.livescript
238+ - match: '()(@|@@|[$\w\-]*[$\w]+)(?:(\??\!)|[(])'
239+ captures:
240+ 1: keyword.operator.livescript
241+ 2: meta.function-call.livescript
242+ 3: keyword.operator.livescript
243+ - match: '(@|@@|[$\w\-]*[$\w]+)(\?)? (?!\s*(((by|of|and|or|with|when|unless|if|is|isnt|else|nobreak|for|from|not in|in|catch|til|to|then|import|extends|implements|instanceof)\b)|[=:.*\/+\-%\^<>][ =)]|[`}%*)]|/(?!.*?/)|&&|[.][^.]|=>|\/ +|\||\|\||\-\-|\+\+|\|>|<|\||$|\n|\#|/\*))'
244+ captures:
245+ 1: meta.function-call.livescript
246+ 2: keyword.operator.livescript
247+ - match: \| _
248+ scope: keyword.control.livescript
249+ - match: '\|(?![.])'
250+ scope: keyword.control.livescript
251+ - match: \|
252+ scope: keyword.operator.livescript
253+ - match: ((?<=console\.)(debug|warn|info|log|error|time(End|-end)|assert))\b
254+ scope: support.function.console.livescript
255+ - match: |-
256+ (?x)\b(
257+ decodeURI(Component)?|encodeURI(Component)?|eval|parse(Float|Int)|require
258+ )\b
259+ scope: support.function.livescript
260+ - match: |-
261+ (?x)(?<![.-])\b(
262+ map|filter|reject|partition|find|each|head|tail|last|initial|empty|
263+ values|keys|length|cons|append|join|reverse|fold(l|r)?1?|unfoldr|
264+ and(List|-list)|or(List|-list)|any|all|unique|sum|product|mean|compact|
265+ concat(Map|-map)?|maximum|minimum|scan(l|r)?1?|replicate|slice|apply|
266+ split(At|-at)?|take(While|-while)?|drop(While|-while)?|span|first|
267+ break(It|-it)|list(ToObj|-to-obj)|obj(ToFunc|-to-func)|
268+ pairs(ToObj|-to-obj)|obj(ToPairs|-to-pairs|ToLists|-to-lists)|
269+ zip(All|-all)?(With|-with)?|compose|curry|partial|flip|fix|
270+ sort(With|-with|By|-by)?|group(By|-by)|break(List|-list|Str|-str)|
271+ difference|intersection|union|average|flatten|chars|unchars|repeat|
272+ lines|unlines|words|unwords|max|min|negate|abs|signum|quot|rem|div|mod|
273+ recip|pi|tau|exp|sqrt|ln|pow|sin|cos|tan|asin|acos|atan|atan2|truncate|
274+ round|ceiling|floor|is(It|-it)NaN|even|odd|gcd|lcm|disabled__id
275+ )\b(?![.-])
276+ comment: |
277+ Generated by DOM query from http://gkz.github.com/prelude-ls/:
278+ [].slice
279+ .call(document.querySelectorAll(".nav-pills li a"))
280+ .map(function(_) {return _.innerText})
281+ .filter(function(_) {return _.trim() !== '})
282+ .slice(2)
283+ .join("|")
284+ scope: support.function.prelude.livescript
285+ - match: '(?x)(?<![.-])\b(that|it|e|_)\b'
286+ scope: support.function.semireserved.livescript
287+ - match: |-
288+ (?x)((?<=(\.|\]|\)))(
289+ apply|call|concat|every|filter|for(Each|-each)|
290+ from|has(Own|-own)(Property|-property)|index(Of|-of)|
291+ is(Prototype|-prototype)(Of|-of)|join|last(Index|-index)(Of|-of)|
292+ map|of|pop|property(Is|-is)(Enumerable|-enumerable)|push|
293+ reduce(Right|-right)?|reverse|shift|slice|some|sort|
294+ splice|to(Locale|-locale)?(String|-string)|unshift|valueOf
295+ ))\b(?!-)
296+ scope: support.function.method.array.livescript
297+ - match: |-
298+ (?x)((?<=Array\.)(
299+ isArray
300+ ))\b
301+ scope: support.function.static.array.livescript
302+ - match: |-
303+ (?x)((?<=Object\.)(
304+ create|define(Propert|-propert)(ies|y)|freeze|
305+ get(Own|-own)(Property|-property)(Descriptors?|Names)|
306+ get(Property|-property)(Descriptor|Names)|getPrototypeOf|
307+ is((Extensible|-extensible)|(Frozen|-frozen)|(Sealed|-sealed))?|
308+ keys|prevent(Extensions|-extensions)|seal
309+ ))\b
310+ scope: support.function.static.object.livescript
311+ - match: |-
312+ (?x)((?<=Math\.)(
313+ abs|acos|acosh|asin|asinh|atan|atan2|atanh|ceil|cos|cosh|exp|expm1|floor|
314+ hypot|log|log10|log1p|log2|max|min|pow|random|round|sign|sin|sinh|sqrt|
315+ tan|tanh|trunc
316+ ))\b
317+ scope: support.function.static.math.livescript
318+ - match: |-
319+ (?x)((?<=Number\.)(
320+ is(Finite|Integer|NaN)|to(Integer|-integer)
321+ ))\b
322+ scope: support.function.static.number.livescript
323+ - match: '[\$\w][\w-]*'
324+ scope: variable.other.livescript
325+ backslash_string:
326+ - match: '\\([\\)\s,\};\]])?'
327+ captures:
328+ 0: string.quoted.single.livescript
329+ push:
330+ - meta_content_scope: string.quoted.single.livescript
331+ - match: '([\\)\s,\};\]])'
332+ captures:
333+ 0: punctuation.definition.string.end.livescript
334+ pop: true
335+ constructor_variable:
336+ - match: '([a-zA-Z$_][\w$-]*)(@{2})([a-zA-Z$_][\w$-]*)?'
337+ scope: variable.other.readwrite.constructor.livescript
338+ double_quoted_string:
339+ - match: '"'
340+ captures:
341+ 0: punctuation.definition.string.begin.livescript
342+ push:
343+ - meta_scope: string.quoted.double.livescript
344+ - match: '"'
345+ captures:
346+ 0: punctuation.definition.string.end.livescript
347+ pop: true
348+ - match: '\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)'
349+ scope: constant.character.escape.livescript
350+ - include: interpolated_livescript
351+ embedded_comment:
352+ - match: (?<!\\)(#).*$\n
353+ scope: comment.line.number-sign.livescript
354+ captures:
355+ 1: punctuation.definition.comment.livescript
356+ embedded_spaced_comment:
357+ - match: (?<!\\)(#\s).*$\n
358+ scope: comment.line.number-sign.livescript
359+ captures:
360+ 1: punctuation.definition.comment.livescript
361+ instance_variable:
362+ - match: '(?<![$\w\-])(@)'
363+ scope: variable.other.readwrite.instance.livescript
364+ interpolated_livescript:
365+ - match: '\#\{'
366+ captures:
367+ 0: punctuation.section.embedded.livescript
368+ push:
369+ - meta_scope: source.livescript.embedded.source
370+ - match: '\}'
371+ captures:
372+ 0: punctuation.section.embedded.livescript
373+ pop: true
374+ - include: main
375+ - match: '\#'
376+ push:
377+ - meta_scope: source.livescript.embedded.source.simple
378+ - match: ""
379+ pop: true
380+ - include: main
381+ numeric:
382+ - match: '(?<![\$@a-zA-Z_])(([0-9]+r[0-9_]+)|((16r|0[xX])[0-9a-fA-F_]+)|([0-9]+(\.[0-9]+[0-9_]*)?(e[+\-]?[0-9_]+)?)[_a-zA-Z0-9]*)'
383+ scope: constant.numeric.livescript
384+ single_quoted_string:
385+ - match: "'"
386+ captures:
387+ 0: punctuation.definition.string.begin.livescript
388+ push:
389+ - meta_scope: string.quoted.single.livescript
390+ - match: "'"
391+ captures:
392+ 0: punctuation.definition.string.end.livescript
393+ pop: true
394+ - match: '\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)'
395+ scope: constant.character.escape.livescript
396+ variable_name:
397+ - match: '([a-zA-Z\$_][\w$-]*(\.\w+)*)(?!\-)'
398+ scope: variable.assignment.livescript
399+ captures:
400+ 1: variable.assignment.livescript
assets/syntaxes/02_Extra/Manpage.sublime-syntaxnew file+171
@@ -0,0 +1,171 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Manpage
5+file_extensions:
6+ - man
7+scope: source.man
8+
9+variables:
10+ section_heading: '^(?!#)\S.*$'
11+ command_line_option: '(--?[A-Za-z0-9][_A-Za-z0-9-]*)'
12+
13+contexts:
14+ prototype:
15+ # ignore syntax test lines
16+ - match: '^#'
17+ push:
18+ - meta_scope: comment.syntax-test.man
19+ - match: $\n?
20+ pop: true
21+ main:
22+ - match: ^
23+ push: first_line
24+
25+ first_line:
26+ - match: '([A-Z0-9_\-]+)(\()([^)]+)(\))\s*'
27+ captures:
28+ 1: meta.preprocessor.man
29+ 2: keyword.operator.man
30+ 3: string.quoted.other.man
31+ 4: keyword.operator.man
32+ push:
33+ - match: (?:[\w'-]+|\s(?!\s))
34+ scope: markup.heading.title.man
35+ - match: \s\s
36+ pop: true
37+ - match: '(?=\S|$)'
38+ pop: true
39+
40+ - match: '$'
41+ set: body
42+
43+ body:
44+ # English, ..., ..., ..., Russian, ...
45+
46+ - match: '^(?:SYNOPSIS|SYNTAX|SINTASSI|SKŁADNIA|СИНТАКСИС|書式)'
47+ scope: markup.heading.synopsis.man
48+ embed: synopsis
49+ escape: '(?={{section_heading}})'
50+
51+ - match: '^(?:USAGE)'
52+ scope: markup.heading.synopsis.man
53+ embed: synopsis
54+ escape: '(?={{section_heading}})'
55+
56+ - match: '{{section_heading}}'
57+ scope: markup.heading.other.man
58+ embed: options # some man pages put command line options under the description heading
59+ escape: '(?={{section_heading}})'
60+
61+ function-call:
62+ - match: '\b([A-Za-z0-9_\-]+\.)?([A-Za-z0-9_\-]+)(\()([^)]*)(\))'
63+ captures:
64+ 1: entity.name.function.man
65+ 2: entity.name.function.man
66+ 3: keyword.operator.man
67+ 4: constant.numeric.man
68+ 5: keyword.operator.man
69+
70+ env-var:
71+ - match: '(\$)(?!\d)(\w+)\b'
72+ captures:
73+ 1: punctuation.definition.variable.man
74+ 2: constant.other.man
75+
76+ options:
77+ # command-line options like --option=value, --some-flag, or -x
78+ - match: '^[ ]{7}(?=-)'
79+ push: expect-command-line-option
80+ - match: '(?:[^a-zA-Z0-9_-]|^|\s){{command_line_option}}'
81+ captures:
82+ 1: entity.name.command-line-option
83+ push:
84+ - match: '='
85+ scope: keyword.operator.man
86+ set:
87+ - match: '[^],.() ]+'
88+ scope: variable.parameter.man
89+ pop: true
90+ - match: $
91+ pop: true
92+ - match: ''
93+ pop: true
94+ - include: function-call
95+ - include: c-code
96+ - include: env-var
97+
98+ expect-command-line-option:
99+ - match: '[A-Za-z0-9-]+'
100+ scope: entity.name.command-line-option.man
101+ - match: '(\[)(=)'
102+ captures:
103+ 1: punctuation.section.brackets.begin.man
104+ 2: keyword.operator.man
105+ push: [command-line-option-or-pipe, expect-parameter]
106+ - match: '\['
107+ push:
108+ - meta_scope: entity.name.command-line-option.man
109+ - match: '\]'
110+ pop: true
111+ - match: '='
112+ scope: keyword.operator.man
113+ push: expect-parameter
114+ - match: (?=.*\.)
115+ pop: true
116+ - match: '\s'
117+ push: expect-parameter
118+ - match: '(,)\s*'
119+ captures:
120+ 1: punctuation.separator.man
121+ - match: $|(?=\])
122+ pop: true
123+
124+ expect-parameter:
125+ - match: '[A-Za-z0-9-]+'
126+ scope: variable.parameter.man
127+ - match: (?=\s+\|)
128+ pop: true
129+ - match: \|
130+ scope: keyword.operator.logical.man
131+ - match: '\['
132+ scope: punctuation.section.brackets.begin.man
133+ push:
134+ - match: '\]'
135+ scope: punctuation.section.brackets.end.man
136+ pop: true
137+ - include: expect-parameter
138+ - match: '$|(?=[],]|{{command_line_option}})'
139+ pop: true
140+
141+ c-code:
142+ - match: '^(?=\s+(?:#include\b|#define\b|/\*|struct\s+(\w+\s*)?\{))'
143+ embed: scope:source.c
144+ #embed_scope: source.c.embedded.man
145+ #escape: ^(?!#|\1|\s*(?:$|/\*|#include\b|#define\b))
146+ escape: ^(?=\s*(?:\(.*\.\)\s*$|[A-Z](?![A-Z])))
147+
148+ synopsis:
149+ - include: c-code
150+ - match: \[
151+ scope: punctuation.section.brackets.begin.man
152+ push: command-line-option-or-pipe
153+ - include: options
154+
155+ command-line-option-or-pipe:
156+ - match: (\|)\s*
157+ captures:
158+ 1: keyword.operator.logical.man
159+ #- match: (?={{command_line_option}})
160+ - match: \w+-\w+
161+ - match: (?=-)
162+ push:
163+ - match: (?=\s*\|)
164+ pop: true
165+ - include: expect-command-line-option
166+ - match: \]
167+ scope: punctuation.section.brackets.end.man
168+ pop: true
169+ - match: \[
170+ scope: punctuation.section.brackets.begin.man
171+ push: command-line-option-or-pipe
assets/syntaxes/02_Extra/MediaWikinew file+1

Submodule changed.

assets/syntaxes/MemInfo.sublime-syntax → assets/syntaxes/02_Extra/MemInfo.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/Nginxnew file+1

Submodule changed.

assets/syntaxes/Nim.sublime-syntax → assets/syntaxes/02_Extra/Nim.sublime-syntaxrenamed+1
@@ -5,6 +5,7 @@ name: Nim
55file_extensions:
66 - nim
77 - nims
8+ - nimble
89scope: source.nim
910contexts:
1011 main:
assets/syntaxes/02_Extra/Ninjanew file+1

Submodule changed.

assets/syntaxes/02_Extra/Ninja.sublime-syntaxnew file+52
@@ -0,0 +1,52 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Ninja
5+file_extensions:
6+ - ninja
7+scope: source.ninja
8+contexts:
9+ main:
10+ - match: (#).*$\n?
11+ comment: Comment line.
12+ scope: comment.line.number-sign.ninja
13+ captures:
14+ 1: punctuation.definition.comment.ninja
15+ - match: ^(rule)\b
16+ comment: Rule keyword and keywords for a rule.
17+ captures:
18+ 1: keyword.other.ninja
19+ push:
20+ - match: ^(?=\S)
21+ pop: true
22+ - include: main
23+ - match: \b(?:command|deps|depfile|description|generator|pool|restat|rspfile|rspfile_content)\b
24+ scope: keyword.other.ninja
25+ - match: ^(pool)\b
26+ comment: Pool keyword and keywords for a pool.
27+ captures:
28+ 1: keyword.other.ninja
29+ push:
30+ - match: ^(?=\S)
31+ pop: true
32+ - include: main
33+ - match: \b(?:depth)\b
34+ scope: keyword.other.ninja
35+ - match: ^(?:build|rule|default|include|subninja)\b
36+ comment: Other Keywords.
37+ scope: keyword.other.ninja
38+ - match: '(?:[=:]|\|{1,2})(?=\s)'
39+ comment: Operators for variable assignment (=), rule definition (:), implicit (|) and order only (||) dependencies.
40+ scope: keyword.operator.ninja
41+ - match: \$$
42+ comment: Line wrap.
43+ scope: keyword.operator.ninja
44+ - match: \$\$
45+ comment: Dollar literal.
46+ scope: keyword.operator.ninja
47+ - match: '\$[[:alnum:]_-]+'
48+ comment: Simple variables, e.g. $var.
49+ scope: variable.other.ninja
50+ - match: '\${[[:alnum:]_.-]+}'
51+ comment: "Variables, e.g. ${some.var.name}."
52+ scope: variable.other.ninja
assets/syntaxes/Nix → assets/syntaxes/02_Extra/Nixrenamed

The content is the same.

assets/syntaxes/Nix.sublime-syntax → assets/syntaxes/02_Extra/Nix.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/Org mode → assets/syntaxes/02_Extra/Org moderenamed

The content is the same.

assets/syntaxes/Org mode.sublime-syntax → assets/syntaxes/02_Extra/Org mode.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/Passwd.sublime-syntax → assets/syntaxes/02_Extra/Passwd.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/PowerShellnew file+1

Submodule changed.

assets/syntaxes/PowerShell.sublime-syntax → assets/syntaxes/02_Extra/PowerShell.sublime-syntaxrenamed+58−48
@@ -24,7 +24,7 @@ contexts:
2424 - include: commands
2525 - include: commentLine
2626 - include: variable
27− - include: interpolatedStringContent
27+ - include: subexpression
2828 - include: function
2929 - include: attribute
3030 - include: UsingDirective
@@ -33,32 +33,38 @@ contexts:
3333 - include: doubleQuotedString
3434 - include: scriptblock
3535 - include: doubleQuotedStringEscapes
36− - match: (?<!')'
36+ - match: '[''\x{2018}-\x{201B}]'
3737 captures:
3838 0: punctuation.definition.string.begin.powershell
3939 push:
4040 - meta_scope: string.quoted.single.powershell
41− - match: "'(?!')"
41+ - match: '[''\x{2018}-\x{201B}]{2}'
42+ scope: constant.character.escape.powershell
43+ - match: '[''\x{2018}-\x{201B}]'
4244 captures:
4345 0: punctuation.definition.string.end.powershell
4446 pop: true
45− - match: "''"
46− scope: constant.character.escape.powershell
47− - match: \@"(?=$)
47+ - match: '(@["\x{201C}-\x{201E}])\s*$'
48+ captures:
49+ 1: punctuation.definition.string.begin.powershell
4850 push:
4951 - meta_scope: string.quoted.double.heredoc.powershell
50− - match: ^"@
52+ - match: '^["\x{201C}-\x{201E}]@'
53+ captures:
54+ 0: punctuation.definition.string.end.powershell
5155 pop: true
5256 - include: variableNoProperty
5357 - include: doubleQuotedStringEscapes
5458 - include: interpolation
55− - match: \@'(?=$)
59+ - match: '(@[''\x{2018}-\x{201B}])\s*$'
60+ captures:
61+ 1: punctuation.definition.string.begin.powershell
5662 push:
5763 - meta_scope: string.quoted.single.heredoc.powershell
58− - match: ^'@
64+ - match: '^[''\x{2018}-\x{201B}]@'
65+ captures:
66+ 0: punctuation.definition.string.end.powershell
5967 pop: true
60− - match: "''"
61− scope: constant.character.escape.powershell
6268 - include: numericConstant
6369 - match: (@)(\()
6470 captures:
@@ -71,11 +77,12 @@ contexts:
7177 0: punctuation.section.group.end.powershell
7278 pop: true
7379 - include: main
74− - match: (\$)(\()
80+ - match: ((\$))(\()
7581 comment: "TODO: move to repo; make recursive."
7682 captures:
77− 1: punctuation.definition.variable.powershell
78− 2: punctuation.section.group.begin.powershell
83+ 1: keyword.other.substatement.powershell
84+ 2: punctuation.definition.subexpression.powershell
85+ 3: punctuation.section.group.begin.powershell
7986 push:
8087 - meta_scope: meta.group.complex.subexpression.powershell
8188 - match: \)
@@ -85,7 +92,7 @@ contexts:
8592 - include: main
8693 - match: '(\b(([A-Za-z0-9\-_\.]+)\.(?i:exe|com|cmd|bat))\b)'
8794 scope: support.function.powershell
88− - match: (?<!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\?)(?!\w)
95+ - match: (?<!\w|-|\.)((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\?)(?!\w)
8996 scope: keyword.control.powershell
9097 - match: '(?<!\w|-|[^\)]\.)((?i:(foreach|where)(?!-object))|%|\?)(?!\w)'
9198 scope: keyword.control.powershell
@@ -135,7 +142,7 @@ contexts:
135142 - meta_scope: meta.requires.powershell
136143 - match: $
137144 pop: true
138− - match: \-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version)
145+ - match: \-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)
139146 scope: keyword.other.powershell
140147 - match: '(?<!-)\b\p{L}+|\d+(?:\.\d+)*'
141148 scope: variable.parameter.powershell
@@ -187,51 +194,53 @@ contexts:
187194 comment: Builtin cmdlets with reserved verbs
188195 scope: support.function.powershell
189196 commentEmbeddedDocs:
190− - match: ^(?i:(?:\s?|#)+(\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS))
197+ - match: (?:^|\G)(?i:\s*(\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\s*$
198+ comment: these embedded doc keywords do not support arguments, must be the only thing on the line
191199 scope: comment.documentation.embedded.powershell
192200 captures:
193201 1: constant.string.documentation.powershell
194202 2: keyword.operator.documentation.powershell
195− - match: '(?i:\s?(\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP)\s+([a-z0-9-_]+))'
203+ - match: (?:^|\G)(?i:\s*(\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\s+(.+?)\s*$
204+ comment: these embedded doc keywords require arguments though the type required may be inconsistent, they may not all be able to use the same argument match
196205 scope: comment.documentation.embedded.powershell
197206 captures:
198207 1: constant.string.documentation.powershell
199208 2: keyword.operator.documentation.powershell
200209 3: keyword.operator.documentation.powershell
201210 commentLine:
202− - match: '(?<![`\\-])#'
211+ - match: '(?<![`\\-])(#)#*'
203212 captures:
204− 0: punctuation.definition.comment.powershell
213+ 1: punctuation.definition.comment.powershell
205214 push:
206215 - meta_scope: comment.line.powershell
207216 - match: $\n?
208217 captures:
209− 0: punctuation.definition.comment.powershell
218+ 1: punctuation.definition.comment.powershell
210219 pop: true
211220 - include: commentEmbeddedDocs
212221 - include: RequiresDirective
213222 doubleQuotedString:
214− - match: (?<!(?<!`)")"
223+ - match: '["\x{201C}-\x{201E}]'
215224 captures:
216225 0: punctuation.definition.string.begin.powershell
217226 push:
218227 - meta_scope: string.quoted.double.powershell
219− - match: '"(?!")'
220− captures:
221− 0: punctuation.definition.string.end.powershell
222− pop: true
223228 - match: '(?i)\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,64}\b'
224229 - include: variableNoProperty
225230 - include: doubleQuotedStringEscapes
231+ - match: '["\x{201C}-\x{201E}]{2}'
232+ scope: constant.character.escape.powershell
226233 - include: interpolation
227234 - match: '`\s*$'
228235 scope: keyword.other.powershell
236+ - match: '["\x{201C}-\x{201E}]'
237+ captures:
238+ 0: punctuation.definition.string.end.powershell
239+ pop: true
229240 doubleQuotedStringEscapes:
230− - match: '`[`0abefnrtv"''$]'
241+ - match: '`[`0abefnrtv''"\x{2018}-\x{201E}$]'
231242 scope: constant.character.escape.powershell
232243 - include: unicodeEscape
233− - match: '""'
234− scope: constant.character.escape.powershell
235244 function:
236245 - match: '^(?:\s*+)(?i)(function|filter|configuration|workflow)\s+(?:(global|local|script|private):)?((?:\p{L}|\d|_|-|\.)+)'
237246 captures:
@@ -263,33 +272,23 @@ contexts:
263272 4: keyword.operator.assignment.powershell
264273 - include: scriptblock
265274 - include: main
266− interpolatedStringContent:
267− - match: \(
268− captures:
269− 0: punctuation.section.group.begin.powershell
270− push:
271− - meta_content_scope: interpolated.simple.source.powershell
272− - match: \)
273− captures:
274− 0: punctuation.section.group.end.powershell
275− pop: true
276− - include: main
277− - include: interpolation
278− - include: interpolatedStringContent
279275 interpolation:
280− - match: (\$)(\()
276+ - match: (((\$)))((\())
281277 captures:
282− 1: punctuation.definition.variable.powershell
283− 2: punctuation.section.group.begin.powershell
278+ 1: keyword.other.substatement.powershell
279+ 2: punctuation.definition.substatement.powershell
280+ 3: punctuation.section.embedded.substatement.begin.powershell
281+ 4: punctuation.section.group.begin.powershell
282+ 5: punctuation.section.embedded.substatement.begin.powershell
284283 push:
284+ - meta_scope: meta.embedded.substatement.powershell
285285 - meta_content_scope: interpolated.complex.source.powershell
286− - match: \)
286+ - match: (\))
287287 captures:
288288 0: punctuation.section.group.end.powershell
289+ 1: punctuation.section.embedded.substatement.end.powershell
289290 pop: true
290291 - include: main
291− - include: interpolation
292− - include: interpolatedStringContent
293292 numericConstant:
294293 - match: '(?<!\w)([-+]?0(?:x|X)[0-9a-fA-F_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\b'
295294 captures:
@@ -330,6 +329,17 @@ contexts:
330329 0: punctuation.section.braces.end.powershell
331330 pop: true
332331 - include: main
332+ subexpression:
333+ - match: \(
334+ captures:
335+ 0: punctuation.section.group.begin.powershell
336+ push:
337+ - meta_scope: meta.group.simple.subexpression.powershell
338+ - match: \)
339+ captures:
340+ 0: punctuation.section.group.end.powershell
341+ pop: true
342+ - include: main
333343 type:
334344 - match: '\['
335345 captures:
assets/syntaxes/Protobuf → assets/syntaxes/02_Extra/Protobufrenamed

The content is the same.

assets/syntaxes/Puppet → assets/syntaxes/02_Extra/Puppetrenamed

The content is the same.

assets/syntaxes/PureScript → assets/syntaxes/02_Extra/PureScriptrenamed

The content is the same.

assets/syntaxes/02_Extra/QMLnew file+1

Submodule changed.

assets/syntaxes/02_Extra/QML.sublime-syntaxnew file+103
@@ -0,0 +1,103 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: QML
5+file_extensions:
6+ - qml
7+ - qmlproject
8+scope: source.qml
9+contexts:
10+ main:
11+ - match: /\*(?!/)
12+ comment: Block comment.
13+ push:
14+ - meta_scope: comment.block.documentation.qml
15+ - match: \*/
16+ pop: true
17+ - match: //.*$
18+ comment: Line comment.
19+ scope: comment.line.double-slash.qml
20+ - match: \b(import)\s+
21+ comment: import statement.
22+ captures:
23+ 1: keyword.other.import.qml
24+ push:
25+ - meta_scope: meta.import.qml
26+ - match: $
27+ pop: true
28+ - match: '([\w\d\.]+)\s+(\d+\.\d+)(?:\s+(as)\s+([A-Z][\w\d]*))?'
29+ comment: "import Namespace VersionMajor.VersionMinor [as SingletonTypeIdentifier]"
30+ scope: meta.import.namespace.qml
31+ captures:
32+ 1: entity.name.class.qml
33+ 2: constant.numeric.qml
34+ 3: keyword.other.import.qml
35+ 4: entity.name.class.qml
36+ - match: '(\"[^\"]+\")(?:\s+(as)\s+([A-Z][\w\d]*))?'
37+ comment: "import <string> [as Script]"
38+ scope: meta.import.dirjs.qml
39+ captures:
40+ 1: string.quoted.double.qml
41+ 2: keyword.other.import.qml
42+ 3: entity.name.class.qml
43+ - match: '\b[A-Z]\w*\b'
44+ comment: Capitalized word (class or enum).
45+ scope: support.class.qml
46+ - match: '(((^|\{)\s*)|\b)on[A-Z]\w*\b'
47+ comment: onSomething - handler.
48+ scope: support.class.qml
49+ - match: '(?:^|\{)\s*(id)\s*\:\s*([^;\s]+)\b'
50+ comment: "id: <something>"
51+ scope: meta.id.qml
52+ captures:
53+ 1: keyword.other.qml
54+ 2: storage.modifier.qml
55+ - match: '^\s*(?:(default|readonly)\s+)?(property)\s+(?:(alias)|([\w\<\>]+))\s+(\w+)'
56+ comment: property definition.
57+ scope: meta.propertydef.qml
58+ captures:
59+ 1: keyword.other.qml
60+ 2: keyword.other.qml
61+ 3: keyword.other.qml
62+ 4: storage.type.qml
63+ 5: entity.other.attribute-name.qml
64+ - match: \b(signal)\s+(\w+)\s*
65+ comment: "signal <signalName>[([<type> <parameter>[, ...]])]"
66+ captures:
67+ 1: keyword.other.qml
68+ 2: support.function.qml
69+ push:
70+ - meta_scope: meta.signal.qml
71+ - match: ;|(?=/)|$
72+ pop: true
73+ - match: (\w+)\s+(\w+)
74+ scope: meta.signal.parameters.qml
75+ captures:
76+ 1: storage.type.qml
77+ 2: variable.parameter.qml
78+ - match: (?:\b|\s+)(?:(true|false|null|undefined)|(var|void)|(on|as|enum|connect|break|case|catch|continue|debugger|default|delete|do|else|finally|for|if|in|instanceof|new|return|switch|this|throw|try|typeof|while|with))\b
79+ comment: js keywords.
80+ scope: meta.keyword.qml
81+ captures:
82+ 1: constant.language.qml
83+ 2: storage.type.qml
84+ 3: keyword.control.qml
85+ - match: '\b(function)\s+([\w_]+)\s*(?=\()'
86+ comment: function definition.
87+ scope: meta.function.qml
88+ captures:
89+ 1: storage.type.qml
90+ 2: entity.name.function.untitled
91+ - match: '\b[\w_]+\s*(?=\()'
92+ comment: function call.
93+ scope: support.function.qml
94+ - match: '(?:^|\{|;)\s*[a-z][\w\.]*\s*(?=\:)'
95+ comment: "property (property: <something>)."
96+ scope: entity.other.attribute-name.qml
97+ - match: (?<=\.)\b\w*
98+ comment: property of the variable (name.property).
99+ scope: entity.other.attribute-name.qml
100+ - match: '\b([a-z_]\w*)\b'
101+ comment: All non colored words are assumed to be variables.
102+ scope: variable.parameter
103+ - include: scope:source.js
assets/syntaxes/02_Extra/Racketnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Racket.sublime-syntaxnew file+52
@@ -0,0 +1,52 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Racket
5+file_extensions:
6+ - rkt
7+scope: source.racket
8+contexts:
9+ main:
10+ - match: '[^\\](\"[^\"]*\")'
11+ captures:
12+ 1: string.quoted.double.source.racket
13+ - match: '\((define)\s+([a-zA-Z0-9_\-?\+^]+)\s*'
14+ scope: meta.variable.source.racket
15+ captures:
16+ 1: keyword.source.racket
17+ 2: entity.name.variable.source.racket
18+ - match: '\((define)\s+\(([a-zA-Z0-9_\-?\+^]+)\s*'
19+ scope: meta.function.source.racket
20+ captures:
21+ 1: keyword.source.racket
22+ 2: entity.name.function
23+ - match: '\((struct)\s+([a-zA-Z0-9_\-?\+^]+)\s+'
24+ scope: meta.struct.source.racket
25+ captures:
26+ 1: keyword.source.racket
27+ 2: entity.name.type
28+ - match: '[\s\(](if|lambda|cond|define|type-case|let|letrec|let!|\#lang|require|test|else|first|rest|define-type|define-type-alias|define-struct|not|local|error|lang)[\s\)]'
29+ scope: meta.keywords.source.racket
30+ captures:
31+ 1: keyword.source.racket
32+ - match: '[\s\(](true|false|empty|null)[\s\)]'
33+ captures:
34+ 1: constant.language.source.racket
35+ - match: '[\s\(\[\{](#t|#true|#f|#false)[\s\)\]\}]'
36+ captures:
37+ 1: constant.language.source.racket
38+ - match: '(#\\[a-zA-Z0-9_\-?\+\.\!\"]+)'
39+ captures:
40+ 1: constant.language.source.racket
41+ - match: '\b(0|([1-9][0-9_]*))\b'
42+ scope: constant.numeric.integer.source.racket
43+ - match: ;
44+ push:
45+ - meta_scope: comment.line.documentation.source.racket
46+ - match: $\n
47+ pop: true
48+ - match: '#\|'
49+ push:
50+ - meta_scope: comment.block.source.racket
51+ - match: '\|#'
52+ pop: true
assets/syntaxes/02_Extra/Rego.sublime-syntaxnew file+97
@@ -0,0 +1,97 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Rego
5+file_extensions:
6+ - rego
7+scope: source.rego
8+contexts:
9+ main:
10+ - include: comment
11+ - include: keyword
12+ - include: operator
13+ - include: head
14+ - include: term
15+ comment:
16+ - match: (#).*$\n?
17+ scope: comment.line.number-sign.rego
18+ captures:
19+ 1: punctuation.definition.comment.rego
20+ call:
21+ - match: '([a-zA-Z_][a-zA-Z0-9_]*)\('
22+ scope: meta.function-call.rego
23+ captures:
24+ 1: support.function.any-method.rego
25+ constant:
26+ - match: \b(?:true|false|null)\b
27+ scope: constant.language.rego
28+ head:
29+ - match: "^([[:alpha:]_][[:alnum:]_]*)"
30+ captures:
31+ 1: entity.name.function.declaration
32+ push:
33+ - meta_scope: meta.function.rego
34+ - match: '(=|{|\n)'
35+ pop: true
36+ - include: term
37+ keyword:
38+ - match: (^|\s+)(?:(default|not|package|import|as|with|else|some))\s+
39+ scope: keyword.other.rego
40+ number:
41+ - match: |-
42+ (?x: # turn on extended mode
43+ -? # an optional minus
44+ (?:
45+ 0 # a zero
46+ | # ...or...
47+ [1-9] # a 1-9 character
48+ \d* # followed by zero or more digits
49+ )
50+ (?:
51+ (?:
52+ \. # a period
53+ \d+ # followed by one or more digits
54+ )?
55+ (?:
56+ [eE] # an e character
57+ [+-]? # followed by an option +/-
58+ \d+ # followed by one or more digits
59+ )? # make exponent optional
60+ )? # make decimal portion optional
61+ )
62+ scope: constant.numeric.rego
63+ operator:
64+ - match: \=|\!\=|>|<|<\=|>\=|\+|-|\*|%|/|\||&|:\=
65+ scope: keyword.operator.comparison.rego
66+ string:
67+ - match: '"'
68+ captures:
69+ 0: punctuation.definition.string.begin.rego
70+ push:
71+ - meta_scope: string.quoted.double.rego
72+ - match: '"'
73+ captures:
74+ 0: punctuation.definition.string.end.rego
75+ pop: true
76+ - match: |-
77+ (?x: # turn on extended mode
78+ \\ # a literal backslash
79+ (?: # ...followed by...
80+ ["\\/bfnrt] # one of these characters
81+ | # ...or...
82+ u # a u
83+ [0-9a-fA-F]{4} # and four hex digits
84+ )
85+ )
86+ scope: constant.character.escape.rego
87+ - match: \\.
88+ scope: invalid.illegal.unrecognized-string-escape.rego
89+ term:
90+ - include: constant
91+ - include: string
92+ - include: number
93+ - include: call
94+ - include: variable
95+ variable:
96+ - match: '\b[[:alpha:]_][[:alnum:]_]*\b'
97+ scope: meta.identifier.rego
assets/syntaxes/Resolv.sublime-syntax → assets/syntaxes/02_Extra/Resolv.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/Robot → assets/syntaxes/02_Extra/Robotrenamed

The content is the same.

assets/syntaxes/Robot.sublime-syntax → assets/syntaxes/02_Extra/Robot.sublime-syntaxrenamed+2−1
@@ -1,9 +1,10 @@
11%YAML 1.2
22---
33# http://www.sublimetext.com/docs/3/syntax.html
4−name: Robot Framework syntax highlighting.
4+name: Robot Framework
55file_extensions:
66 - robot
7+ - resource
78scope: source.robot
89contexts:
910 main:
assets/syntaxes/02_Extra/SCSS_Sassnew file+1

Submodule changed.

assets/syntaxes/SLS → assets/syntaxes/02_Extra/SLSrenamed

The content is the same.

assets/syntaxes/02_Extra/SML.sublime-syntaxnew file+33
@@ -0,0 +1,33 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: SML
5+file_extensions:
6+ - sml
7+ - cm
8+ - sig
9+scope: source.sml
10+contexts:
11+ main:
12+ - match: \b(EQUAL|GREATER|LESS|NONE|SOME|abstraction|abstype|and|andalso|array|as|before|bool|case|char|datatype|do|else|end|eqtype|exception|exn|false|fn|fun|functor|handle|if|in|include|infix|infixr|int|let|list|local|nil|nonfix|not|o|of|op|open|option|orelse|overload|print|raise|real|rec|ref|sharing|sig|signature|string|struct|structure|substring|then|true|type|unit|val|vector|where|while|with|withtype|word)\b
13+ comment: SML keywords
14+ scope: keyword.source.sml
15+ - match: '\b[0-9]+\b'
16+ comment: Numeric constants
17+ scope: constant.numeric.sml
18+ - match: '\b[A-Z]([A-z0-9]*)\b'
19+ comment: Built in types
20+ scope: support.type.sml
21+ - match: '"(\\"|[^"])*"'
22+ comment: String constant
23+ scope: string.sml
24+ - match: \(\*
25+ comment: Comment
26+ push:
27+ - meta_scope: comment.sml
28+ - match: \*\)
29+ pop: true
30+ - match: '(\(\)|=>|::|\[\]|->|:>)'
31+ comment: Character
32+ scope: constant.character.sml
33+
assets/syntaxes/02_Extra/Slimnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Slim.sublime-syntaxnew file+306
@@ -0,0 +1,306 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/syntax.html
4+name: Ruby Slim
5+file_extensions:
6+ - slim
7+ - skim
8+scope: text.slim
9+contexts:
10+ main:
11+ - match: ^(\s*)(ruby):$
12+ captures:
13+ 2: constant.language.name.ruby.filter.slim
14+ push:
15+ - meta_scope: text.ruby.filter.slim
16+ - match: ^(?!(\1\s)|\s*$)
17+ pop: true
18+ - include: scope:source.ruby
19+ - match: ^(\s*)(javascript):$
20+ captures:
21+ 2: constant.language.name.javascript.filter.slim
22+ push:
23+ - meta_scope: source.js.filter.slim
24+ - match: ^(?!(\1\s)|\s*$)
25+ pop: true
26+ - include: scope:source.js
27+ - match: ^(---)\s*\n
28+ captures:
29+ 1: storage.frontmatter.slim
30+ push:
31+ - meta_scope: source.yaml.meta.slim
32+ - match: ^(---)\s*\n
33+ captures:
34+ 1: storage.frontmatter.slim
35+ pop: true
36+ - include: scope:source.yaml
37+ - match: ^(\s*)(coffee):$
38+ captures:
39+ 2: constant.language.name.coffeescript.filter.slim
40+ push:
41+ - meta_scope: text.coffeescript.filter.slim
42+ - match: ^(?!(\1\s)|\s*$)
43+ pop: true
44+ - include: scope:source.coffee
45+ - match: ^(\s*)(markdown):$
46+ captures:
47+ 2: constant.language.name.markdown.filter.slim
48+ push:
49+ - meta_scope: text.markdown.filter.slim
50+ - match: ^(?!(\1\s)|\s*$)
51+ pop: true
52+ - include: scope:text.html.markdown
53+ - match: ^(\s*)(css):$
54+ captures:
55+ 2: constant.language.name.css.filter.slim
56+ push:
57+ - meta_scope: text.css.filter.slim
58+ - match: ^(?!(\1\s)|\s*$)
59+ pop: true
60+ - include: scope:source.css
61+ - match: ^(\s*)(sass):$
62+ captures:
63+ 2: constant.language.name.sass.filter.slim
64+ push:
65+ - meta_scope: text.sass.filter.slim
66+ - match: ^(?!(\1\s)|\s*$)
67+ pop: true
68+ - include: scope:source.sass
69+ - match: ^(\s*)(scss):$
70+ captures:
71+ 2: constant.language.name.scss.filter.slim
72+ push:
73+ - meta_scope: text.scss.filter.slim
74+ - match: ^(?!(\1\s)|\s*$)
75+ pop: true
76+ - include: scope:source.scss
77+ - match: ^(\s*)(less):$
78+ captures:
79+ 2: constant.language.name.less.filter.slim
80+ push:
81+ - meta_scope: text.less.filter.slim
82+ - match: ^(?!(\1\s)|\s*$)
83+ pop: true
84+ - include: scope:source.less
85+ - match: ^(\s*)(erb):$
86+ captures:
87+ 2: constant.language.name.erb.filter.slim
88+ push:
89+ - meta_scope: text.erb.filter.slim
90+ - match: ^(?!(\1\s)|\s*$)
91+ pop: true
92+ - include: scope:source.erb
93+ - match: ^(! )($|\s.*)
94+ scope: meta.prolog.slim
95+ captures:
96+ 1: punctuation.definition.prolog.slim
97+ - match: ^(\s*)(/)\s*.*$
98+ captures:
99+ 2: comment.line.slash.slim
100+ push:
101+ - meta_scope: comment.block.slim
102+ - match: ^(?!(\1\s)|\s*$)
103+ pop: true
104+ - match: ^\s*(?=-)
105+ push:
106+ - match: $
107+ pop: true
108+ - include: rubyline
109+ - match: (?==+|~)
110+ push:
111+ - match: $
112+ pop: true
113+ - include: rubyline
114+ - include: tag-attribute
115+ - include: embedded-ruby
116+ - match: ^(\s*)(\||')\s*
117+ comment: Verbatim text (can include HTML tags and copied lines)
118+ push:
119+ - match: ^(?!(\1\s)|\s*$)
120+ pop: true
121+ - include: scope:text.html.basic
122+ - include: embedded-ruby
123+ - match: '^\s*(\.|#|[-a-zA-Z0-9]+)([\w-]+)?'
124+ comment: '1 - dot OR hash OR any combination of word, number; 2 - OPTIONAL any combination of word, number, dash or underscore (following a . or'
125+ captures:
126+ 1: entity.name.tag.slim
127+ 2: entity.other.attribute-name.event.slim
128+ push:
129+ - meta_scope: meta.tag
130+ - match: '$|(?!\.|#|:|-|~|/|\}|\]|\*|\s?[\*\{])'
131+ captures:
132+ 1: entity.name.tag.slim
133+ 2: entity.other.attribute-name.event.slim
134+ pop: true
135+ - match: '(:[\w\d]+)+'
136+ comment: XML
137+ push:
138+ - meta_scope: entity.name.tag.slim
139+ - match: $|\s
140+ pop: true
141+ - match: '(:\s)(\.|#|[a-zA-Z0-9]+)([\w-]+)?'
142+ comment: Inline HTML / 1 - colon; 2 - dot OR hash OR any combination of word, number; 3 - OPTIONAL any combination of word, number, dash or underscore (following a . or
143+ captures:
144+ 1: punctuation.definition.tag.end.slim
145+ 2: entity.name.tag.slim
146+ 3: entity.other.attribute-name.event.slim
147+ push:
148+ - match: '$|(?!\.|#|=|-|~|/|\}|\]|\*|\s?[\*\{])'
149+ captures:
150+ 1: punctuation.definition.tag.end.slim
151+ 2: entity.name.tag.slim
152+ 3: entity.other.attribute-name.event.slim
153+ pop: true
154+ - include: root-class-id-tag
155+ - include: tag-attribute
156+ - match: '(\*\{)(?=.*\}|.*\|\s*$)'
157+ comment: Splat attributes
158+ captures:
159+ 1: punctuation.section.embedded.ruby
160+ push:
161+ - meta_scope: source.ruby.embedded.slim
162+ - match: '(\})|$|^(?!.*\|\s*$)'
163+ captures:
164+ 1: punctuation.section.embedded.ruby
165+ pop: true
166+ - include: embedded-ruby
167+ - include: root-class-id-tag
168+ - include: rubyline
169+ - match: /
170+ scope: punctuation.terminator.tag.slim
171+ - match: ^\s*(\\.)
172+ captures:
173+ 1: meta.escape.slim
174+ - match: ^\s*(?=\||')
175+ push:
176+ - match: $
177+ pop: true
178+ - include: embedded-ruby
179+ - include: scope:text.html.basic
180+ - match: '(?=<[\w\d\:]+)'
181+ comment: Inline and root-level HTML tags
182+ push:
183+ - match: $|\/\>
184+ pop: true
185+ - include: scope:text.html.basic
186+ continuation:
187+ - match: '([\\,])\s*\n'
188+ captures:
189+ 1: punctuation.separator.continuation.slim
190+ delimited-ruby-a:
191+ - match: '=\('
192+ push:
193+ - meta_scope: source.ruby.embedded.slim
194+ - match: \)(?=( \w|$))
195+ pop: true
196+ - include: scope:source.ruby.rails
197+ delimited-ruby-b:
198+ - match: '=\['
199+ push:
200+ - meta_scope: source.ruby.embedded.slim
201+ - match: '\](?=( \w|$))'
202+ pop: true
203+ - include: scope:source.ruby.rails
204+ delimited-ruby-c:
205+ - match: '=\{'
206+ push:
207+ - meta_scope: source.ruby.embedded.slim
208+ - match: '\}(?=( \w|$))'
209+ pop: true
210+ - include: scope:source.ruby.rails
211+ embedded-ruby:
212+ - match: '(?<!\\)#\{{1,2}'
213+ captures:
214+ 0: punctuation.section.embedded.ruby
215+ push:
216+ - meta_scope: source.ruby.embedded.html
217+ - match: '\}{1,2}'
218+ captures:
219+ 0: punctuation.section.embedded.ruby
220+ pop: true
221+ - include: scope:source.ruby.rails
222+ entities:
223+ - match: '(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)'
224+ scope: constant.character.entity.html
225+ captures:
226+ 1: punctuation.definition.entity.html
227+ 3: punctuation.definition.entity.html
228+ - match: '&'
229+ scope: invalid.illegal.bad-ampersand.html
230+ interpolated-ruby:
231+ - match: '=(?=\b)'
232+ push:
233+ - meta_scope: source.ruby.embedded.html
234+ - match: \s|\w$
235+ pop: true
236+ root-class-id-tag:
237+ - match: '(\.|#)([\w\d\-]+)'
238+ captures:
239+ 1: punctuation.separator.key-value.html
240+ 2: entity.other.attribute-name.html
241+ rubyline:
242+ - match: (==|=)(<>|><|<'|'<|<|>)?|-
243+ comment: Hack to thwart Sublime's Ruby highlighter. It thinks do without a variable continues the next line (this can be muted with a / at the end of the line). For things like yields, do is unnecessary without an argument, so this hack will suffice
244+ push:
245+ - meta_scope: meta.line.ruby.slim
246+ - meta_content_scope: source.ruby.embedded.slim
247+ - match: (do\s*\n$)|(?<!\\|,|,\n|\\\n)$
248+ captures:
249+ 1: keyword.control.start-block.ruby
250+ pop: true
251+ - match: '#.*$'
252+ comment: Hack to let ruby comments work in this context properly
253+ scope: comment.line.number-sign.ruby
254+ - include: continuation
255+ - include: scope:source.ruby.rails
256+ string-double-quoted:
257+ - match: (")(?=.*")
258+ captures:
259+ 0: punctuation.definition.string.begin.html
260+ push:
261+ - meta_scope: string.quoted.double.html
262+ - meta_content_scope: meta.toc-list.id.html
263+ - match: '"'
264+ captures:
265+ 0: punctuation.definition.string.end.html
266+ pop: true
267+ - include: embedded-ruby
268+ - include: entities
269+ string-single-quoted:
270+ - match: (')(?=.*')
271+ captures:
272+ 0: punctuation.definition.string.begin.html
273+ push:
274+ - meta_scope: string.quoted.single.html
275+ - meta_content_scope: meta.toc-list.id.html
276+ - match: "'"
277+ captures:
278+ 0: punctuation.definition.string.end.html
279+ pop: true
280+ - include: embedded-ruby
281+ - include: entities
282+ tag-attribute:
283+ - match: '([\w.#_-]+)(=)(?!\s)(true|false|nil)?(\s*\(|\{)?'
284+ captures:
285+ 1: entity.other.attribute-name.event.slim
286+ 2: punctuation.separator.key-value.html
287+ 3: constant.language.slim
288+ push:
289+ - meta_scope: meta.attribute-with-value.slim
290+ - match: '\}|\)|$'
291+ captures:
292+ 1: entity.other.attribute-name.event.slim
293+ 2: punctuation.separator.key-value.html
294+ 3: constant.language.slim
295+ pop: true
296+ - include: tag-stuff
297+ - include: string-double-quoted
298+ - include: string-single-quoted
299+ tag-stuff:
300+ - include: tag-attribute
301+ - include: interpolated-ruby
302+ - include: delimited-ruby-a
303+ - include: delimited-ruby-b
304+ - include: delimited-ruby-c
305+ - include: rubyline
306+ - include: embedded-ruby
assets/syntaxes/Strace → assets/syntaxes/02_Extra/Stracerenamed

The content is the same.

assets/syntaxes/02_Extra/Stylusnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Stylus.sublime-syntaxnew file+711
@@ -0,0 +1,711 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: Stylus
5+file_extensions:
6+ - styl
7+ - stylus
8+scope: source.stylus
9+contexts:
10+ main:
11+ - include: comments
12+ - match: '^\s*(@(?:import|charset|css|font-face|(?:-webkit-)?keyframes)(?:\s+([\w-]+))?)\b'
13+ captures:
14+ 1: keyword.control.at-rule.other.stylus
15+ 2: variable.other.animation-name.stylus
16+ push:
17+ - match: '$|;|(?=\{)'
18+ pop: true
19+ - include: string-quoted
20+ - match: ^\s*(@media)\s*
21+ captures:
22+ 1: keyword.control.at-rule.media.stylus
23+ push:
24+ - match: '$|(?=\{)'
25+ pop: true
26+ - include: media-query
27+ - match: |-
28+ (?x)
29+ (?<=^|;|})
30+ \s*
31+ (?=
32+ [\[\]'".\w$-]+
33+ \s*
34+ ([?:]?=)
35+ (?![^\[]*\])
36+ )
37+ push:
38+ - match: $|;
39+ pop: true
40+ - include: expression
41+ - include: iteration
42+ - include: conditionals
43+ - include: return
44+ - match: |-
45+ (?x) # multi-line regex definition mode
46+
47+ ^(\s*) # starts at the beginning of line
48+ ([\w$-]+) # identifier (name)
49+ (\() # start of argument list
50+ (?=
51+ .*?
52+ \)\s*\{ # we see a curly brace afterwards
53+ ) # which means this is a function definition
54+ captures:
55+ 2: entity.name.function.stylus
56+ 3: punctuation.definition.parameters.start.stylus
57+ push:
58+ - meta_scope: meta.function-call.stylus
59+ - match: (\))
60+ captures:
61+ 1: punctuation.definition.parameters.end.stylus
62+ pop: true
63+ - include: expression
64+ - match: |-
65+ (?x) # multi-line regex definition mode
66+ (
67+
68+ (^|;) # starts at the beginning of line or at a ;
69+ \s*
70+ (\+?\s* # for block mixins
71+ [\w$-]+) # identifier (name)
72+ (\() # start of argument list
73+ (?=
74+ .*?
75+ \)\s*;?\s* # if there are only spaces and semicolons
76+ $|; # then this a
77+ )
78+ )
79+ captures:
80+ 3: entity.other.attribute-name.mixin.stylus
81+ 4: punctuation.definition.parameters.start.stylus
82+ push:
83+ - meta_scope: meta.function-call.stylus
84+ - match: (\))
85+ captures:
86+ 1: punctuation.definition.parameters.end.stylus
87+ pop: true
88+ - include: expression
89+ - match: |-
90+ (?x) # multi-line regex definition mode
91+ (^|(?<=\*/|\}))\s*
92+ (?=
93+ font(?!
94+ \s*:\s
95+ |
96+ -
97+ |
98+ .*?
99+ (?:
100+ \/|normal|bold|light(er?)|serif|sans|monospace|
101+ \b\d+(?:\b|px|r?em|%)|
102+ var\s*\(|
103+ ['"][^\]]*$
104+ )
105+ ) | # we need to distinguish between tag and property `cursor`
106+ cursor(?!
107+ \s*[:;]\s
108+ |
109+ -
110+ |
111+ .*?
112+ (?:
113+ (?:url\s*\()|
114+ (?:-moz-|-webkit-|-ms-)?
115+ (?:auto|default|none|context-menu|help|pointer|progress|
116+ wait|cell|crosshair|text|vertical-text|alias|copy|
117+ move|no-drop|not-allowed|e-resize|n-resize|ne-resize|
118+ nw-resize|s-resize|se-resize|sw-resize|w-resize|
119+ ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|
120+ row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing
121+ normal|bold|light(er?)|serif|sans|monospace)
122+ )
123+ ) | (
124+ (
125+ altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|
126+ animateMotion|animateTransform|circle|clipPath|color-profile|
127+ defs|desc|ellipse|feBlend|feColorMatrix|
128+ feComponentTransfer|feComposite|feConvolveMatrix|
129+ feDiffuseLighting|feDisplacementMap|feDistantLight|feFlood|
130+ feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|
131+ feMergeNode|feMorphology|feOffset|fePointLight|
132+ feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|
133+ font-face|font-face-format|font-face-name|font-face-src|
134+ font-face-uri|foreignObject|g|glyph|glyphRef|hkern|image|line|
135+ linearGradient|marker|mask|metadata|missing-glyph|mpath|path|
136+ pattern|polygon|polyline|radialGradient|rect|set|stop|svg|
137+ switch|symbol|text|textPath|tref|tspan|use|view|vkern|
138+ a|abbr|acronym|address|applet|area|article|aside|audio|b|base|
139+ basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|
140+ canvas|caption|center|cite|code|col|colgroup|data|
141+ datalist|dd|decorator|del|details|dfn|dir|div|dl|dt|element|
142+ em|embed|fieldset|figcaption|figure|footer|form|frame|
143+ frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|
144+ img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|
145+ main|map|mark|marquee|menu|menuitem|meta|meter|nav|nobr|
146+ noframes|noscript|object|ol|optgroup|option|output|p|param|
147+ plaintext|pre|progress|q|rp|rt|ruby|s|samp|script|section|
148+ select|shadow|small|source|spacer|span|strike|strong|style|
149+ sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|
150+ thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp)
151+
152+ \s*([\s,.#\[]|:[^\s]|(?=\{|$))
153+
154+ ) | (
155+ [:~>\[*\/] # symbols but they are valid for selector
156+
157+ ) | (
158+
159+ \+\s*[\w$-]+\b\s* # are an identifier starting with $
160+ (?!\() # and they can't have anything besides
161+
162+ ) | ( # for animtions
163+
164+ \d+(\.\d+)?%|(from|to)\b
165+
166+ ) | ( # Placeholder selectors
167+
168+ \$[\w$-]+\b\s* # are an identifier starting with $
169+ (?=$|\{) # and they can't have anything besides
170+
171+ ) | ( # CSS class
172+
173+ \.[a-zA-Z0-9_-]+
174+
175+ ) | ( # CSS id
176+
177+ \#[a-zA-Z0-9_-]+
178+
179+ ) | ( # Reference to parent
180+
181+ ([\w\d_-]+)? # matching any word right before &
182+ (&) # & itself, escaped because of plist
183+ ([\w\d_-]+)? # matching any word right after &
184+ )
185+ )
186+ push:
187+ - meta_scope: meta.selector.stylus
188+ - match: |-
189+
190+ |$|(?=\{\s*\}.*$)|(?=\{.*?[:;])|(?=\{)(?!.+\}.*$)
191+ pop: true
192+ - include: comma
193+ - match: \d+(\.\d+)?%|from|to
194+ scope: entity.other.animation-keyframe.stylus
195+ - include: selector-components
196+ - match: .
197+ scope: entity.other.attribute-name.stylus
198+ - match: |-
199+ (?x) # multi-line regex definition mode
200+ (?<=^|;|{)\s* # starts after beginning of line, '{' or ';''
201+ (?= # lookahead for
202+ (
203+ [a-zA-Z0-9_-] # then a letter
204+ | # or
205+ (\{(.*?)\}) # interpolation
206+ | # or
207+ (/\*.*?\*/) # comment
208+ )+
209+
210+ \s*[:\s]\s* # value is separated by colon or space
211+
212+ (?!(\s*\{)) # if there are only spaces afterwards
213+
214+ (?!
215+ [^}]*? # checking for an unclosed curly braces on this
216+ \{ # line because if one exists it means that
217+ [^}]* # this is a selector and not a property
218+ ($|\})
219+ )
220+ )
221+ push:
222+ - match: '(?=\}|;)|(?<!,)\s*\n'
223+ pop: true
224+ - include: comments
225+ - include: interpolation
226+ - match: '(?<!^|;|{)\s*(?:(:)|\s)'
227+ captures:
228+ 1: punctuation.separator.key-value.stylus
229+ push:
230+ - match: '(;)|(?=\})|(?=(?<!\,)\s*\n)'
231+ captures:
232+ 1: punctuation.terminator.rule.stylus
233+ pop: true
234+ - include: comments
235+ - include: expression
236+ - match: "-(moz|o|ms|webkit|khtml)-"
237+ scope: support.type.vendor-prefix.stylus
238+ - match: .
239+ scope: meta.property-name.stylus support.type.property-name.stylus
240+ - match: '@extends?\s'
241+ captures:
242+ 0: keyword.language.stylus
243+ push:
244+ - match: (?=$|;)
245+ pop: true
246+ - include: selector-components
247+ - include: string-quoted
248+ - include: escape
249+ - include: language-constants
250+ - include: language-operators
251+ - include: language-keywords
252+ - include: property-reference
253+ - include: function-call
254+ - match: '\{'
255+ scope: punctuation.section.start.stylus
256+ - match: '\}'
257+ scope: punctuation.section.end.stylus
258+ attribute-selector:
259+ - match: '\[(?=[^\]]*\])'
260+ captures:
261+ 0: punctuation.definition.entity.start.stylus
262+ push:
263+ - meta_scope: meta.attribute-selector.stylus
264+ - match: '\]'
265+ captures:
266+ 0: punctuation.definition.entity.end.stylus
267+ pop: true
268+ - match: '(?<=\[)|(?<=\{)'
269+ push:
270+ - match: '(?=[|~=\]\s])'
271+ pop: true
272+ - include: interpolation
273+ - match: .
274+ captures:
275+ 0: entity.other.attribute-name.stylus
276+ - include: interpolation
277+ - match: "([|~]?=)"
278+ captures:
279+ 1: keyword.operator.stylus
280+ - include: string-quoted
281+ - match: .
282+ captures:
283+ 0: string.unquoted.stylus
284+ color-values:
285+ - match: \b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b
286+ scope: constant.color.w3c-standard-color-name.stylus
287+ - match: (hsla?|rgba?)\s*(\()
288+ captures:
289+ 1: keyword.language.function.misc.stylus
290+ 2: punctuation.definition.parameters.start.stylus
291+ push:
292+ - match: \)
293+ captures:
294+ 0: punctuation.definition.parameters.end.stylus
295+ pop: true
296+ - match: |-
297+ (?x) # multi-line regex definition mode
298+ \b
299+ (?:0*((?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\s*(,)\s*)
300+ (?:0*((?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\s*(,)\s*)
301+ (?:0*((?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\b)
302+ captures:
303+ 1: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.red.stylus
304+ 2: punctuation.delimiter.comma.stylus
305+ 3: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.green.stylus
306+ 4: punctuation.delimiter.comma.stylus
307+ 5: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.blue.stylus
308+ - match: |-
309+ (?x) # multi-line regex definition mode
310+ \b
311+ ((?:[0-9]{1,2}|100)%)(,) # red
312+ \s*
313+ ((?:[0-9]{1,2}|100)%)(,) # green
314+ \s*
315+ ((?:[0-9]{1,2}|100)%) # blue
316+ captures:
317+ 1: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.red.stylus
318+ 2: punctuation.delimiter.comma.stylus
319+ 3: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.green.stylus
320+ 4: punctuation.delimiter.comma.stylus
321+ 5: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.blue.stylus
322+ - match: |-
323+ (?x) # multi-line regex definition mode
324+ (?:\s*(,)\s*((0?\.[0-9]+)|[0-1]))?
325+ captures:
326+ 1: punctuation.delimiter.comma.stylus
327+ 2: constant.other.color.rgb-value.stylus constant.other.color.rgb-value.alpha.stylus
328+ - include: numeric-values
329+ - include: numeric-values
330+ comma:
331+ - match: \s*,\s*
332+ scope: punctuation.delimiter.comma.stylus
333+ comments:
334+ - include: single-line-comment
335+ - match: \/\*
336+ captures:
337+ 0: punctuation.definition.comment.stylus
338+ push:
339+ - meta_scope: comment.block.stylus
340+ - match: \*\/
341+ captures:
342+ 0: punctuation.definition.comment.stylus
343+ pop: true
344+ conditionals:
345+ - match: '(^\s*|\s+)(if|unless|else)(?=[\s({]|$)\s*'
346+ captures:
347+ 2: keyword.control.stylus
348+ push:
349+ - match: '(?=$|\{)'
350+ pop: true
351+ - include: expression
352+ escape:
353+ - match: \\.
354+ scope: constant.character.escape.stylus
355+ expression:
356+ - include: single-line-comment
357+ - include: comma
358+ - include: iteration
359+ - include: conditionals
360+ - include: language-operators
361+ - include: language-keywords
362+ - include: hash-definition
363+ - include: color-values
364+ - include: url
365+ - include: function-call
366+ - include: string-quoted
367+ - include: escape
368+ - include: hash-access
369+ - include: language-constants
370+ - include: language-property-value-constants
371+ - include: property-reference
372+ - include: variable
373+ function-call:
374+ - match: '([\w$-]+)(\()'
375+ captures:
376+ 1: entity.function-name.stylus
377+ 2: punctuation.definition.parameters.start.stylus
378+ push:
379+ - meta_scope: meta.function-call.stylus
380+ - match: (\))
381+ captures:
382+ 1: punctuation.definition.parameters.end.stylus
383+ pop: true
384+ - include: expression
385+ hash-access:
386+ - match: '(?=[\w$-]+(?:\.|\[[^\]=]*\]))'
387+ push:
388+ - meta_scope: meta.hash-access.stylus
389+ - match: '(?=[^''''""\[\]\w.$-]|\s|$)'
390+ pop: true
391+ - match: \.
392+ scope: punctuation.delimiter.hash.stylus
393+ - match: '\['
394+ scope: punctuation.definition.entity.start.stylus
395+ - match: '\]'
396+ scope: punctuation.definition.entity.end.stylus
397+ - include: string-quoted
398+ - include: variable
399+ hash-definition:
400+ - match: '\{'
401+ captures:
402+ 0: punctuation.section.embedded.start.stylus
403+ push:
404+ - meta_scope: meta.hash.stylus
405+ - match: '\}'
406+ captures:
407+ 0: punctuation.section.embedded.end.stylus
408+ pop: true
409+ - include: single-line-comment
410+ - match: |-
411+ (?x)
412+ (?:
413+ ([\w$-]+)
414+ |
415+ ('[^']*')
416+ |
417+ ("[^"]*")
418+ )
419+ \s*
420+ (:)
421+ \s*
422+ captures:
423+ 1: support.type.property-name.stylus
424+ 2: string.quoted.single.stylus
425+ 3: string.quoted.double.stylus
426+ 4: punctuation.separator.key-value.stylus
427+ push:
428+ - match: '(;)|(?=\}|$)'
429+ captures:
430+ 1: punctuation.terminator.statement.stylus
431+ pop: true
432+ - include: expression
433+ interpolation:
434+ - match: '\{'
435+ captures:
436+ 0: punctuation.section.embedded.start.stylus
437+ push:
438+ - meta_scope: stylus.embedded.source
439+ - match: '\}'
440+ captures:
441+ 0: punctuation.section.embedded.end.stylus
442+ pop: true
443+ - include: expression
444+ iteration:
445+ - match: (^\s*|\s+)(for)\s+(?=.*?\s+in\s+)
446+ captures:
447+ 2: keyword.control.stylus
448+ push:
449+ - match: '$|\{'
450+ pop: true
451+ - include: expression
452+ language-constants:
453+ - match: \b(true|false|null)\b
454+ scope: constant.language.stylus
455+ language-keywords:
456+ - match: (\b|\s)(return|else)\b
457+ scope: keyword.control.stylus
458+ - match: (\b|\s)(!important|in|is defined|is a)\b
459+ scope: keyword.other.stylus
460+ - match: \barguments\b
461+ scope: variable.language.stylus
462+ language-operators:
463+ - match: ((?:\?|:|!|~|\+|-|(?:\*)?\*|\/|%|(\.)?\.\.|<|>|(?:=|:|\?|\+|-|\*|\/|%|<|>)?=|!=)|\b(?:in|is(?:nt)?|(?<!:)not)\b)
464+ scope: keyword.operator.stylus
465+ language-property-value-constants:
466+ - match: \b(absolute|all(-scroll)?|always|armenian|auto|avoid|baseline|below|bidi-override|block|bold(er)?|(border|content|padding)-box|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|cursive|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fantasy|fixed|geometricPrecision|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|monospace|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|optimize(Legibility|Quality|Speed)|outset|outside|overline|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|(sans-)?serif|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|super|sw-resize|table(-(row|cell|footer-group|header-group))?|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical(-(ideographic|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small(er)?|large(r)?))|painted|fill|stroke)\b
467+ scope: constant.property-value.stylus
468+ media-query:
469+ - match: '\s*(?![{;]|$)'
470+ push:
471+ - meta_scope: meta.at-rule.media.stylus
472+ - match: '\s*(?=[{;]|$)'
473+ pop: true
474+ - match: '(?i)\s*(only|not)?\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?(?![\w\d$-]+)'
475+ captures:
476+ 1: keyword.operator.logic.media.stylus
477+ 2: support.constant.media.stylus
478+ push:
479+ - match: '\s*(?:(,)|(?=[{;]|$))'
480+ pop: true
481+ - include: media-query-list
482+ - include: variable
483+ media-query-list:
484+ - match: \s*(and)?\s*(\()\s*
485+ captures:
486+ 1: keyword.operator.logic.media.stylus
487+ 2: punctuation.definition.parameters.start.stylus
488+ push:
489+ - match: \)
490+ captures:
491+ 0: punctuation.definition.parameters.end.stylus
492+ pop: true
493+ - include: media-query-properties
494+ - include: numeric-values
495+ media-query-properties:
496+ - match: \s*:\s*
497+ captures:
498+ 0: punctuation.separator.key-value.stylus
499+ - match: |-
500+ (?x)
501+ (
502+ ((min|max)-)?
503+ (
504+ ((device-)?(height|width|aspect-ratio))|
505+ (color(-index)?)|monochrome|resolution
506+ )
507+ )|grid|scan|orientation
508+ captures:
509+ 0: support.type.property-name.media.stylus
510+ - match: \b(portrait|landscape|progressive|interlace)\b
511+ captures:
512+ 1: support.constant.property-value.stylus
513+ numeric-values:
514+ - match: |-
515+ (?x) # multi-line regex definition mode
516+ (\#)(?:
517+ ([0-9a-fA-F])
518+ ([0-9a-fA-F])
519+ ([0-9a-fA-F])
520+ ([0-9a-fA-F])?
521+ | ([0-9a-fA-F]{2})
522+ ([0-9a-fA-F]{2})
523+ ([0-9a-fA-F]{2})
524+ ([0-9a-fA-F]{2})?
525+ )\b
526+ scope: constant.other.color.rgb-value.stylus
527+ captures:
528+ 1: punctuation.definition.constant.stylus
529+ 2: constant.other.color.rgb-value.red.stylus
530+ 3: constant.other.color.rgb-value.green.stylus
531+ 4: constant.other.color.rgb-value.blue.stylus
532+ 5: constant.other.color.rgb-value.alpha.stylus
533+ 6: constant.other.color.rgb-value.red.stylus
534+ 7: constant.other.color.rgb-value.green.stylus
535+ 8: constant.other.color.rgb-value.blue.stylus
536+ 9: constant.other.color.rgb-value.alpha.stylus
537+ - match: |-
538+ (?x) # multi-line regex definition mode
539+ (?:-|\+)? # negative / positive
540+ (?:
541+ (?:
542+ [0-9]+ # integer part
543+ (?:\.[0-9]+)? # fraction
544+ ) |
545+ (?:\.[0-9]+) # fraction without leading zero
546+ )
547+ ((?: # units
548+ px|pt|ch|cm|mm|in|
549+ r?em|ex|pc|vw|vh|vmin|vmax|deg|
550+ g?rad|turn|dpi|dpcm|dppx|m?s|k?Hz
551+ )\b|%)?
552+ scope: constant.numeric.stylus
553+ captures:
554+ 1: keyword.other.unit.stylus
555+ property-reference:
556+ - match: "@[a-z-]+"
557+ scope: variable.other.property.stylus
558+ pseudo:
559+ - match: (:)(active|checked|default|disabled|empty|enabled|first-child|first-of-type|first|fullscreen|focus|hover|indeterminate|in-range|invalid|last-child|last-of-type|left|link|only-child|only-of-type|optional|out-of-range|read-only|read-write|required|right|root|scope|target|valid|visited)\b
560+ scope: entity.other.attribute-name.pseudo-class.stylus
561+ captures:
562+ 1: puncutation.definition.entity.stylus
563+ - match: (:?:)(before|after)\b
564+ scope: entity.other.attribute-name.pseudo-element.stylus
565+ captures:
566+ 1: puncutation.definition.entity.stylus
567+ - match: (::)(first-letter|first-number|selection)\b
568+ scope: entity.other.attribute-name.pseudo-element.stylus
569+ captures:
570+ 1: puncutation.definition.entity.stylus
571+ - match: ((:)dir)\s*(?:(\()(ltr|rtl)?(\)))?
572+ captures:
573+ 1: entity.other.attribute-name.pseudo-element.stylus
574+ 2: puncutation.definition.entity.stylus
575+ 3: puncutation.definition.parameters.start.stylus
576+ 4: constant.language.stylus
577+ 5: puncutation.definition.parameters.end.stylus
578+ - match: ((:)lang)\s*(?:(\()(\w+(-\w+)?)?(\)))?
579+ captures:
580+ 1: entity.other.attribute-name.pseudo-element.stylus
581+ 2: puncutation.definition.entity.stylus
582+ 3: puncutation.definition.parameters.start.stylus
583+ 4: constant.language.stylus
584+ 5: puncutation.definition.parameters.end.stylus
585+ - include: pseudo-nth
586+ - include: pseudo-not
587+ pseudo-not:
588+ - match: ((:)not)\s*(\()
589+ captures:
590+ 1: entity.other.attribute-name.pseudo-element.stylus
591+ 2: puncutation.definition.entity.stylus
592+ 3: puncutation.definition.parameters.start.stylus
593+ push:
594+ - match: \)
595+ captures:
596+ 0: puncutation.definition.parameters.end.stylus
597+ pop: true
598+ - include: selector-components
599+ pseudo-nth:
600+ - match: ((:)(?:nth-child|nth-last-child|nth-of-type|nth-last-of-type|nth-match|nth-last-match|nth-column|nth-last-column))\s*(\()
601+ captures:
602+ 1: entity.other.attribute-name.pseudo-class.stylus
603+ 2: puncutation.definition.entity.stylus
604+ 3: puncutation.definition.parameters.start.stylus
605+ push:
606+ - match: \)
607+ captures:
608+ 0: puncutation.definition.parameters.end.stylus
609+ pop: true
610+ - include: language-operators
611+ - include: interpolation
612+ - match: \b(odd|even)\b
613+ scope: constant.language.stylus
614+ - match: \b(\d+)?n\b
615+ scope: variable.language.stylus
616+ captures:
617+ 1: constant.numeric.stylus
618+ - match: \d+
619+ scope: constant.numeric.stylus
620+ return:
621+ - match: ^\s*(return)
622+ captures:
623+ 1: keyword.control.stylus
624+ push:
625+ - match: (;)|(?=$)
626+ captures:
627+ 1: punctuation.terminator.statement.stylus
628+ pop: true
629+ - include: expression
630+ selector-components:
631+ - include: comments
632+ - include: interpolation
633+ - include: attribute-selector
634+ - include: pseudo
635+ - match: '\$[\w$-]+\b'
636+ scope: entity.other.placeholder.stylus
637+ - match: "[:~>]"
638+ scope: keyword.operator.selector.stylus
639+ - match: |-
640+ (?x) # multi-line regex definition mode
641+ \b(
642+ altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|
643+ animateMotion|animateTransform|circle|clipPath|color-profile|
644+ defs|desc|ellipse|feBlend|feColorMatrix|
645+ feComponentTransfer|feComposite|feConvolveMatrix|
646+ feDiffuseLighting|feDisplacementMap|feDistantLight|feFlood|
647+ feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|
648+ feMergeNode|feMorphology|feOffset|fePointLight|
649+ feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|
650+ font-face|font-face-format|font-face-name|font-face-src|
651+ font-face-uri|foreignObject|g|glyph|glyphRef|hkern|image|line|
652+ linearGradient|marker|mask|metadata|missing-glyph|mpath|path|
653+ pattern|polygon|polyline|radialGradient|rect|set|stop|svg|
654+ switch|symbol|text|textPath|tref|tspan|use|view|vkern|
655+ a|abbr|acronym|address|applet|area|article|aside|audio|b|base|
656+ basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|
657+ canvas|caption|center|cite|code|col|colgroup|content|data|
658+ datalist|dd|decorator|del|details|dfn|dir|div|dl|dt|element|
659+ em|embed|fieldset|figcaption|figure|font|footer|form|frame|
660+ frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|
661+ img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|
662+ main|map|mark|marquee|menu|menuitem|meta|meter|nav|nobr|
663+ noframes|noscript|object|ol|optgroup|option|output|p|param|
664+ plaintext|pre|progress|q|rp|rt|ruby|s|samp|script|section|
665+ select|shadow|small|source|spacer|span|strike|strong|style|
666+ sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|
667+ thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp
668+ )\b
669+ scope: entity.name.tag.stylus
670+ - match: '\.[a-zA-Z0-9_-]+'
671+ scope: entity.other.attribute-name.class.stylus
672+ - match: "#[a-zA-Z0-9_-]+"
673+ scope: entity.other.attribute-name.id.stylus
674+ - match: |-
675+ (?x) # multi-line regex definition mode
676+ ([\w\d_-]+)? # matching any word right before &
677+ (&) # & itself, escaped because of plist
678+ ([\w\d_-]+)? # matching any word right after &
679+ captures:
680+ 1: entity.other.attribute-name.stylus
681+ 2: variable.language.stylus
682+ 3: entity.other.attribute-name.stylus
683+ single-line-comment:
684+ - match: (\/\/).*$
685+ scope: comment.line.stylus
686+ captures:
687+ 1: punctuation.definition.comment.stylus
688+ string-quoted:
689+ - match: "'[^']*'"
690+ scope: string.quoted.single.stylus
691+ - match: '"[^"]*"'
692+ scope: string.quoted.double.stylus
693+ url:
694+ - match: (url)\s*(\()
695+ captures:
696+ 1: entity.function-name.stylus
697+ 2: punctuation.definition.parameters.start.stylus
698+ push:
699+ - meta_scope: meta.function-call.stylus
700+ - match: (\))
701+ captures:
702+ 1: punctuation.definition.parameters.end.stylus
703+ pop: true
704+ - include: string-quoted
705+ - include: language-constants
706+ - include: language-property-value-constants
707+ - include: property-reference
708+ - include: variable
709+ variable:
710+ - match: '([\w$-]+\b)'
711+ scope: variable.other.stylus
assets/syntaxes/02_Extra/SublimeEthereumnew file+1

Submodule changed.

assets/syntaxes/02_Extra/SublimeJQnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Sveltenew file+1

Submodule changed.

assets/syntaxes/Swift → assets/syntaxes/02_Extra/Swiftrenamed

The content is the same.

assets/syntaxes/Swift.sublime-syntax → assets/syntaxes/02_Extra/Swift.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/SystemVerilognew file+1

Submodule changed.

assets/syntaxes/02_Extra/TOMLnew file+1

Submodule changed.

assets/syntaxes/02_Extra/Terraformnew file+1

Submodule changed.

assets/syntaxes/02_Extra/TypeScriptnew file+1

Submodule changed.

assets/syntaxes/TypeScript.sublime-syntax → assets/syntaxes/02_Extra/TypeScript.sublime-syntaxrenamed+296−185
@@ -9,10 +9,7 @@ contexts:
99 main:
1010 - include: directives
1111 - include: statements
12− - match: \A(#!).*(?=$)
13− scope: comment.line.shebang.ts
14− captures:
15− 1: punctuation.definition.comment.ts
12+ - include: shebang
1613 comment:
1714 - match: /\*\*(?!/)
1815 captures:
@@ -47,7 +44,7 @@ contexts:
4744 - match: (?=$)
4845 pop: true
4946 access-modifier:
50− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(abstract|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
47+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(abstract|declare|override|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
5148 scope: storage.modifier.ts
5249 after-operator-block-as-object-literal:
5350 - match: '(?<!\+\+|--)(?<=[:=(,\[?+!>]|^await|[^\._$[:alnum:]]await|^return|[^\._$[:alnum:]]return|^yield|[^\._$[:alnum:]]yield|^throw|[^\._$[:alnum:]]throw|^in|[^\._$[:alnum:]]in|^of|[^\._$[:alnum:]]of|^typeof|[^\._$[:alnum:]]typeof|&&|\|\||\*)\s*(\{)'
@@ -109,7 +106,7 @@ contexts:
109106 (?=
110107 # sure shot arrow functions even if => is on new line
111108 (
112− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
109+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
113110 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
114111 (
115112 ([)]\s*:) | # ():
@@ -119,9 +116,9 @@ contexts:
119116
120117 # arrow function possible to detect only with => on same line
121118 (
122− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
123− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
124− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
119+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
120+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
121+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
125122 \s*=> # arrow operator
126123 )
127124 )
@@ -271,7 +268,7 @@ contexts:
271268 - include: decorator
272269 - match: (?<=:)\s*
273270 push:
274− - match: '(?=\s|[;),}\]:\-\+]|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
271+ - match: '(?=\s|[;),}\]:\-\+]|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
275272 pop: true
276273 - include: expression
277274 - include: method-declaration
@@ -320,7 +317,12 @@ contexts:
320317 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(break|continue|do|goto|while)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
321318 scope: keyword.control.loop.ts
322319 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(return)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
323− scope: keyword.control.flow.ts
320+ captures:
321+ 0: keyword.control.flow.ts
322+ push:
323+ - match: '(?=[;}]|$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
324+ pop: true
325+ - include: expression
324326 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(case|default|switch)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
325327 scope: keyword.control.switch.ts
326328 - include: if-statement
@@ -757,23 +759,25 @@ contexts:
757759 2: keyword.control.as.ts
758760 3: storage.type.namespace.ts
759761 4: entity.name.type.module.ts
760− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?:(?:\s*(=))|(?:\s+(default)(?=\s+)))'
762+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?:\s+(type))?(?:(?:\s*(=))|(?:\s+(default)(?=\s+)))'
761763 captures:
762764 1: keyword.control.export.ts
763− 2: keyword.operator.assignment.ts
764− 3: keyword.control.default.ts
765+ 2: keyword.control.type.ts
766+ 3: keyword.operator.assignment.ts
767+ 4: keyword.control.default.ts
765768 push:
766769 - meta_scope: meta.export.default.ts
767− - match: (?=$|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))
770+ - match: (?=$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))
768771 pop: true
769772 - include: interface-declaration
770773 - include: expression
771− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)\b(?!(\$)|(\s*:))((?=\s*[\{*])|((?=\s*[_$[:alpha:]][_$[:alnum:]]*(\s|,))(?!\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b)))'
774+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?:\s+(type))?\b(?!(\$)|(\s*:))((?=\s*[\{*])|((?=\s*[_$[:alpha:]][_$[:alnum:]]*(\s|,))(?!\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b)))'
772775 captures:
773− 0: keyword.control.export.ts
776+ 1: keyword.control.export.ts
777+ 2: keyword.control.type.ts
774778 push:
775779 - meta_scope: meta.export.ts
776− - match: (?=$|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))
780+ - match: (?=$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))
777781 pop: true
778782 - include: import-export-declaration
779783 expression:
@@ -786,11 +790,11 @@ contexts:
786790 - include: string
787791 - include: decorator
788792 - include: destructuring-parameter
789− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|protected|private|readonly)\s+(?=(public|protected|private|readonly)\s+)'
793+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|protected|private|readonly)\s+(?=(override|public|protected|private|readonly)\s+)'
790794 captures:
791795 1: storage.modifier.ts
792796 - match: |-
793− (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
797+ (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
794798 # function assignment |
795799 (=\s*(
796800 ((async\s+)?(
@@ -799,10 +803,10 @@ contexts:
799803 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
800804 )) |
801805 ((async\s*)?(
802− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
806+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
803807 # sure shot arrow functions even if => is on new line
804808 (
805− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
809+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
806810 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
807811 (
808812 ([)]\s*:) | # ():
@@ -812,9 +816,9 @@ contexts:
812816
813817 # arrow function possible to detect only with => on same line
814818 (
815− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
816− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
817− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
819+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
820+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
821+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
818822 \s*=> # arrow operator
819823 )
820824 ))
@@ -832,18 +836,18 @@ contexts:
832836 ))
833837 )) |
834838 (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
835− (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
836− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
839+ (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
840+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
837841 ((async\s+)?(
838842 (function\s*[(<*]) |
839843 (function\s+) |
840844 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
841845 )) |
842846 ((async\s*)?(
843− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
847+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
844848 # sure shot arrow functions even if => is on new line
845849 (
846− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
850+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
847851 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
848852 (
849853 ([)]\s*:) | # ():
@@ -853,9 +857,9 @@ contexts:
853857
854858 # arrow function possible to detect only with => on same line
855859 (
856− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
857− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
858− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
860+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
861+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
862+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
859863 \s*=> # arrow operator
860864 )
861865 ))
@@ -866,7 +870,7 @@ contexts:
866870 3: entity.name.function.ts variable.language.this.ts
867871 4: entity.name.function.ts
868872 5: keyword.operator.optional.ts
869− - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*:)'
873+ - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*[:,]|$)'
870874 captures:
871875 1: storage.modifier.ts
872876 2: keyword.operator.rest.ts
@@ -916,7 +920,7 @@ contexts:
916920 captures:
917921 1: keyword.control.as.ts
918922 push:
919− - match: '(?=$|^|[;,:})\]]|\|\||\&\&|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+)|(\s+\<))'
923+ - match: '(?=^|[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+)|(\s+\<))'
920924 pop: true
921925 - include: type
922926 - match: \.\.\.
@@ -931,6 +935,11 @@ contexts:
931935 scope: keyword.operator.comparison.ts
932936 - match: <=|>=|<>|<|>
933937 scope: keyword.operator.relational.ts
938+ - match: '(?<=[_$[:alnum:]])(\!)\s*(?:(/=)|(?:(/)(?![/*])))'
939+ captures:
940+ 1: keyword.operator.logical.ts
941+ 2: keyword.operator.assignment.compound.ts
942+ 3: keyword.operator.arithmetic.ts
934943 - match: \!|&&|\|\||\?\?
935944 scope: keyword.operator.logical.ts
936945 - match: \&|~|\^|\|
@@ -943,16 +952,18 @@ contexts:
943952 scope: keyword.operator.increment.ts
944953 - match: '%|\*|/|-|\+'
945954 scope: keyword.operator.arithmetic.ts
946− - match: '(?<=[_$[:alnum:])\]])\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)+(/)(?![/*]))'
955+ - match: '(?<=[_$[:alnum:])\]])\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)+(?:(/=)|(?:(/)(?![/*]))))'
947956 push:
948− - match: '(/)(?!\*([^\*]|(\*[^\/]))*\*\/)'
957+ - match: '(?:(/=)|(?:(/)(?!\*([^\*]|(\*[^\/]))*\*\/)))'
949958 captures:
950− 1: keyword.operator.arithmetic.ts
959+ 1: keyword.operator.assignment.compound.ts
960+ 2: keyword.operator.arithmetic.ts
951961 pop: true
952962 - include: comment
953− - match: '(?<=[_$[:alnum:])\]])\s*(/)(?![/*])'
963+ - match: '(?<=[_$[:alnum:])\]])\s*(?:(/=)|(?:(/)(?![/*])))'
954964 captures:
955− 1: keyword.operator.arithmetic.ts
965+ 1: keyword.operator.assignment.compound.ts
966+ 2: keyword.operator.arithmetic.ts
956967 expressionPunctuations:
957968 - include: punctuation-comma
958969 - include: punctuation-accessor
@@ -985,7 +996,7 @@ contexts:
985996 (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
986997 (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
987998 (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
988− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(?:(?:(\?)|(\!))\s*)?(=|:|;|,|\}|$))
999+ )(?!\$))|(\#?[_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(?:(?:(\?)|(\!))\s*)?(=|:|;|,|\}|$))
9891000 captures:
9901001 1: storage.modifier.ts
9911002 push:
@@ -1000,7 +1011,7 @@ contexts:
10001011 (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
10011012 (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
10021013 (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1003− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(?:(?:(\?)|(\!))\s*)?(=|:|;|,|$))))|(?<=\})
1014+ )(?!\$))|(\#?[_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(?:(?:(\?)|(\!))\s*)?(=|:|;|,|$))))|(?<=\})
10041015 pop: true
10051016 - include: variable-initializer
10061017 - include: type-annotation
@@ -1009,7 +1020,7 @@ contexts:
10091020 - include: numeric-literal
10101021 - include: comment
10111022 - match: |-
1012− (?x)([_$[:alpha:]][_$[:alnum:]]*)(?:(\?)|(\!))?(?=\s*\s*
1023+ (?x)(\#?[_$[:alpha:]][_$[:alnum:]]*)(?:(\?)|(\!))?(?=\s*\s*
10131024 # function assignment |
10141025 (=\s*(
10151026 ((async\s+)?(
@@ -1018,10 +1029,10 @@ contexts:
10181029 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
10191030 )) |
10201031 ((async\s*)?(
1021− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
1032+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
10221033 # sure shot arrow functions even if => is on new line
10231034 (
1024− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1035+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
10251036 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
10261037 (
10271038 ([)]\s*:) | # ():
@@ -1031,9 +1042,9 @@ contexts:
10311042
10321043 # arrow function possible to detect only with => on same line
10331044 (
1034− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1035− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1036− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
1045+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1046+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1047+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
10371048 \s*=> # arrow operator
10381049 )
10391050 ))
@@ -1051,18 +1062,18 @@ contexts:
10511062 ))
10521063 )) |
10531064 (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
1054− (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
1055− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
1065+ (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
1066+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
10561067 ((async\s+)?(
10571068 (function\s*[(<*]) |
10581069 (function\s+) |
10591070 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
10601071 )) |
10611072 ((async\s*)?(
1062− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
1073+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
10631074 # sure shot arrow functions even if => is on new line
10641075 (
1065− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1076+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
10661077 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
10671078 (
10681079 ([)]\s*:) | # ():
@@ -1072,9 +1083,9 @@ contexts:
10721083
10731084 # arrow function possible to detect only with => on same line
10741085 (
1075− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1076− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1077− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
1086+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1087+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1088+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
10781089 \s*=> # arrow operator
10791090 )
10801091 ))
@@ -1083,7 +1094,7 @@ contexts:
10831094 1: meta.definition.property.ts entity.name.function.ts
10841095 2: keyword.operator.optional.ts
10851096 3: keyword.operator.definiteassignment.ts
1086− - match: "[_$[:alpha:]][_$[:alnum:]]*"
1097+ - match: '\#?[_$[:alpha:]][_$[:alnum:]]*'
10871098 scope: meta.definition.property.ts variable.object.property.ts
10881099 - match: \?
10891100 scope: keyword.operator.optional.ts
@@ -1115,29 +1126,47 @@ contexts:
11151126 - include: type-parameters
11161127 - include: function-parameters
11171128 - include: return-type
1129+ - include: type-function-return-type
11181130 - include: decl-block
11191131 - match: \*
11201132 scope: keyword.generator.asterisk.ts
11211133 function-call:
1122− - match: '(?=(((([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))\s*(?:(\?\.\s*)|(\!))?(<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\()'
1134+ - match: '(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))\s*(?:(\?\.\s*)|(\!))?((<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\())'
11231135 push:
1124− - match: '(?<=\))(?!(((([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))\s*(?:(\?\.\s*)|(\!))?(<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\()'
1136+ - match: '(?<=\))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))\s*(?:(\?\.\s*)|(\!))?((<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\())'
11251137 pop: true
1126− - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*))'
1138+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))'
11271139 push:
11281140 - meta_scope: meta.function-call.ts
1129− - match: '(?=\s*(?:(\?\.\s*)|(\!))?(<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\()'
1141+ - match: '(?=\s*(?:(\?\.\s*)|(\!))?((<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\())'
11301142 pop: true
1131− - include: support-function-call-identifiers
1132− - match: "([_$[:alpha:]][_$[:alnum:]]*)"
1133− scope: entity.name.function.ts
1143+ - include: function-call-target
11341144 - include: comment
1135− - match: \?\.
1136− scope: meta.function-call.ts punctuation.accessor.optional.ts
1137− - match: \!
1138− scope: meta.function-call.ts keyword.operator.definiteassignment.ts
1145+ - include: function-call-optionals
11391146 - include: type-arguments
11401147 - include: paren-expression
1148+ - match: '(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))(<\s*[\{\[\(]\s*$))'
1149+ push:
1150+ - match: '(?<=\>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))(<\s*[\{\[\(]\s*$))'
1151+ pop: true
1152+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))'
1153+ push:
1154+ - meta_scope: meta.function-call.ts
1155+ - match: '(?=(<\s*[\{\[\(]\s*$))'
1156+ pop: true
1157+ - include: function-call-target
1158+ - include: comment
1159+ - include: function-call-optionals
1160+ - include: type-arguments
1161+ function-call-optionals:
1162+ - match: \?\.
1163+ scope: meta.function-call.ts punctuation.accessor.optional.ts
1164+ - match: \!
1165+ scope: meta.function-call.ts keyword.operator.definiteassignment.ts
1166+ function-call-target:
1167+ - include: support-function-call-identifiers
1168+ - match: '(\#?[_$[:alpha:]][_$[:alnum:]]*)'
1169+ scope: entity.name.function.ts
11411170 function-declaration:
11421171 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*'
11431172 captures:
@@ -1149,7 +1178,7 @@ contexts:
11491178 6: meta.definition.function.ts entity.name.function.ts
11501179 push:
11511180 - meta_scope: meta.function.ts
1152− - match: '(?=;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|(?<=\})'
1181+ - match: '(?=;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|(?<=\})'
11531182 pop: true
11541183 - include: function-name
11551184 - include: function-body
@@ -1201,10 +1230,10 @@ contexts:
12011230 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
12021231 )) |
12031232 ((async\s*)?(
1204− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
1233+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
12051234 # sure shot arrow functions even if => is on new line
12061235 (
1207− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1236+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
12081237 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
12091238 (
12101239 ([)]\s*:) | # ():
@@ -1214,9 +1243,9 @@ contexts:
12141243
12151244 # arrow function possible to detect only with => on same line
12161245 (
1217− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1218− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1219− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
1246+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1247+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1248+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
12201249 \s*=> # arrow operator
12211250 )
12221251 ))
@@ -1225,12 +1254,12 @@ contexts:
12251254 1: punctuation.accessor.ts
12261255 2: punctuation.accessor.optional.ts
12271256 3: entity.name.function.ts
1228− - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])'
1257+ - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])'
12291258 captures:
12301259 1: punctuation.accessor.ts
12311260 2: punctuation.accessor.optional.ts
12321261 3: variable.other.constant.property.ts
1233− - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*([_$[:alpha:]][_$[:alnum:]]*)'
1262+ - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(\#?[_$[:alpha:]][_$[:alnum:]]*)'
12341263 captures:
12351264 1: punctuation.accessor.ts
12361265 2: punctuation.accessor.optional.ts
@@ -1240,7 +1269,7 @@ contexts:
12401269 - match: "[_$[:alpha:]][_$[:alnum:]]*"
12411270 scope: variable.other.readwrite.ts
12421271 if-statement:
1243− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?=\bif\s*(\(([^\(\)]|(\([^\(\)]*\)))*\))\s*(?!\{))'
1272+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?=\bif\s*(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))\s*(?!\{))'
12441273 push:
12451274 - match: '(?=;|$|\})'
12461275 pop: true
@@ -1255,12 +1284,12 @@ contexts:
12551284 0: meta.brace.round.ts
12561285 pop: true
12571286 - include: expression
1258− - match: '(?<=\))\s*\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/[gimsuy]*(?!\s*[a-zA-Z0-9_$]))'
1287+ - match: '(?<=\))\s*\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)*\])+\/([dgimsuy]+|(?![\/\*])|(?=\/\*))(?!\s*[a-zA-Z0-9_$]))'
12591288 captures:
12601289 0: punctuation.definition.string.begin.ts
12611290 push:
12621291 - meta_scope: string.regexp.ts
1263− - match: "(/)([gimsuy]*)"
1292+ - match: "(/)([dgimsuy]*)"
12641293 captures:
12651294 1: punctuation.definition.string.end.ts
12661295 2: keyword.other.ts
@@ -1268,11 +1297,12 @@ contexts:
12681297 - include: regexp
12691298 - include: statements
12701299 import-declaration:
1271− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?!\s*[:\(])(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
1300+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?:\s+(type)(?!\s+from))?(?!\s*[:\(])(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
12721301 captures:
12731302 1: keyword.control.export.ts
12741303 2: storage.modifier.ts
12751304 3: keyword.control.import.ts
1305+ 4: keyword.control.type.ts
12761306 push:
12771307 - meta_scope: meta.import.ts
12781308 - match: '(?<!^import|[^\._$[:alnum:]]import)(?=;|$|^)'
@@ -1289,15 +1319,16 @@ contexts:
12891319 - include: import-export-declaration
12901320 - include: import-export-declaration
12911321 import-equals-declaration:
1292− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\s*(\()'
1322+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?:\s+(type))?\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\s*(\()'
12931323 captures:
12941324 1: keyword.control.export.ts
12951325 2: storage.modifier.ts
12961326 3: keyword.control.import.ts
1297− 4: variable.other.readwrite.alias.ts
1298− 5: keyword.operator.assignment.ts
1299− 6: keyword.control.require.ts
1300− 7: meta.brace.round.ts
1327+ 4: keyword.control.type.ts
1328+ 5: variable.other.readwrite.alias.ts
1329+ 6: keyword.operator.assignment.ts
1330+ 7: keyword.control.require.ts
1331+ 8: meta.brace.round.ts
13011332 push:
13021333 - meta_scope: meta.import-equals.external.ts
13031334 - match: \)
@@ -1306,13 +1337,14 @@ contexts:
13061337 pop: true
13071338 - include: comment
13081339 - include: string
1309− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)'
1340+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?:\s+(type))?\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)'
13101341 captures:
13111342 1: keyword.control.export.ts
13121343 2: storage.modifier.ts
13131344 3: keyword.control.import.ts
1314− 4: variable.other.readwrite.alias.ts
1315− 5: keyword.operator.assignment.ts
1345+ 4: keyword.control.type.ts
1346+ 5: variable.other.readwrite.alias.ts
1347+ 6: keyword.operator.assignment.ts
13161348 push:
13171349 - meta_scope: meta.import-equals.internal.ts
13181350 - match: (?=;|$|^)
@@ -1391,6 +1423,9 @@ contexts:
13911423 2: keyword.operator.type.modifier.ts
13921424 3: keyword.operator.optional.ts
13931425 pop: true
1426+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+'
1427+ captures:
1428+ 1: keyword.control.as.ts
13941429 - include: type
13951430 inline-tags:
13961431 - match: '(\[)[^\]]+(\])(?={@(?:link|linkcode|linkplain|tutorial))'
@@ -1422,7 +1457,7 @@ contexts:
14221457 captures:
14231458 1: keyword.operator.expression.instanceof.ts
14241459 push:
1425− - match: '(?<=\))|(?=[;),}\]:?]|\|\||\&\&|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
1460+ - match: '(?<=\))|(?=[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|(([\&\~\^\|]\s*)?[_$[:alpha:]][_$[:alnum:]]*\s+instanceof(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
14261461 pop: true
14271462 - include: type
14281463 interface-declaration:
@@ -1481,25 +1516,27 @@ contexts:
14811516 - include: this-literal
14821517 - include: super-literal
14831518 method-declaration:
1484− - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?\s*\b(constructor)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
1519+ - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(override)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?\s*\b(constructor)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
14851520 captures:
14861521 1: storage.modifier.ts
14871522 2: storage.modifier.ts
1488− 3: storage.modifier.async.ts
1489− 4: storage.type.ts
1523+ 3: storage.modifier.ts
1524+ 4: storage.modifier.async.ts
1525+ 5: storage.type.ts
14901526 push:
14911527 - meta_scope: meta.method.declaration.ts
14921528 - match: '(?=\}|;|,|$)|(?<=\})'
14931529 pop: true
14941530 - include: method-declaration-name
14951531 - include: function-body
1496− - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:(?:\s*\b(new)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|(?:(\*)\s*)?)(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])'
1532+ - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(override)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:(?:\s*\b(new)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|(?:(\*)\s*)?)(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])'
14971533 captures:
14981534 1: storage.modifier.ts
14991535 2: storage.modifier.ts
1500− 3: storage.modifier.async.ts
1501− 4: keyword.operator.new.ts
1502− 5: keyword.generator.asterisk.ts
1536+ 3: storage.modifier.ts
1537+ 4: storage.modifier.async.ts
1538+ 5: keyword.operator.new.ts
1539+ 6: keyword.generator.asterisk.ts
15031540 push:
15041541 - meta_scope: meta.method.declaration.ts
15051542 - match: '(?=\}|;|,|$)|(?<=\})'
@@ -1507,7 +1544,7 @@ contexts:
15071544 - include: method-declaration-name
15081545 - include: function-body
15091546 - match: |-
1510− (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1547+ (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(override)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
15111548 (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
15121549 (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
15131550 (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
@@ -1516,13 +1553,14 @@ contexts:
15161553 (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
15171554 (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
15181555 (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1519− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
1556+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
15201557 captures:
15211558 1: storage.modifier.ts
15221559 2: storage.modifier.ts
1523− 3: storage.modifier.async.ts
1524− 4: storage.type.property.ts
1525− 5: keyword.generator.asterisk.ts
1560+ 3: storage.modifier.ts
1561+ 4: storage.modifier.async.ts
1562+ 5: storage.type.property.ts
1563+ 6: keyword.generator.asterisk.ts
15261564 push:
15271565 - meta_scope: meta.method.declaration.ts
15281566 - match: '(?=\}|;|,|$)|(?<=\})'
@@ -1559,7 +1597,7 @@ contexts:
15591597 3: storage.type.namespace.ts
15601598 push:
15611599 - meta_scope: meta.namespace.declaration.ts
1562− - match: '(?<=\})|(?=;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
1600+ - match: '(?<=\})|(?=;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
15631601 pop: true
15641602 - include: comment
15651603 - include: string
@@ -1573,11 +1611,9 @@ contexts:
15731611 1: keyword.operator.new.ts
15741612 push:
15751613 - meta_scope: new.expr.ts
1576− - match: '(?<=\))|(?=[;),}\]:\-\+]|\|\||\&\&|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))new(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
1614+ - match: '(?<=\))|(?=[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))new(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
15771615 pop: true
1578− - include: paren-expression
1579− - include: class-declaration
1580− - include: type
1616+ - include: expression
15811617 null-literal:
15821618 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))null(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
15831619 scope: constant.language.null.ts
@@ -1720,9 +1756,9 @@ contexts:
17201756 scope: support.class.ts
17211757 - match: |-
17221758 (?x)(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(?:
1723− ([[:upper:]][_$[:digit:][:upper:]]*) |
1724− ([_$[:alpha:]][_$[:alnum:]]*)
1725− )(?=\s*\??\.\s*[_$[:alpha:]][_$[:alnum:]]*)
1759+ (\#?[[:upper:]][_$[:digit:][:upper:]]*) |
1760+ (\#?[_$[:alpha:]][_$[:alnum:]]*)
1761+ )(?=\s*\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*)
17261762 captures:
17271763 1: punctuation.accessor.ts
17281764 2: punctuation.accessor.optional.ts
@@ -1732,7 +1768,7 @@ contexts:
17321768 (?x)(?:
17331769 ([[:upper:]][_$[:digit:][:upper:]]*) |
17341770 ([_$[:alpha:]][_$[:alnum:]]*)
1735− )(?=\s*\??\.\s*[_$[:alpha:]][_$[:alnum:]]*)
1771+ )(?=\s*\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*)
17361772 captures:
17371773 1: variable.other.constant.object.ts
17381774 2: variable.other.object.ts
@@ -1758,7 +1794,7 @@ contexts:
17581794 (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
17591795 (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
17601796 (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1761− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
1797+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
17621798 captures:
17631799 1: storage.modifier.async.ts
17641800 2: storage.type.property.ts
@@ -1779,7 +1815,7 @@ contexts:
17791815 (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
17801816 (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
17811817 (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1782− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
1818+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
17831819 captures:
17841820 1: storage.modifier.async.ts
17851821 2: storage.type.property.ts
@@ -1841,10 +1877,10 @@ contexts:
18411877 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
18421878 )) |
18431879 ((async\s*)?(
1844− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
1880+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
18451881 # sure shot arrow functions even if => is on new line
18461882 (
1847− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1883+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
18481884 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
18491885 (
18501886 ([)]\s*:) | # ():
@@ -1854,9 +1890,9 @@ contexts:
18541890
18551891 # arrow function possible to detect only with => on same line
18561892 (
1857− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1858− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1859− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
1893+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1894+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1895+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
18601896 \s*=> # arrow operator
18611897 )
18621898 ))
@@ -1891,7 +1927,7 @@ contexts:
18911927 1: keyword.control.as.ts
18921928 push:
18931929 - meta_scope: meta.object.member.ts
1894− - match: '(?=$|^|[,}]|\|\||\&\&|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+))'
1930+ - match: '(?=[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|^|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+))'
18951931 pop: true
18961932 - include: type
18971933 - match: '(?=[_$[:alpha:]][_$[:alnum:]]*\s*=)'
@@ -1907,7 +1943,7 @@ contexts:
19071943 - meta_scope: meta.object.member.ts
19081944 - match: '(?=,|\})'
19091945 pop: true
1910− - match: '(?<=:)\s*(async)?(?=\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)\(\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
1946+ - match: '(?<=:)\s*(async)?(?=\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)\(\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
19111947 captures:
19121948 1: storage.modifier.async.ts
19131949 push:
@@ -1923,7 +1959,7 @@ contexts:
19231959 0: meta.brace.round.ts
19241960 pop: true
19251961 - include: expression-inside-possibly-arrow-parens
1926− - match: '(?<=:)\s*(async)?\s*(\()(?=\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
1962+ - match: '(?<=:)\s*(async)?\s*(\()(?=\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
19271963 captures:
19281964 1: storage.modifier.async.ts
19291965 2: meta.brace.round.ts
@@ -1933,6 +1969,22 @@ contexts:
19331969 0: meta.brace.round.ts
19341970 pop: true
19351971 - include: expression-inside-possibly-arrow-parens
1972+ - match: (?<=:)\s*(async)?\s*(?=\<\s*$)
1973+ captures:
1974+ 1: storage.modifier.async.ts
1975+ push:
1976+ - match: (?<=\>)
1977+ pop: true
1978+ - include: type-parameters
1979+ - match: '(?<=\>)\s*(\()(?=\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
1980+ captures:
1981+ 1: meta.brace.round.ts
1982+ push:
1983+ - match: \)
1984+ captures:
1985+ 0: meta.brace.round.ts
1986+ pop: true
1987+ - include: expression-inside-possibly-arrow-parens
19361988 - include: possibly-arrow-return-type
19371989 - include: expression
19381990 - include: punctuation-comma
@@ -1958,11 +2010,11 @@ contexts:
19582010 - include: destructuring-parameter-rest
19592011 - include: variable-initializer
19602012 parameter-name:
1961− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|protected|private|readonly)\s+(?=(public|protected|private|readonly)\s+)'
2013+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|protected|private|readonly)\s+(?=(override|public|protected|private|readonly)\s+)'
19622014 captures:
19632015 1: storage.modifier.ts
19642016 - match: |-
1965− (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
2017+ (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
19662018 # function assignment |
19672019 (=\s*(
19682020 ((async\s+)?(
@@ -1971,10 +2023,10 @@ contexts:
19712023 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
19722024 )) |
19732025 ((async\s*)?(
1974− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
2026+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
19752027 # sure shot arrow functions even if => is on new line
19762028 (
1977− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
2029+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
19782030 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
19792031 (
19802032 ([)]\s*:) | # ():
@@ -1984,9 +2036,9 @@ contexts:
19842036
19852037 # arrow function possible to detect only with => on same line
19862038 (
1987− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1988− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1989− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
2039+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
2040+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
2041+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
19902042 \s*=> # arrow operator
19912043 )
19922044 ))
@@ -2004,18 +2056,18 @@ contexts:
20042056 ))
20052057 )) |
20062058 (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
2007− (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
2008− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
2059+ (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
2060+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
20092061 ((async\s+)?(
20102062 (function\s*[(<*]) |
20112063 (function\s+) |
20122064 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
20132065 )) |
20142066 ((async\s*)?(
2015− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
2067+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
20162068 # sure shot arrow functions even if => is on new line
20172069 (
2018− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
2070+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
20192071 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
20202072 (
20212073 ([)]\s*:) | # ():
@@ -2025,9 +2077,9 @@ contexts:
20252077
20262078 # arrow function possible to detect only with => on same line
20272079 (
2028− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
2029− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
2030− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
2080+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
2081+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
2082+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
20312083 \s*=> # arrow operator
20322084 )
20332085 ))
@@ -2038,7 +2090,7 @@ contexts:
20382090 3: entity.name.function.ts variable.language.this.ts
20392091 4: entity.name.function.ts
20402092 5: keyword.operator.optional.ts
2041− - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)'
2093+ - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)'
20422094 captures:
20432095 1: storage.modifier.ts
20442096 2: keyword.operator.rest.ts
@@ -2098,14 +2150,14 @@ contexts:
20982150 pop: true
20992151 - include: expression
21002152 paren-expression-possibly-arrow:
2101− - match: '(?<=[(=,])\s*(async)?(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?\(\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
2153+ - match: '(?<=[(=,])\s*(async)?(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?\(\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
21022154 captures:
21032155 1: storage.modifier.async.ts
21042156 push:
21052157 - match: (?<=\))
21062158 pop: true
21072159 - include: paren-expression-possibly-arrow-with-typeparameters
2108− - match: '(?<=[(=,]|=>|^return|[^\._$[:alnum:]]return)\s*(async)?(?=\s*((((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?\()|(<))\s*$)'
2160+ - match: '(?<=[(=,]|=>|^return|[^\._$[:alnum:]]return)\s*(async)?(?=\s*((((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?\()|(<))\s*$)'
21092161 captures:
21102162 1: storage.modifier.async.ts
21112163 push:
@@ -2125,7 +2177,7 @@ contexts:
21252177 pop: true
21262178 - include: expression-inside-possibly-arrow-parens
21272179 possibly-arrow-return-type:
2128− - match: '(?<=\)|^)\s*(:)(?=\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*=>)'
2180+ - match: '(?<=\)|^)\s*(:)(?=\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*=>)'
21292181 captures:
21302182 1: meta.arrow.ts meta.return.type.arrow.ts keyword.operator.type.annotation.ts
21312183 push:
@@ -2172,23 +2224,23 @@ contexts:
21722224 pop: true
21732225 - include: string-character-escape
21742226 regex:
2175− - match: '(?<!\+\+|--|})(?<=[=(:,\[?+!]|^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case|=>|&&|\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[\()]|\\.|\[([^\]\\]|\\.)+\]|\(([^\)\\]|\\.)+\))+\/[gimsuy]*(?!\s*[a-zA-Z0-9_$]))'
2227+ - match: '(?<!\+\+|--|})(?<=[=(:,\[?+!]|^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case|=>|&&|\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[\()]|\\.|\[([^\]\\]|\\.)+\]|\(([^\)\\]|\\.)+\))+\/([dgimsuy]+|(?![\/\*])|(?=\/\*))(?!\s*[a-zA-Z0-9_$]))'
21762228 captures:
21772229 1: punctuation.definition.string.begin.ts
21782230 push:
21792231 - meta_scope: string.regexp.ts
2180− - match: "(/)([gimsuy]*)"
2232+ - match: "(/)([dgimsuy]*)"
21812233 captures:
21822234 1: punctuation.definition.string.end.ts
21832235 2: keyword.other.ts
21842236 pop: true
21852237 - include: regexp
2186− - match: '((?<![_$[:alnum:])\]]|\+\+|--|}|\*\/)|((?<=^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case))\s*)\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/[gimsuy]*(?!\s*[a-zA-Z0-9_$]))'
2238+ - match: '((?<![_$[:alnum:])\]]|\+\+|--|}|\*\/)|((?<=^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case))\s*)\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)*\])+\/([dgimsuy]+|(?![\/\*])|(?=\/\*))(?!\s*[a-zA-Z0-9_$]))'
21872239 captures:
21882240 0: punctuation.definition.string.begin.ts
21892241 push:
21902242 - meta_scope: string.regexp.ts
2191− - match: "(/)([gimsuy]*)"
2243+ - match: "(/)([dgimsuy]*)"
21922244 captures:
21932245 1: punctuation.definition.string.end.ts
21942246 2: keyword.other.ts
@@ -2288,6 +2340,11 @@ contexts:
22882340 - include: type-object
22892341 - include: type-predicate-operator
22902342 - include: type
2343+ shebang:
2344+ - match: \A(#!).*(?=$)
2345+ scope: comment.line.shebang.ts
2346+ captures:
2347+ 1: punctuation.definition.comment.ts
22912348 single-line-comment-consuming-line-ending:
22922349 - match: '(^[ \t]+)?((//)(?:\s*((@)internal)(?=\s|$))?)'
22932350 captures:
@@ -2301,8 +2358,6 @@ contexts:
23012358 - match: (?=^)
23022359 pop: true
23032360 statements:
2304− - include: string
2305− - include: comment
23062361 - include: declaration
23072362 - include: control-statement
23082363 - include: after-operator-block-as-object-literal
@@ -2310,6 +2365,8 @@ contexts:
23102365 - include: label
23112366 - include: expression
23122367 - include: punctuation-semicolon
2368+ - include: string
2369+ - include: comment
23132370 string:
23142371 - include: qstring-single
23152372 - include: qstring-double
@@ -2386,7 +2443,7 @@ contexts:
23862443 4: support.variable.property.target.ts
23872444 - match: |-
23882445 (?x) (?:(\.)|(\?\.(?!\s*[[:digit:]]))) \s* (?:
2389− (?:(constructor|length|prototype|__proto__)\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?\())
2446+ (?:(constructor|length|prototype|__proto__)\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?\())
23902447 |
23912448 (?:(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\b(?!\$)))
23922449 captures:
@@ -2492,7 +2549,7 @@ contexts:
24922549 |siblingBelow|size|source|specified|standby|start|status|statusbar|statusText|style|styleSheets|suffixes|summary
24932550 |systemId|systemLanguage|tagName|tags|target|tBodies|text|textAlign|textDecoration|textIndent|textTransform|tFoot|tHead
24942551 |title|toolbar|top|type|undefined|uniqueID|updateInterval|URL|URLUnencoded|useMap|userAgent|userLanguage|userProfile
2495− |vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex))\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?\()
2552+ |vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex))\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?\()
24962553 captures:
24972554 1: punctuation.accessor.ts
24982555 2: punctuation.accessor.optional.ts
@@ -2659,20 +2716,34 @@ contexts:
26592716 0: case-clause.expr.ts punctuation.definition.section.case-statement.ts
26602717 - include: statements
26612718 template:
2662− - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?`)'
2719+ - include: template-call
2720+ - match: "([_$[:alpha:]][_$[:alnum:]]*)?(`)"
2721+ captures:
2722+ 1: entity.name.function.tagged-template.ts
2723+ 2: punctuation.definition.string.template.begin.ts
2724+ push:
2725+ - meta_scope: string.template.ts
2726+ - match: "`"
2727+ captures:
2728+ 0: punctuation.definition.string.template.end.ts
2729+ pop: true
2730+ - include: template-substitution-element
2731+ - include: string-character-escape
2732+ template-call:
2733+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?`)'
26632734 push:
26642735 - meta_scope: string.template.ts
26652736 - match: (?=`)
26662737 pop: true
26672738 - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*))'
26682739 push:
2669− - match: '(?=(<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?`)'
2740+ - match: '(?=(<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?`)'
26702741 pop: true
26712742 - include: support-function-call-identifiers
26722743 - match: "([_$[:alpha:]][_$[:alnum:]]*)"
26732744 scope: entity.name.function.tagged-template.ts
26742745 - include: type-arguments
2675− - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)`)'
2746+ - match: '([_$[:alpha:]][_$[:alnum:]]*)?\s*(?=(<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)`)'
26762747 captures:
26772748 1: entity.name.function.tagged-template.ts
26782749 push:
@@ -2680,6 +2751,20 @@ contexts:
26802751 - match: (?=`)
26812752 pop: true
26822753 - include: type-arguments
2754+ template-substitution-element:
2755+ - match: '\$\{'
2756+ captures:
2757+ 0: punctuation.definition.template-expression.begin.ts
2758+ push:
2759+ - meta_scope: meta.template.expression.ts
2760+ - meta_content_scope: meta.embedded.line.ts
2761+ - match: '\}'
2762+ captures:
2763+ 0: punctuation.definition.template-expression.end.ts
2764+ pop: true
2765+ - include: expression
2766+ template-type:
2767+ - include: template-call
26832768 - match: "([_$[:alpha:]][_$[:alnum:]]*)?(`)"
26842769 captures:
26852770 1: entity.name.function.tagged-template.ts
@@ -2690,9 +2775,9 @@ contexts:
26902775 captures:
26912776 0: punctuation.definition.string.template.end.ts
26922777 pop: true
2693− - include: template-substitution-element
2778+ - include: template-type-substitution-element
26942779 - include: string-character-escape
2695− template-substitution-element:
2780+ template-type-substitution-element:
26962781 - match: '\$\{'
26972782 captures:
26982783 0: punctuation.definition.template-expression.begin.ts
@@ -2703,7 +2788,7 @@ contexts:
27032788 captures:
27042789 0: punctuation.definition.template-expression.end.ts
27052790 pop: true
2706− - include: expression
2791+ - include: type
27072792 ternary-expression:
27082793 - match: '(?!\?\.\s*[^[:digit:]])(\?)(?!\?)'
27092794 captures:
@@ -2719,7 +2804,7 @@ contexts:
27192804 scope: variable.language.this.ts
27202805 type:
27212806 - include: comment
2722− - include: string
2807+ - include: type-string
27232808 - include: numeric-literal
27242809 - include: type-primitive
27252810 - include: type-builtin-literals
@@ -2744,15 +2829,23 @@ contexts:
27442829 4: entity.name.type.alias.ts
27452830 push:
27462831 - meta_scope: meta.type.declaration.ts
2747− - match: '(?=\}|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
2832+ - match: '(?=\}|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
27482833 pop: true
27492834 - include: comment
27502835 - include: type-parameters
2836+ - match: '(=)\s*(intrinsic)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
2837+ captures:
2838+ 1: keyword.operator.assignment.ts
2839+ 2: keyword.control.intrinsic.ts
2840+ push:
2841+ - match: '(?=\}|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
2842+ pop: true
2843+ - include: type
27512844 - match: (=)\s*
27522845 captures:
27532846 1: keyword.operator.assignment.ts
27542847 push:
2755− - match: '(?=\}|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
2848+ - match: '(?=\}|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
27562849 pop: true
27572850 - include: type
27582851 type-annotation:
@@ -2810,17 +2903,19 @@ contexts:
28102903 - include: type
28112904 - include: type
28122905 type-fn-type-parameters:
2813− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(new)\b(?=\s*\<)'
2906+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(new)\b(?=\s*\<)'
28142907 captures:
2815− 1: meta.type.constructor.ts keyword.control.new.ts
2908+ 1: meta.type.constructor.ts storage.modifier.ts
2909+ 2: meta.type.constructor.ts keyword.control.new.ts
28162910 push:
28172911 - match: (?<=>)
28182912 pop: true
28192913 - include: comment
28202914 - include: type-parameters
2821− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(new)\b\s*(?=\()'
2915+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(new)\b\s*(?=\()'
28222916 captures:
2823− 1: keyword.control.new.ts
2917+ 1: storage.modifier.ts
2918+ 2: keyword.control.new.ts
28242919 push:
28252920 - meta_scope: meta.type.constructor.ts
28262921 - match: (?<=\))
@@ -2991,7 +3086,7 @@ contexts:
29913086 ))
29923087 )) |
29933088 (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
2994− (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))))
3089+ (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))))
29953090 captures:
29963091 1: storage.modifier.ts
29973092 2: keyword.operator.rest.ts
@@ -3028,6 +3123,10 @@ contexts:
30283123 type-primitive:
30293124 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
30303125 scope: support.type.primitive.ts
3126+ type-string:
3127+ - include: qstring-single
3128+ - include: qstring-double
3129+ - include: template-type
30313130 type-tuple:
30323131 - match: '\['
30333132 captures:
@@ -3038,11 +3137,23 @@ contexts:
30383137 captures:
30393138 0: meta.brace.square.ts
30403139 pop: true
3140+ - match: \.\.\.
3141+ scope: keyword.operator.rest.ts
3142+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))([_$[:alpha:]][_$[:alnum:]]*)\s*(\?)?\s*(:)'
3143+ captures:
3144+ 1: entity.name.label.ts
3145+ 2: keyword.operator.optional.ts
3146+ 3: punctuation.separator.label.ts
30413147 - include: type
30423148 - include: punctuation-comma
30433149 typeof-operator:
30443150 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))typeof(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3045− scope: keyword.operator.expression.typeof.ts
3151+ captures:
3152+ 0: keyword.operator.expression.typeof.ts
3153+ push:
3154+ - match: '(?=[,);}\]=>:&|{\?]|$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
3155+ pop: true
3156+ - include: expression
30463157 undefined-literal:
30473158 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))undefined(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
30483159 scope: constant.language.undefined.ts
@@ -3050,7 +3161,7 @@ contexts:
30503161 - match: '(?=(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))'
30513162 push:
30523163 - meta_scope: meta.var.expr.ts
3053− - match: '(?!(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|^\s*$|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|((?<!^let|[^\._$[:alnum:]]let|^var|[^\._$[:alnum:]]var)(?=\s*$)))'
3164+ - match: '(?!(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|((?<!^let|[^\._$[:alnum:]]let|^var|[^\._$[:alnum:]]var)(?=\s*$)))'
30543165 pop: true
30553166 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*'
30563167 captures:
@@ -3083,7 +3194,7 @@ contexts:
30833194 3: storage.type.ts
30843195 push:
30853196 - meta_scope: meta.var.expr.ts
3086− - match: '(?!(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|^\s*$|;|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|((?<!^const|[^\._$[:alnum:]]const)(?=\s*$)))'
3197+ - match: '(?!(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|((?<!^const|[^\._$[:alnum:]]const)(?=\s*$)))'
30873198 pop: true
30883199 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*'
30893200 captures:
@@ -3120,10 +3231,10 @@ contexts:
31203231 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
31213232 )) |
31223233 ((async\s*)?(
3123− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
3234+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
31243235 # sure shot arrow functions even if => is on new line
31253236 (
3126− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3237+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
31273238 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
31283239 (
31293240 ([)]\s*:) | # ():
@@ -3133,9 +3244,9 @@ contexts:
31333244
31343245 # arrow function possible to detect only with => on same line
31353246 (
3136− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3137− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3138− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
3247+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3248+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3249+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
31393250 \s*=> # arrow operator
31403251 )
31413252 ))
@@ -3153,18 +3264,18 @@ contexts:
31533264 ))
31543265 )) |
31553266 (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
3156− (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
3157− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
3267+ (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
3268+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
31583269 ((async\s+)?(
31593270 (function\s*[(<*]) |
31603271 (function\s+) |
31613272 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
31623273 )) |
31633274 ((async\s*)?(
3164− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
3275+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
31653276 # sure shot arrow functions even if => is on new line
31663277 (
3167− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3278+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
31683279 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
31693280 (
31703281 ([)]\s*:) | # ():
@@ -3174,9 +3285,9 @@ contexts:
31743285
31753286 # arrow function possible to detect only with => on same line
31763287 (
3177− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3178− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3179− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
3288+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3289+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3290+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
31803291 \s*=> # arrow operator
31813292 )
31823293 ))
@@ -3207,10 +3318,10 @@ contexts:
32073318 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
32083319 )) |
32093320 ((async\s*)?(
3210− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
3321+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
32113322 # sure shot arrow functions even if => is on new line
32123323 (
3213− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3324+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
32143325 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
32153326 (
32163327 ([)]\s*:) | # ():
@@ -3220,9 +3331,9 @@ contexts:
32203331
32213332 # arrow function possible to detect only with => on same line
32223333 (
3223− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3224− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3225− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
3334+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3335+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3336+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
32263337 \s*=> # arrow operator
32273338 )
32283339 ))
@@ -3240,18 +3351,18 @@ contexts:
32403351 ))
32413352 )) |
32423353 (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
3243− (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
3244− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
3354+ (:\s*((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
3355+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
32453356 ((async\s+)?(
32463357 (function\s*[(<*]) |
32473358 (function\s+) |
32483359 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
32493360 )) |
32503361 ((async\s*)?(
3251− ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{[^\{\}]*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[[^\[\]]*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
3362+ ((<\s*$)|((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?[\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
32523363 # sure shot arrow functions even if => is on new line
32533364 (
3254− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3365+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
32553366 [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
32563367 (
32573368 ([)]\s*:) | # ():
@@ -3261,9 +3372,9 @@ contexts:
32613372
32623373 # arrow function possible to detect only with => on same line
32633374 (
3264− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3265− \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3266− (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
3375+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3376+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3377+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
32673378 \s*=> # arrow operator
32683379 )
32693380 ))
assets/syntaxes/TypsecriptReact.sublime-syntax → assets/syntaxes/02_Extra/TypsecriptReact.sublime-syntaxrenamed+896−477
@@ -9,10 +9,7 @@ contexts:
99 main:
1010 - include: directives
1111 - include: statements
12− - match: \A(#!).*(?=$)
13− scope: comment.line.shebang.ts
14− captures:
15− 1: punctuation.definition.comment.ts
12+ - include: shebang
1613 comment:
1714 - match: /\*\*(?!/)
1815 captures:
@@ -44,10 +41,10 @@ contexts:
4441 5: punctuation.decorator.internaldeclaration.tsx
4542 push:
4643 - meta_content_scope: comment.line.double-slash.tsx
47− - match: (?=^)
44+ - match: (?=$)
4845 pop: true
4946 access-modifier:
50− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(abstract|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
47+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(abstract|declare|override|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
5148 scope: storage.modifier.tsx
5249 after-operator-block-as-object-literal:
5350 - match: '(?<!\+\+|--)(?<=[:=(,\[?+!>]|^await|[^\._$[:alnum:]]await|^return|[^\._$[:alnum:]]return|^yield|[^\._$[:alnum:]]yield|^throw|[^\._$[:alnum:]]throw|^in|[^\._$[:alnum:]]in|^of|[^\._$[:alnum:]]of|^typeof|[^\._$[:alnum:]]typeof|&&|\|\||\*)\s*(\{)'
@@ -109,8 +106,8 @@ contexts:
109106 (?=
110107 # sure shot arrow functions even if => is on new line
111108 (
112− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
113− [(]\s*
109+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
110+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
114111 (
115112 ([)]\s*:) | # ():
116113 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -121,9 +118,9 @@ contexts:
121118 ) |
122119 # arrow function possible to detect only with => on same line
123120 (
124− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
125− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
126− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
121+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
122+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
123+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
127124 \s*=> # arrow operator
128125 )
129126 )
@@ -138,13 +135,15 @@ contexts:
138135 - include: type-parameters
139136 - include: function-parameters
140137 - include: arrow-return-type
138+ - include: possibly-arrow-return-type
141139 - match: "=>"
142140 captures:
143141 0: storage.type.function.arrow.tsx
144142 push:
145143 - meta_scope: meta.arrow.tsx
146− - match: '(?<=\}|\S)(?<!=>)|((?!\{)(?=\S))'
144+ - match: '((?<=\}|\S)(?<!=>)|((?!\{)(?=\S)))(?!\/[\/\*])'
147145 pop: true
146+ - include: single-line-comment-consuming-line-ending
148147 - include: decl-block
149148 - include: expression
150149 arrow-return-type:
@@ -170,6 +169,8 @@ contexts:
170169 binding-element:
171170 - include: comment
172171 - include: string
172+ - include: numeric-literal
173+ - include: regex
173174 - include: object-binding-pattern
174175 - include: array-binding-pattern
175176 - include: destructuring-variable-rest
@@ -177,6 +178,8 @@ contexts:
177178 binding-element-const:
178179 - include: comment
179180 - include: string
181+ - include: numeric-literal
182+ - include: regex
180183 - include: object-binding-pattern-const
181184 - include: array-binding-pattern-const
182185 - include: destructuring-variable-rest-const
@@ -200,11 +203,12 @@ contexts:
200203 cast:
201204 - include: jsx
202205 class-declaration:
203− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(export)\s+)?\b(?:(abstract)\s+)?\b(class)\b(?=\s+|/[/*])'
206+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(?:(abstract)\s+)?\b(class)\b(?=\s+|/[/*])'
204207 captures:
205208 1: keyword.control.export.tsx
206209 2: storage.modifier.tsx
207− 3: storage.type.class.tsx
210+ 3: storage.modifier.tsx
211+ 4: storage.type.class.tsx
208212 push:
209213 - meta_scope: meta.class.tsx
210214 - match: '(?<=\})'
@@ -219,9 +223,10 @@ contexts:
219223 - include: type-parameters
220224 - include: class-or-interface-body
221225 class-expression:
222− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(class)\b(?=\s+|[<{]|\/[\/*])'
226+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(class)\b(?=\s+|[<{]|\/[\/*])'
223227 captures:
224− 1: storage.type.class.tsx
228+ 1: storage.modifier.tsx
229+ 2: storage.type.class.tsx
225230 push:
226231 - meta_scope: meta.class.tsx
227232 - match: '(?<=\})'
@@ -238,6 +243,11 @@ contexts:
238243 pop: true
239244 - include: comment
240245 - include: decorator
246+ - match: (?<=:)\s*
247+ push:
248+ - match: '(?=\s|[;),}\]:\-\+]|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
249+ pop: true
250+ - include: expression
241251 - include: method-declaration
242252 - include: indexer-declaration
243253 - include: field-declaration
@@ -284,9 +294,15 @@ contexts:
284294 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(break|continue|do|goto|while)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
285295 scope: keyword.control.loop.tsx
286296 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(return)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
287− scope: keyword.control.flow.tsx
297+ captures:
298+ 0: keyword.control.flow.tsx
299+ push:
300+ - match: '(?=[;}]|$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
301+ pop: true
302+ - include: expression
288303 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(case|default|switch)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
289304 scope: keyword.control.switch.tsx
305+ - include: if-statement
290306 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(else|if)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
291307 scope: keyword.control.conditional.tsx
292308 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(with)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
@@ -295,8 +311,6 @@ contexts:
295311 scope: keyword.control.tsx
296312 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(debugger)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
297313 scope: keyword.other.debugger.tsx
298− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(declare)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
299− scope: storage.modifier.tsx
300314 decl-block:
301315 - match: '\{'
302316 captures:
@@ -320,6 +334,8 @@ contexts:
320334 - include: import-equals-declaration
321335 - include: import-declaration
322336 - include: export-declaration
337+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(declare|export)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
338+ scope: storage.modifier.tsx
323339 decorator:
324340 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))\@'
325341 captures:
@@ -333,7 +349,7 @@ contexts:
333349 - match: '(?<!=|:|^of|[^\._$[:alnum:]]of|^in|[^\._$[:alnum:]]in)\s*(?=\{)'
334350 push:
335351 - meta_scope: meta.object-binding-pattern-variable.tsx
336− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
352+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
337353 pop: true
338354 - include: object-binding-pattern-const
339355 - include: type-annotation
@@ -341,15 +357,16 @@ contexts:
341357 - match: '(?<!=|:|^of|[^\._$[:alnum:]]of|^in|[^\._$[:alnum:]]in)\s*(?=\[)'
342358 push:
343359 - meta_scope: meta.array-binding-pattern-variable.tsx
344− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
360+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
345361 pop: true
346362 - include: array-binding-pattern-const
347363 - include: type-annotation
348364 - include: comment
349365 destructuring-parameter:
350− - match: '(?<!=|:)\s*(\{)'
366+ - match: '(?<!=|:)\s*(?:(\.\.\.)\s*)?(\{)'
351367 captures:
352− 1: punctuation.definition.binding-pattern.object.tsx
368+ 1: keyword.operator.rest.tsx
369+ 2: punctuation.definition.binding-pattern.object.tsx
353370 push:
354371 - meta_scope: meta.parameter.object-binding-pattern.tsx
355372 - match: '\}'
@@ -357,9 +374,10 @@ contexts:
357374 0: punctuation.definition.binding-pattern.object.tsx
358375 pop: true
359376 - include: parameter-object-binding-element
360− - match: '(?<!=|:)\s*(\[)'
377+ - match: '(?<!=|:)\s*(?:(\.\.\.)\s*)?(\[)'
361378 captures:
362− 1: punctuation.definition.binding-pattern.array.tsx
379+ 1: keyword.operator.rest.tsx
380+ 2: punctuation.definition.binding-pattern.array.tsx
363381 push:
364382 - meta_scope: meta.paramter.array-binding-pattern.tsx
365383 - match: '\]'
@@ -377,7 +395,7 @@ contexts:
377395 - match: '(?<!=|:|^of|[^\._$[:alnum:]]of|^in|[^\._$[:alnum:]]in)\s*(?=\{)'
378396 push:
379397 - meta_scope: meta.object-binding-pattern-variable.tsx
380− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
398+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
381399 pop: true
382400 - include: object-binding-pattern
383401 - include: type-annotation
@@ -385,7 +403,7 @@ contexts:
385403 - match: '(?<!=|:|^of|[^\._$[:alnum:]]of|^in|[^\._$[:alnum:]]in)\s*(?=\[)'
386404 push:
387405 - meta_scope: meta.array-binding-pattern-variable.tsx
388− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
406+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
389407 pop: true
390408 - include: array-binding-pattern
391409 - include: type-annotation
@@ -401,12 +419,12 @@ contexts:
401419 1: keyword.operator.rest.tsx
402420 2: meta.definition.variable.tsx variable.other.constant.tsx
403421 directives:
404− - match: '^(///)\s*(?=<(reference|amd-dependency|amd-module)(\s+(path|types|no-default-lib|lib|name)\s*=\s*((\''([^\''\\]|\\\''|\\)*\'')|(\"([^\"\\]|\\\"|\\)*\")))+\s*/>\s*$)'
422+ - match: '^(///)\s*(?=<(reference|amd-dependency|amd-module)(\s+(path|types|no-default-lib|lib|name)\s*=\s*((\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)))+\s*/>\s*$)'
405423 captures:
406424 1: punctuation.definition.comment.tsx
407425 push:
408426 - meta_scope: comment.line.triple-slash.directive.tsx
409− - match: (?=^)
427+ - match: (?=$)
410428 pop: true
411429 - match: (<)(reference|amd-dependency|amd-module)
412430 captures:
@@ -668,13 +686,18 @@ contexts:
668686 captures:
669687 1: punctuation.definition.block.tag.jsdoc
670688 - include: inline-tags
689+ - match: '((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\s+)'
690+ captures:
691+ 1: storage.type.class.jsdoc
692+ 2: punctuation.definition.block.tag.jsdoc
671693 enum-declaration:
672− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:\b(const)\s+)?\b(enum)\s+([_$[:alpha:]][_$[:alnum:]]*)'
694+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?(?:\b(const)\s+)?\b(enum)\s+([_$[:alpha:]][_$[:alnum:]]*)'
673695 captures:
674696 1: keyword.control.export.tsx
675697 2: storage.modifier.tsx
676− 3: storage.type.enum.tsx
677− 4: entity.name.type.enum.tsx
698+ 3: storage.modifier.tsx
699+ 4: storage.type.enum.tsx
700+ 5: entity.name.type.enum.tsx
678701 push:
679702 - meta_scope: meta.enum.declaration.tsx
680703 - match: '(?<=\})'
@@ -697,7 +720,7 @@ contexts:
697720 pop: true
698721 - include: comment
699722 - include: variable-initializer
700− - match: '(?=((\''([^\''\\]|\\\''|\\)*\'')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\])))'
723+ - match: '(?=((\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\])))'
701724 push:
702725 - match: '(?=,|\}|$)'
703726 pop: true
@@ -713,22 +736,25 @@ contexts:
713736 2: keyword.control.as.tsx
714737 3: storage.type.namespace.tsx
715738 4: entity.name.type.module.tsx
716− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?:(?:\s*(=))|(?:\s+(default)(?=\s+)))'
739+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?:\s+(type))?(?:(?:\s*(=))|(?:\s+(default)(?=\s+)))'
717740 captures:
718741 1: keyword.control.export.tsx
719− 2: keyword.operator.assignment.tsx
720− 3: keyword.control.default.tsx
742+ 2: keyword.control.type.tsx
743+ 3: keyword.operator.assignment.tsx
744+ 4: keyword.control.default.tsx
721745 push:
722746 - meta_scope: meta.export.default.tsx
723− - match: (?=$|;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)
747+ - match: (?=$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))
724748 pop: true
749+ - include: interface-declaration
725750 - include: expression
726− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?!\s*:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
751+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(export)(?:\s+(type))?\b(?!(\$)|(\s*:))((?=\s*[\{*])|((?=\s*[_$[:alpha:]][_$[:alnum:]]*(\s|,))(?!\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b)))'
727752 captures:
728− 0: keyword.control.export.tsx
753+ 1: keyword.control.export.tsx
754+ 2: keyword.control.type.tsx
729755 push:
730756 - meta_scope: meta.export.tsx
731− - match: (?=$|;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)
757+ - match: (?=$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))
732758 pop: true
733759 - include: import-export-declaration
734760 expression:
@@ -737,7 +763,105 @@ contexts:
737763 - include: expressionPunctuations
738764 expression-inside-possibly-arrow-parens:
739765 - include: expressionWithoutIdentifiers
740− - include: function-parameters-body
766+ - include: comment
767+ - include: string
768+ - include: decorator
769+ - include: destructuring-parameter
770+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|protected|private|readonly)\s+(?=(override|public|protected|private|readonly)\s+)'
771+ captures:
772+ 1: storage.modifier.tsx
773+ - match: |-
774+ (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
775+ # function assignment |
776+ (=\s*(
777+ ((async\s+)?(
778+ (function\s*[(<*]) |
779+ (function\s+) |
780+ ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
781+ )) |
782+ ((async\s*)?(
783+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
784+ # sure shot arrow functions even if => is on new line
785+ (
786+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
787+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
788+ (
789+ ([)]\s*:) | # ():
790+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
791+ )
792+ ) |
793+ (
794+ [<]\s*[_$[:alpha:]][_$[:alnum:]]*\s+extends\s*[^=>] # < typeparam extends
795+ ) |
796+ # arrow function possible to detect only with => on same line
797+ (
798+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
799+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
800+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
801+ \s*=> # arrow operator
802+ )
803+ ))
804+ )) |
805+ # typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>
806+ (:\s*(
807+ (<) |
808+ ([(]\s*(
809+ ([)]) |
810+ (\.\.\.) |
811+ ([_$[:alnum:]]+\s*(
812+ ([:,?=])|
813+ ([)]\s*=>)
814+ ))
815+ ))
816+ )) |
817+ (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
818+ (:\s*((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
819+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
820+ ((async\s+)?(
821+ (function\s*[(<*]) |
822+ (function\s+) |
823+ ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
824+ )) |
825+ ((async\s*)?(
826+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
827+ # sure shot arrow functions even if => is on new line
828+ (
829+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
830+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
831+ (
832+ ([)]\s*:) | # ():
833+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
834+ )
835+ ) |
836+ (
837+ [<]\s*[_$[:alpha:]][_$[:alnum:]]*\s+extends\s*[^=>] # < typeparam extends
838+ ) |
839+ # arrow function possible to detect only with => on same line
840+ (
841+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
842+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
843+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
844+ \s*=> # arrow operator
845+ )
846+ ))
847+ )))
848+ captures:
849+ 1: storage.modifier.tsx
850+ 2: keyword.operator.rest.tsx
851+ 3: entity.name.function.tsx variable.language.this.tsx
852+ 4: entity.name.function.tsx
853+ 5: keyword.operator.optional.tsx
854+ - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*[:,]|$)'
855+ captures:
856+ 1: storage.modifier.tsx
857+ 2: keyword.operator.rest.tsx
858+ 3: variable.parameter.tsx variable.language.this.tsx
859+ 4: variable.parameter.tsx
860+ 5: keyword.operator.optional.tsx
861+ - include: type-annotation
862+ - include: variable-initializer
863+ - match: ","
864+ scope: punctuation.separator.parameter.tsx
741865 - include: identifiers
742866 - include: expressionPunctuations
743867 expression-operators:
@@ -769,11 +893,15 @@ contexts:
769893 - include: typeof-operator
770894 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))void(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
771895 scope: keyword.operator.expression.void.tsx
896+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+(const)(?=\s*($|[;,:})\]]))'
897+ captures:
898+ 1: keyword.control.as.tsx
899+ 2: storage.modifier.tsx
772900 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+'
773901 captures:
774902 1: keyword.control.as.tsx
775903 push:
776− - match: '(?=$|^|[;,:})\]]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+))'
904+ - match: '(?=^|[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+)|(\s+\<))'
777905 pop: true
778906 - include: type
779907 - match: \.\.\.
@@ -788,7 +916,12 @@ contexts:
788916 scope: keyword.operator.comparison.tsx
789917 - match: <=|>=|<>|<|>
790918 scope: keyword.operator.relational.tsx
791− - match: \!|&&|\|\|
919+ - match: '(?<=[_$[:alnum:]])(\!)\s*(?:(/=)|(?:(/)(?![/*])))'
920+ captures:
921+ 1: keyword.operator.logical.tsx
922+ 2: keyword.operator.assignment.compound.tsx
923+ 3: keyword.operator.arithmetic.tsx
924+ - match: \!|&&|\|\||\?\?
792925 scope: keyword.operator.logical.tsx
793926 - match: \&|~|\^|\|
794927 scope: keyword.operator.bitwise.tsx
@@ -800,9 +933,18 @@ contexts:
800933 scope: keyword.operator.increment.tsx
801934 - match: '%|\*|/|-|\+'
802935 scope: keyword.operator.arithmetic.tsx
803− - match: '(?<=[_$[:alnum:])\]])\s*(/)(?![/*])'
936+ - match: '(?<=[_$[:alnum:])\]])\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)+(?:(/=)|(?:(/)(?![/*]))))'
937+ push:
938+ - match: '(?:(/=)|(?:(/)(?!\*([^\*]|(\*[^\/]))*\*\/)))'
939+ captures:
940+ 1: keyword.operator.assignment.compound.tsx
941+ 2: keyword.operator.arithmetic.tsx
942+ pop: true
943+ - include: comment
944+ - match: '(?<=[_$[:alnum:])\]])\s*(?:(/=)|(?:(/)(?![/*])))'
804945 captures:
805− 1: keyword.operator.arithmetic.tsx
946+ 1: keyword.operator.assignment.compound.tsx
947+ 2: keyword.operator.arithmetic.tsx
806948 expressionPunctuations:
807949 - include: punctuation-comma
808950 - include: punctuation-accessor
@@ -810,7 +952,6 @@ contexts:
810952 - include: jsx
811953 - include: string
812954 - include: regex
813− - include: template
814955 - include: comment
815956 - include: function-expression
816957 - include: class-expression
@@ -828,143 +969,123 @@ contexts:
828969 - include: paren-expression
829970 field-declaration:
830971 - match: |-
831− (?x)(?<!\()(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(readonly)\s+)?(?=\s*((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
832− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
833− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
834− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
835− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
836− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
837− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
838− (?:\B(\.)[0-9][0-9_]*\b)| # .1
839− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
840− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\?\s*)?(=|:))
972+ (?x)(?<!\()(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(readonly)\s+)?(?=\s*((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
973+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
974+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
975+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
976+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
977+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
978+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
979+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
980+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
981+ )(?!\$))|(\#?[_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(?:(?:(\?)|(\!))\s*)?(=|:|;|,|\}|$))
841982 captures:
842983 1: storage.modifier.tsx
843984 push:
844985 - meta_scope: meta.field.declaration.tsx
845986 - match: |-
846− (?x)(?=\}|;|,|$|(^(?!\s*((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
847− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
848− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
849− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
850− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
851− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
852− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
853− (?:\B(\.)[0-9][0-9_]*\b)| # .1
854− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
855− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\?\s*)?(=|:))))|(?<=\})
987+ (?x)(?=\}|;|,|$|(^(?!\s*((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
988+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
989+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
990+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
991+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
992+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
993+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
994+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
995+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
996+ )(?!\$))|(\#?[_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(?:(?:(\?)|(\!))\s*)?(=|:|;|,|$))))|(?<=\})
856997 pop: true
857998 - include: variable-initializer
999+ - include: type-annotation
1000+ - include: string
1001+ - include: array-literal
1002+ - include: numeric-literal
1003+ - include: comment
8581004 - match: |-
859− (?x)(?=((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
860− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
861− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
862− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
863− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
864− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
865− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
866− (?:\B(\.)[0-9][0-9_]*\b)| # .1
867− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
868− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\?\s*)?(=|:))
869− push:
870− - match: |-
871− (?x)(?=[};,=]|$|(^(?!\s*((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
872− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
873− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
874− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
875− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
876− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
877− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
878− (?:\B(\.)[0-9][0-9_]*\b)| # .1
879− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
880− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\?\s*)?(=|:))))|(?<=\})
881− pop: true
882− - include: type-annotation
883− - include: string
884− - include: array-literal
885− - include: numeric-literal
886− - include: comment
887− - match: |-
888− (?x)([_$[:alpha:]][_$[:alnum:]]*)(\?)?(?=(\?\s*)?\s*
889− # function assignment |
890− (=\s*(
891− ((async\s+)?(
892− (function\s*[(<*]) |
893− (function\s+) |
894− ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
895− )) |
896− ((async\s*)?(
897− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
898− # sure shot arrow functions even if => is on new line
899− (
900− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
901− [(]\s*
902− (
903− ([)]\s*:) | # ():
904− ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
905− )
906− ) |
907− (
908− [<]\s*[_$[:alpha:]][_$[:alnum:]]*\s+extends\s*[^=>] # < typeparam extends
909− ) |
910− # arrow function possible to detect only with => on same line
911− (
912− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
913− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
914− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
915− \s*=> # arrow operator
916− )
917− ))
918− )) |
919− # typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>
920− (:\s*(
921− (<) |
922− ([(]\s*(
923− ([)]) |
924− (\.\.\.) |
925− ([_$[:alnum:]]+\s*(
926− ([:,?=])|
927− ([)]\s*=>)
928− ))
929− ))
930− )) |
931− (:\s*((<\s*$)|([\(]\s*([\{\[]\s*)?$))) |
932− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
933− ((async\s+)?(
934− (function\s*[(<*]) |
935− (function\s+) |
936− ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
937− )) |
938− ((async\s*)?(
939− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
940− # sure shot arrow functions even if => is on new line
941− (
942− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
943− [(]\s*
944− (
945− ([)]\s*:) | # ():
946− ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
947− )
948− ) |
949− (
950− [<]\s*[_$[:alpha:]][_$[:alnum:]]*\s+extends\s*[^=>] # < typeparam extends
951− ) |
952− # arrow function possible to detect only with => on same line
953− (
954− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
955− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
956− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
957− \s*=> # arrow operator
958− )
959− ))
960− )))
961− captures:
962− 1: meta.definition.property.tsx entity.name.function.tsx
963− 2: keyword.operator.optional.tsx
964− - match: "[_$[:alpha:]][_$[:alnum:]]*"
965− scope: meta.definition.property.tsx variable.object.property.tsx
966− - match: \?
967− scope: keyword.operator.optional.tsx
1005+ (?x)(\#?[_$[:alpha:]][_$[:alnum:]]*)(?:(\?)|(\!))?(?=\s*\s*
1006+ # function assignment |
1007+ (=\s*(
1008+ ((async\s+)?(
1009+ (function\s*[(<*]) |
1010+ (function\s+) |
1011+ ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
1012+ )) |
1013+ ((async\s*)?(
1014+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
1015+ # sure shot arrow functions even if => is on new line
1016+ (
1017+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1018+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
1019+ (
1020+ ([)]\s*:) | # ():
1021+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
1022+ )
1023+ ) |
1024+ (
1025+ [<]\s*[_$[:alpha:]][_$[:alnum:]]*\s+extends\s*[^=>] # < typeparam extends
1026+ ) |
1027+ # arrow function possible to detect only with => on same line
1028+ (
1029+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1030+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1031+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
1032+ \s*=> # arrow operator
1033+ )
1034+ ))
1035+ )) |
1036+ # typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>
1037+ (:\s*(
1038+ (<) |
1039+ ([(]\s*(
1040+ ([)]) |
1041+ (\.\.\.) |
1042+ ([_$[:alnum:]]+\s*(
1043+ ([:,?=])|
1044+ ([)]\s*=>)
1045+ ))
1046+ ))
1047+ )) |
1048+ (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
1049+ (:\s*((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
1050+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
1051+ ((async\s+)?(
1052+ (function\s*[(<*]) |
1053+ (function\s+) |
1054+ ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
1055+ )) |
1056+ ((async\s*)?(
1057+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
1058+ # sure shot arrow functions even if => is on new line
1059+ (
1060+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1061+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
1062+ (
1063+ ([)]\s*:) | # ():
1064+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
1065+ )
1066+ ) |
1067+ (
1068+ [<]\s*[_$[:alpha:]][_$[:alnum:]]*\s+extends\s*[^=>] # < typeparam extends
1069+ ) |
1070+ # arrow function possible to detect only with => on same line
1071+ (
1072+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1073+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1074+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
1075+ \s*=> # arrow operator
1076+ )
1077+ ))
1078+ )))
1079+ captures:
1080+ 1: meta.definition.property.tsx entity.name.function.tsx
1081+ 2: keyword.operator.optional.tsx
1082+ 3: keyword.operator.definiteassignment.tsx
1083+ - match: '\#?[_$[:alpha:]][_$[:alnum:]]*'
1084+ scope: meta.definition.property.tsx variable.object.property.tsx
1085+ - match: \?
1086+ scope: keyword.operator.optional.tsx
1087+ - match: \!
1088+ scope: keyword.operator.definiteassignment.tsx
9681089 for-loop:
9691090 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))for(?=((\s+|(\s*\/\*([^\*]|(\*[^\/]))*\*\/\s*))await)?\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)?(\())'
9701091 captures:
@@ -991,43 +1112,59 @@ contexts:
9911112 - include: type-parameters
9921113 - include: function-parameters
9931114 - include: return-type
1115+ - include: type-function-return-type
9941116 - include: decl-block
9951117 - match: \*
9961118 scope: keyword.generator.asterisk.tsx
9971119 function-call:
998− - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*)\s*(\?\.\s*)?(<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?!=)\>)*(?!=)>\s*)?\()'
1120+ - match: '(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))\s*(?:(\?\.\s*)|(\!))?((<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\())'
9991121 push:
1000− - match: '(?<=\))(?!(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*)\s*(\?\.\s*)?(<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?!=)\>)*(?!=)>\s*)?\()'
1122+ - match: '(?<=\))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))\s*(?:(\?\.\s*)|(\!))?((<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\())'
10011123 pop: true
1002− - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*))'
1124+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))'
10031125 push:
10041126 - meta_scope: meta.function-call.tsx
1005− - match: '(?=\s*(\?\.\s*)?(<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?!=)\>)*(?!=)>\s*)?\()'
1127+ - match: '(?=\s*(?:(\?\.\s*)|(\!))?((<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?\())'
10061128 pop: true
1007− - include: literal
1008− - include: support-objects
1009− - include: object-identifiers
1010− - include: punctuation-accessor
1011− - match: '(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))import(?=\s*[\(]\s*[\"\''\`]))'
1012− scope: keyword.operator.expression.import.tsx
1013− - match: "([_$[:alpha:]][_$[:alnum:]]*)"
1014− scope: entity.name.function.tsx
1129+ - include: function-call-target
10151130 - include: comment
1016− - match: \?\.
1017− scope: meta.function-call.tsx punctuation.accessor.optional.tsx
1131+ - include: function-call-optionals
10181132 - include: type-arguments
10191133 - include: paren-expression
1134+ - match: '(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))(<\s*[\{\[\(]\s*$))'
1135+ push:
1136+ - match: '(?<=\>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\)]))(<\s*[\{\[\(]\s*$))'
1137+ pop: true
1138+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*)(\s*\??\.\s*(\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*))'
1139+ push:
1140+ - meta_scope: meta.function-call.tsx
1141+ - match: '(?=(<\s*[\{\[\(]\s*$))'
1142+ pop: true
1143+ - include: function-call-target
1144+ - include: comment
1145+ - include: function-call-optionals
1146+ - include: type-arguments
1147+ function-call-optionals:
1148+ - match: \?\.
1149+ scope: meta.function-call.tsx punctuation.accessor.optional.tsx
1150+ - match: \!
1151+ scope: meta.function-call.tsx keyword.operator.definiteassignment.tsx
1152+ function-call-target:
1153+ - include: support-function-call-identifiers
1154+ - match: '(\#?[_$[:alpha:]][_$[:alnum:]]*)'
1155+ scope: entity.name.function.tsx
10201156 function-declaration:
1021− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*'
1157+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*'
10221158 captures:
10231159 1: keyword.control.export.tsx
1024− 2: storage.modifier.async.tsx
1025− 3: storage.type.function.tsx
1026− 4: keyword.generator.asterisk.tsx
1027− 5: meta.definition.function.tsx entity.name.function.tsx
1160+ 2: storage.modifier.tsx
1161+ 3: storage.modifier.async.tsx
1162+ 4: storage.type.function.tsx
1163+ 5: keyword.generator.asterisk.tsx
1164+ 6: meta.definition.function.tsx entity.name.function.tsx
10281165 push:
10291166 - meta_scope: meta.function.tsx
1030− - match: '(?=$|^|;)|(?<=\})'
1167+ - match: '(?=;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|(?<=\})'
10311168 pop: true
10321169 - include: function-name
10331170 - include: function-body
@@ -1040,9 +1177,10 @@ contexts:
10401177 4: meta.definition.function.tsx entity.name.function.tsx
10411178 push:
10421179 - meta_scope: meta.function.expression.tsx
1043− - match: '(?<=\})'
1180+ - match: '(?=;)|(?<=\})'
10441181 pop: true
10451182 - include: function-name
1183+ - include: single-line-comment-consuming-line-ending
10461184 - include: function-body
10471185 function-name:
10481186 - match: "[_$[:alpha:]][_$[:alnum:]]*"
@@ -1060,10 +1198,11 @@ contexts:
10601198 - include: function-parameters-body
10611199 function-parameters-body:
10621200 - include: comment
1201+ - include: string
10631202 - include: decorator
10641203 - include: destructuring-parameter
10651204 - include: parameter-name
1066− - include: type-annotation
1205+ - include: parameter-type-annotation
10671206 - include: variable-initializer
10681207 - match: ","
10691208 scope: punctuation.separator.parameter.tsx
@@ -1077,11 +1216,11 @@ contexts:
10771216 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
10781217 )) |
10791218 ((async\s*)?(
1080− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
1219+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
10811220 # sure shot arrow functions even if => is on new line
10821221 (
1083− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
1084− [(]\s*
1222+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
1223+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
10851224 (
10861225 ([)]\s*:) | # ():
10871226 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -1092,9 +1231,9 @@ contexts:
10921231 ) |
10931232 # arrow function possible to detect only with => on same line
10941233 (
1095− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
1096− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1097− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
1234+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
1235+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
1236+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
10981237 \s*=> # arrow operator
10991238 )
11001239 ))
@@ -1103,12 +1242,12 @@ contexts:
11031242 1: punctuation.accessor.tsx
11041243 2: punctuation.accessor.optional.tsx
11051244 3: entity.name.function.tsx
1106− - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])'
1245+ - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])'
11071246 captures:
11081247 1: punctuation.accessor.tsx
11091248 2: punctuation.accessor.optional.tsx
11101249 3: variable.other.constant.property.tsx
1111− - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*([_$[:alpha:]][_$[:alnum:]]*)'
1250+ - match: '(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(\#?[_$[:alpha:]][_$[:alnum:]]*)'
11121251 captures:
11131252 1: punctuation.accessor.tsx
11141253 2: punctuation.accessor.optional.tsx
@@ -1117,15 +1256,46 @@ contexts:
11171256 scope: variable.other.constant.tsx
11181257 - match: "[_$[:alpha:]][_$[:alnum:]]*"
11191258 scope: variable.other.readwrite.tsx
1259+ if-statement:
1260+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?=\bif\s*(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))\s*(?!\{))'
1261+ push:
1262+ - match: '(?=;|$|\})'
1263+ pop: true
1264+ - include: comment
1265+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(if)\s*(\()'
1266+ captures:
1267+ 1: keyword.control.conditional.tsx
1268+ 2: meta.brace.round.tsx
1269+ push:
1270+ - match: \)
1271+ captures:
1272+ 0: meta.brace.round.tsx
1273+ pop: true
1274+ - include: expression
1275+ - match: '(?<=\))\s*\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)*\])+\/([dgimsuy]+|(?![\/\*])|(?=\/\*))(?!\s*[a-zA-Z0-9_$]))'
1276+ captures:
1277+ 0: punctuation.definition.string.begin.tsx
1278+ push:
1279+ - meta_scope: string.regexp.tsx
1280+ - match: "(/)([dgimsuy]*)"
1281+ captures:
1282+ 1: punctuation.definition.string.end.tsx
1283+ 2: keyword.other.tsx
1284+ pop: true
1285+ - include: regexp
1286+ - include: statements
11201287 import-declaration:
1121− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(import)(?!\s*[:\(])(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
1288+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?:\s+(type)(?!\s+from))?(?!\s*[:\(])(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
11221289 captures:
11231290 1: keyword.control.export.tsx
1124− 2: keyword.control.import.tsx
1291+ 2: storage.modifier.tsx
1292+ 3: keyword.control.import.tsx
1293+ 4: keyword.control.type.tsx
11251294 push:
11261295 - meta_scope: meta.import.tsx
11271296 - match: '(?<!^import|[^\._$[:alnum:]]import)(?=;|$|^)'
11281297 pop: true
1298+ - include: single-line-comment-consuming-line-ending
11291299 - include: comment
11301300 - include: string
11311301 - match: '(?<=^import|[^\._$[:alnum:]]import)(?!\s*["''])'
@@ -1137,14 +1307,16 @@ contexts:
11371307 - include: import-export-declaration
11381308 - include: import-export-declaration
11391309 import-equals-declaration:
1140− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\s*(\()'
1310+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?:\s+(type))?\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\s*(\()'
11411311 captures:
11421312 1: keyword.control.export.tsx
1143− 2: keyword.control.import.tsx
1144− 3: variable.other.readwrite.alias.tsx
1145− 4: keyword.operator.assignment.tsx
1146− 5: keyword.control.require.tsx
1147− 6: meta.brace.round.tsx
1313+ 2: storage.modifier.tsx
1314+ 3: keyword.control.import.tsx
1315+ 4: keyword.control.type.tsx
1316+ 5: variable.other.readwrite.alias.tsx
1317+ 6: keyword.operator.assignment.tsx
1318+ 7: keyword.control.require.tsx
1319+ 8: meta.brace.round.tsx
11481320 push:
11491321 - meta_scope: meta.import-equals.external.tsx
11501322 - match: \)
@@ -1153,16 +1325,19 @@ contexts:
11531325 pop: true
11541326 - include: comment
11551327 - include: string
1156− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)'
1328+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(import)(?:\s+(type))?\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)'
11571329 captures:
11581330 1: keyword.control.export.tsx
1159− 2: keyword.control.import.tsx
1160− 3: variable.other.readwrite.alias.tsx
1161− 4: keyword.operator.assignment.tsx
1331+ 2: storage.modifier.tsx
1332+ 3: keyword.control.import.tsx
1333+ 4: keyword.control.type.tsx
1334+ 5: variable.other.readwrite.alias.tsx
1335+ 6: keyword.operator.assignment.tsx
11621336 push:
11631337 - meta_scope: meta.import-equals.internal.tsx
11641338 - match: (?=;|$|^)
11651339 pop: true
1340+ - include: single-line-comment-consuming-line-ending
11661341 - include: comment
11671342 - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?:(\.)|(\?\.(?!\s*[[:digit:]])))'
11681343 captures:
@@ -1184,7 +1359,7 @@ contexts:
11841359 - include: import-export-clause
11851360 import-export-clause:
11861361 - include: comment
1187− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bdefault)|(\*)|(\b[_$[:alpha:]][_$[:alnum:]]*))\s+(as)\s+(?:(\bdefault(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|(\b[_$[:alpha:]][_$[:alnum:]]*))'
1362+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bdefault)|(\*)|(\b[_$[:alpha:]][_$[:alnum:]]*))\s+(as)\s+(?:(default(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|([_$[:alpha:]][_$[:alnum:]]*))'
11881363 captures:
11891364 1: keyword.control.default.tsx
11901365 2: constant.language.import-export-all.tsx
@@ -1236,6 +1411,9 @@ contexts:
12361411 2: keyword.operator.type.modifier.tsx
12371412 3: keyword.operator.optional.tsx
12381413 pop: true
1414+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+'
1415+ captures:
1416+ 1: keyword.control.as.tsx
12391417 - include: type
12401418 inline-tags:
12411419 - match: '(\[)[^\]]+(\])(?={@(?:link|linkcode|linkplain|tutorial))'
@@ -1267,15 +1445,16 @@ contexts:
12671445 captures:
12681446 1: keyword.operator.expression.instanceof.tsx
12691447 push:
1270− - match: '(?<=\))|(?=[;),}\]:?]|\|\||\&\&|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
1448+ - match: '(?<=\))|(?=[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|(([\&\~\^\|]\s*)?[_$[:alpha:]][_$[:alnum:]]*\s+instanceof(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
12711449 pop: true
12721450 - include: type
12731451 interface-declaration:
1274− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(export)\s+)?\b(?:(abstract)\s+)?\b(interface)\b(?=\s+|/[/*])'
1452+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(?:(abstract)\s+)?\b(interface)\b(?=\s+|/[/*])'
12751453 captures:
12761454 1: keyword.control.export.tsx
12771455 2: storage.modifier.tsx
1278− 3: storage.type.interface.tsx
1456+ 3: storage.modifier.tsx
1457+ 4: storage.type.interface.tsx
12791458 push:
12801459 - meta_scope: meta.interface.tsx
12811460 - match: '(?<=\})'
@@ -1323,7 +1502,7 @@ contexts:
13231502 captures:
13241503 0: punctuation.section.embedded.begin.tsx
13251504 push:
1326− - meta_scope: meta.embedded.expression.tsx
1505+ - meta_content_scope: meta.embedded.expression.tsx
13271506 - match: '\}'
13281507 captures:
13291508 0: punctuation.section.embedded.end.tsx
@@ -1352,10 +1531,10 @@ contexts:
13521531 pop: true
13531532 - include: jsx-entities
13541533 jsx-tag:
1355− - match: '(?=(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>))'
1534+ - match: '(?=(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>))'
13561535 push:
13571536 - meta_scope: meta.tag.tsx
1358− - match: '(/>)|(?:(</)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))?\s*(>))'
1537+ - match: '(/>)|(?:(</)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))?\s*(>))'
13591538 captures:
13601539 1: punctuation.definition.tag.end.tsx
13611540 2: punctuation.definition.tag.begin.tsx
@@ -1365,7 +1544,7 @@ contexts:
13651544 6: support.class.component.tsx
13661545 7: punctuation.definition.tag.end.tsx
13671546 pop: true
1368− - match: '(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>)'
1547+ - match: '(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>)'
13691548 captures:
13701549 1: punctuation.definition.tag.begin.tsx
13711550 2: entity.name.tag.namespace.tsx
@@ -1393,8 +1572,8 @@ contexts:
13931572 - match: |-
13941573 (?x)
13951574 \s*
1396− (?:([_$[:alpha:]][-$[:alnum:].]*)(:))?
1397− ([_$[:alpha:]][-$[:alnum:]]*)
1575+ (?:([_$[:alpha:]][-_$[:alnum:].]*)(:))?
1576+ ([_$[:alpha:]][-_$[:alnum:]]*)
13981577 (?=\s|=|/?>|/\*|//)
13991578 captures:
14001579 1: entity.other.attribute-name.namespace.tsx
@@ -1419,15 +1598,15 @@ contexts:
14191598 jsx-tag-in-expression:
14201599 - match: |-
14211600 (?x)
1422− (?<!\+\+|--)(?<=[({\[,?=>:*]|&&|\|\||\?|^await|[^\._$[:alnum:]]await|^return|[^\._$[:alnum:]]return|^default|[^\._$[:alnum:]]default|^yield|[^\._$[:alnum:]]yield|^)\s*
1601+ (?<!\+\+|--)(?<=[({\[,?=>:*]|&&|\|\||\?|\*\/|^await|[^\._$[:alnum:]]await|^return|[^\._$[:alnum:]]return|^default|[^\._$[:alnum:]]default|^yield|[^\._$[:alnum:]]yield|^)\s*
14231602 (?!<\s*[_$[:alpha:]][_$[:alnum:]]*((\s+extends\s+[^=>])|,)) # look ahead is not type parameter of arrow
1424− (?=(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>))
1603+ (?=(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>))
14251604 push:
1426− - match: '(?!(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>))'
1605+ - match: '(?!(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))(?=((<\s*)|(\s+))(?!\?)|\/?>))'
14271606 pop: true
14281607 - include: jsx-tag
14291608 jsx-tag-without-attributes:
1430− - match: '(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))?\s*(>)'
1609+ - match: '(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))?\s*(>)'
14311610 captures:
14321611 1: punctuation.definition.tag.begin.tsx
14331612 2: entity.name.tag.namespace.tsx
@@ -1438,7 +1617,7 @@ contexts:
14381617 push:
14391618 - meta_scope: meta.tag.without-attributes.tsx
14401619 - meta_content_scope: meta.jsx.children.tsx
1441− - match: '(</)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))?\s*(>)'
1620+ - match: '(</)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))?\s*(>)'
14421621 captures:
14431622 1: punctuation.definition.tag.begin.tsx
14441623 2: entity.name.tag.namespace.tsx
@@ -1449,9 +1628,9 @@ contexts:
14491628 pop: true
14501629 - include: jsx-children
14511630 jsx-tag-without-attributes-in-expression:
1452− - match: '(?<!\+\+|--)(?<=[({\[,?=>:*]|&&|\|\||\?|^await|[^\._$[:alnum:]]await|^return|[^\._$[:alnum:]]return|^default|[^\._$[:alnum:]]default|^yield|[^\._$[:alnum:]]yield|^)\s*(?=(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))?\s*(>))'
1631+ - match: '(?<!\+\+|--)(?<=[({\[,?=>:*]|&&|\|\||\?|\*\/|^await|[^\._$[:alnum:]]await|^return|[^\._$[:alnum:]]return|^default|[^\._$[:alnum:]]default|^yield|[^\._$[:alnum:]]yield|^)\s*(?=(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))?\s*(>))'
14531632 push:
1454− - match: '(?!(<)\s*(?:([_$[:alpha:]][-$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-$[:alnum:].]*))(?<!\.|-))?\s*(>))'
1633+ - match: '(?!(<)\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\.|-))?\s*(>))'
14551634 pop: true
14561635 - include: jsx-tag-without-attributes
14571636 label:
@@ -1477,25 +1656,27 @@ contexts:
14771656 - include: this-literal
14781657 - include: super-literal
14791658 method-declaration:
1480− - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?\s*\b(constructor)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
1659+ - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(override)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?\s*\b(constructor)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
14811660 captures:
14821661 1: storage.modifier.tsx
14831662 2: storage.modifier.tsx
1484− 3: storage.modifier.async.tsx
1485− 4: storage.type.tsx
1663+ 3: storage.modifier.tsx
1664+ 4: storage.modifier.async.tsx
1665+ 5: storage.type.tsx
14861666 push:
14871667 - meta_scope: meta.method.declaration.tsx
14881668 - match: '(?=\}|;|,|$)|(?<=\})'
14891669 pop: true
14901670 - include: method-declaration-name
14911671 - include: function-body
1492− - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:(?:\s*\b(new)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|(?:(\*)\s*)?)(?=\s*[\(\<])'
1672+ - match: '(?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(override)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:(?:\s*\b(new)\b(?!:)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|(?:(\*)\s*)?)(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])'
14931673 captures:
14941674 1: storage.modifier.tsx
14951675 2: storage.modifier.tsx
1496− 3: storage.modifier.async.tsx
1497− 4: keyword.operator.new.tsx
1498− 5: keyword.generator.asterisk.tsx
1676+ 3: storage.modifier.tsx
1677+ 4: storage.modifier.async.tsx
1678+ 5: keyword.operator.new.tsx
1679+ 6: keyword.generator.asterisk.tsx
14991680 push:
15001681 - meta_scope: meta.method.declaration.tsx
15011682 - match: '(?=\}|;|,|$)|(?<=\})'
@@ -1503,22 +1684,23 @@ contexts:
15031684 - include: method-declaration-name
15041685 - include: function-body
15051686 - match: |-
1506− (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1507− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1508− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1509− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1510− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1511− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1512− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1513− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1514− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1515− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*[\(\<])
1687+ (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(override)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1688+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1689+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1690+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1691+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1692+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1693+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1694+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1695+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1696+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
15161697 captures:
15171698 1: storage.modifier.tsx
15181699 2: storage.modifier.tsx
1519− 3: storage.modifier.async.tsx
1520− 4: storage.type.property.tsx
1521− 5: keyword.generator.asterisk.tsx
1700+ 3: storage.modifier.tsx
1701+ 4: storage.modifier.async.tsx
1702+ 5: storage.type.property.tsx
1703+ 6: keyword.generator.asterisk.tsx
15221704 push:
15231705 - meta_scope: meta.method.declaration.tsx
15241706 - match: '(?=\}|;|,|$)|(?<=\})'
@@ -1527,16 +1709,16 @@ contexts:
15271709 - include: function-body
15281710 method-declaration-name:
15291711 - match: |-
1530− (?x)(?=((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1531− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1532− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1533− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1534− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1535− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1536− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1537− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1538− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1539− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??)\s*[\(\<])
1712+ (?x)(?=((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1713+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1714+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1715+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1716+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1717+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1718+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1719+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1720+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1721+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??)\s*[\(\<])
15401722 push:
15411723 - match: (?=\(|\<)
15421724 pop: true
@@ -1548,13 +1730,14 @@ contexts:
15481730 - match: \?
15491731 scope: keyword.operator.optional.tsx
15501732 namespace-declaration:
1551− - match: '(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(namespace|module)\s+(?=[_$[:alpha:]"''`]))'
1733+ - match: '(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(namespace|module)\s+(?=[_$[:alpha:]"''`]))'
15521734 captures:
15531735 1: keyword.control.export.tsx
1554− 2: storage.type.namespace.tsx
1736+ 2: storage.modifier.tsx
1737+ 3: storage.type.namespace.tsx
15551738 push:
15561739 - meta_scope: meta.namespace.declaration.tsx
1557− - match: '(?<=\})|(?=;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)'
1740+ - match: '(?<=\})|(?=;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
15581741 pop: true
15591742 - include: comment
15601743 - include: string
@@ -1568,41 +1751,53 @@ contexts:
15681751 1: keyword.operator.new.tsx
15691752 push:
15701753 - meta_scope: new.expr.tsx
1571− - match: '(?<=\))|(?=[;),}\]:]|\|\||\&\&|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))new(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
1754+ - match: '(?<=\))|(?=[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))new(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))function((\s+[_$[:alpha:]][_$[:alnum:]]*)|(\s*[\(]))))'
15721755 pop: true
1573− - include: paren-expression
1574− - include: class-declaration
1575− - include: type
1756+ - include: expression
15761757 null-literal:
15771758 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))null(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
15781759 scope: constant.language.null.tsx
15791760 numeric-literal:
1580− - match: '\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$)'
1761+ - match: '\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$)'
15811762 scope: constant.numeric.hex.tsx
1582− - match: '\b(?<!\$)0(b|B)[01][01_]*\b(?!\$)'
1763+ captures:
1764+ 1: storage.type.numeric.bigint.tsx
1765+ - match: '\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$)'
15831766 scope: constant.numeric.binary.tsx
1584− - match: '\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$)'
1767+ captures:
1768+ 1: storage.type.numeric.bigint.tsx
1769+ - match: '\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$)'
15851770 scope: constant.numeric.octal.tsx
1771+ captures:
1772+ 1: storage.type.numeric.bigint.tsx
15861773 - match: |-
15871774 (?x)
15881775 (?<!\$)(?:
1589− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1590− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1591− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1592− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1593− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1594− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1595− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1596− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1776+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1777+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1778+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1779+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1780+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1781+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1782+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1783+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
15971784 )(?!\$)
15981785 captures:
15991786 0: constant.numeric.decimal.tsx
16001787 1: meta.delimiter.decimal.period.tsx
1601− 2: meta.delimiter.decimal.period.tsx
1788+ 2: storage.type.numeric.bigint.tsx
16021789 3: meta.delimiter.decimal.period.tsx
1603− 4: meta.delimiter.decimal.period.tsx
1790+ 4: storage.type.numeric.bigint.tsx
16041791 5: meta.delimiter.decimal.period.tsx
1605− 6: meta.delimiter.decimal.period.tsx
1792+ 6: storage.type.numeric.bigint.tsx
1793+ 7: storage.type.numeric.bigint.tsx
1794+ 8: meta.delimiter.decimal.period.tsx
1795+ 9: storage.type.numeric.bigint.tsx
1796+ 10: meta.delimiter.decimal.period.tsx
1797+ 11: storage.type.numeric.bigint.tsx
1798+ 12: meta.delimiter.decimal.period.tsx
1799+ 13: storage.type.numeric.bigint.tsx
1800+ 14: storage.type.numeric.bigint.tsx
16061801 numericConstant-literal:
16071802 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))NaN(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
16081803 scope: constant.language.nan.tsx
@@ -1611,16 +1806,16 @@ contexts:
16111806 object-binding-element:
16121807 - include: comment
16131808 - match: |-
1614− (?x)(?=((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1615− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1616− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1617− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1618− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1619− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1620− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1621− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1622− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1623− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
1809+ (?x)(?=((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1810+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1811+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1812+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1813+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1814+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1815+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1816+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1817+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1818+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
16241819 push:
16251820 - match: '(?=,|\})'
16261821 pop: true
@@ -1633,16 +1828,16 @@ contexts:
16331828 object-binding-element-const:
16341829 - include: comment
16351830 - match: |-
1636− (?x)(?=((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1637− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1638− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1639− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1640− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1641− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1642− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1643− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1644− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1645− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
1831+ (?x)(?=((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1832+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1833+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1834+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1835+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1836+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1837+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1838+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1839+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1840+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
16461841 push:
16471842 - match: '(?=,|\})'
16481843 pop: true
@@ -1654,16 +1849,16 @@ contexts:
16541849 - include: punctuation-comma
16551850 object-binding-element-propertyName:
16561851 - match: |-
1657− (?x)(?=((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1658− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1659− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1660− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1661− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1662− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1663− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1664− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1665− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1666− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
1852+ (?x)(?=((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1853+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1854+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1855+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1856+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1857+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1858+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1859+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1860+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1861+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
16671862 push:
16681863 - match: (:)
16691864 captures:
@@ -1701,9 +1896,9 @@ contexts:
17011896 scope: support.class.tsx
17021897 - match: |-
17031898 (?x)(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(?:
1704− ([[:upper:]][_$[:digit:][:upper:]]*) |
1705− ([_$[:alpha:]][_$[:alnum:]]*)
1706− )(?=\s*\??\.\s*[_$[:alpha:]][_$[:alnum:]]*)
1899+ (\#?[[:upper:]][_$[:digit:][:upper:]]*) |
1900+ (\#?[_$[:alpha:]][_$[:alnum:]]*)
1901+ )(?=\s*\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*)
17071902 captures:
17081903 1: punctuation.accessor.tsx
17091904 2: punctuation.accessor.optional.tsx
@@ -1713,7 +1908,7 @@ contexts:
17131908 (?x)(?:
17141909 ([[:upper:]][_$[:digit:][:upper:]]*) |
17151910 ([_$[:alpha:]][_$[:alnum:]]*)
1716− )(?=\s*\??\.\s*[_$[:alpha:]][_$[:alnum:]]*)
1911+ )(?=\s*\??\.\s*\#?[_$[:alpha:]][_$[:alnum:]]*)
17171912 captures:
17181913 1: variable.other.constant.object.tsx
17191914 2: variable.other.object.tsx
@@ -1730,16 +1925,16 @@ contexts:
17301925 - include: object-member
17311926 object-literal-method-declaration:
17321927 - match: |-
1733− (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1734− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1735− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1736− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1737− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1738− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1739− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1740− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1741− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1742− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*[\(\<])
1928+ (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1929+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1930+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1931+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1932+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1933+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1934+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1935+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1936+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1937+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
17431938 captures:
17441939 1: storage.modifier.async.tsx
17451940 2: storage.type.property.tsx
@@ -1751,16 +1946,16 @@ contexts:
17511946 - include: method-declaration-name
17521947 - include: function-body
17531948 - match: |-
1754− (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
1755− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
1756− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
1757− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
1758− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
1759− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
1760− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
1761− (?:\B(\.)[0-9][0-9_]*\b)| # .1
1762− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
1763− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*[\(\<])
1949+ (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(\*)\s*)?(?=\s*(((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1950+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1951+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1952+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1953+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1954+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1955+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1956+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1957+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1958+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(\??))\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?[\(])
17641959 captures:
17651960 1: storage.modifier.async.tsx
17661961 2: storage.type.property.tsx
@@ -1777,37 +1972,56 @@ contexts:
17771972 - meta_scope: meta.object.member.tsx meta.object-literal.key.tsx
17781973 - match: '(?=:)|((?<=[\]])(?=\s*[\(\<]))'
17791974 pop: true
1975+ - include: comment
17801976 - include: array-literal
1781− - match: '(?=[\''\"])'
1977+ - match: '(?=[\''\"\`])'
17821978 push:
17831979 - meta_scope: meta.object.member.tsx meta.object-literal.key.tsx
1784− - match: '(?=:)|((?<=[\''\"])(?=\s*[\(\<]))'
1980+ - match: '(?=:)|((?<=[\''\"\`])(?=((\s*[\(\<,}])|(\s+(as)\s+))))'
17851981 pop: true
1982+ - include: comment
17861983 - include: string
1787− - match: '(?<=[\]\''\"])(?=\s*[\(\<])'
1984+ - match: |-
1985+ (?x)(?=(\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
1986+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
1987+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
1988+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
1989+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
1990+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
1991+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
1992+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
1993+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
1994+ )(?!\$)))
1995+ push:
1996+ - meta_scope: meta.object.member.tsx meta.object-literal.key.tsx
1997+ - match: '(?=:)|(?=\s*([\(\<,}])|(\s+as\s+))'
1998+ pop: true
1999+ - include: comment
2000+ - include: numeric-literal
2001+ - match: '(?<=[\]\''\"\`])(?=\s*[\(\<])'
17882002 push:
17892003 - meta_scope: meta.method.declaration.tsx
17902004 - match: '(?=\}|;|,)|(?<=\})'
17912005 pop: true
17922006 - include: function-body
1793− - match: '(?![_$[:alpha:]])([[:digit:]]+)\s*(?=:)'
2007+ - match: '(?![_$[:alpha:]])([[:digit:]]+)\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*:)'
17942008 scope: meta.object.member.tsx
17952009 captures:
17962010 0: meta.object-literal.key.tsx
17972011 1: constant.numeric.decimal.tsx
17982012 - match: |-
1799− (?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\s*(?=:\s*(
2013+ (?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*:(\s*\/\*([^\*]|(\*[^\/]))*\*\/)*\s*(
18002014 ((async\s+)?(
18012015 (function\s*[(<*]) |
18022016 (function\s+) |
18032017 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
18042018 )) |
18052019 ((async\s*)?(
1806− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
2020+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
18072021 # sure shot arrow functions even if => is on new line
18082022 (
1809− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
1810− [(]\s*
2023+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
2024+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
18112025 (
18122026 ([)]\s*:) | # ():
18132027 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -1818,9 +2032,9 @@ contexts:
18182032 ) |
18192033 # arrow function possible to detect only with => on same line
18202034 (
1821− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
1822− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1823− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
2035+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
2036+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
2037+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
18242038 \s*=> # arrow operator
18252039 )
18262040 ))
@@ -1829,7 +2043,7 @@ contexts:
18292043 captures:
18302044 0: meta.object-literal.key.tsx
18312045 1: entity.name.function.tsx
1832− - match: '(?:[_$[:alpha:]][_$[:alnum:]]*)\s*(?=:)'
2046+ - match: '(?:[_$[:alpha:]][_$[:alnum:]]*)\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*:)'
18332047 scope: meta.object.member.tsx
18342048 captures:
18352049 0: meta.object-literal.key.tsx
@@ -1841,14 +2055,27 @@ contexts:
18412055 - match: '(?=,|\})'
18422056 pop: true
18432057 - include: expression
1844− - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?=,|\}|$)'
2058+ - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?=,|\}|$|\/\/|\/\*)'
18452059 scope: meta.object.member.tsx
18462060 captures:
18472061 1: variable.other.readwrite.tsx
2062+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+(const)(?=\s*([,}]|$))'
2063+ scope: meta.object.member.tsx
2064+ captures:
2065+ 1: keyword.control.as.tsx
2066+ 2: storage.modifier.tsx
2067+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+'
2068+ captures:
2069+ 1: keyword.control.as.tsx
2070+ push:
2071+ - meta_scope: meta.object.member.tsx
2072+ - match: '(?=[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$|^|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(as)\s+))'
2073+ pop: true
2074+ - include: type
18482075 - match: '(?=[_$[:alpha:]][_$[:alnum:]]*\s*=)'
18492076 push:
18502077 - meta_scope: meta.object.member.tsx
1851− - match: '(?=,|\}|$)'
2078+ - match: '(?=,|\}|$|\/\/|\/\*)'
18522079 pop: true
18532080 - include: expression
18542081 - match: ":"
@@ -1858,7 +2085,7 @@ contexts:
18582085 - meta_scope: meta.object.member.tsx
18592086 - match: '(?=,|\})'
18602087 pop: true
1861− - match: '(?<=:)\s*(async)?(?=\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)\(\s*([\{\[]\s*)?$)'
2088+ - match: '(?<=:)\s*(async)?(?=\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)\(\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
18622089 captures:
18632090 1: storage.modifier.async.tsx
18642091 push:
@@ -1874,7 +2101,7 @@ contexts:
18742101 0: meta.brace.round.tsx
18752102 pop: true
18762103 - include: expression-inside-possibly-arrow-parens
1877− - match: '(?<=:)\s*(async)?\s*(\()(?=\s*([\{\[]\s*)?$)'
2104+ - match: '(?<=:)\s*(async)?\s*(\()(?=\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
18782105 captures:
18792106 1: storage.modifier.async.tsx
18802107 2: meta.brace.round.tsx
@@ -1884,6 +2111,23 @@ contexts:
18842111 0: meta.brace.round.tsx
18852112 pop: true
18862113 - include: expression-inside-possibly-arrow-parens
2114+ - match: (?<=:)\s*(async)?\s*(?=\<\s*$)
2115+ captures:
2116+ 1: storage.modifier.async.tsx
2117+ push:
2118+ - match: (?<=\>)
2119+ pop: true
2120+ - include: type-parameters
2121+ - match: '(?<=\>)\s*(\()(?=\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
2122+ captures:
2123+ 1: meta.brace.round.tsx
2124+ push:
2125+ - match: \)
2126+ captures:
2127+ 0: meta.brace.round.tsx
2128+ pop: true
2129+ - include: expression-inside-possibly-arrow-parens
2130+ - include: possibly-arrow-return-type
18872131 - include: expression
18882132 - include: punctuation-comma
18892133 parameter-array-binding-pattern:
@@ -1901,16 +2145,18 @@ contexts:
19012145 parameter-binding-element:
19022146 - include: comment
19032147 - include: string
2148+ - include: numeric-literal
2149+ - include: regex
19042150 - include: parameter-object-binding-pattern
19052151 - include: parameter-array-binding-pattern
19062152 - include: destructuring-parameter-rest
19072153 - include: variable-initializer
19082154 parameter-name:
1909− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|protected|private|readonly)\s+(?=(public|protected|private|readonly)\s+)'
2155+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|protected|private|readonly)\s+(?=(override|public|protected|private|readonly)\s+)'
19102156 captures:
19112157 1: storage.modifier.tsx
19122158 - match: |-
1913− (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
2159+ (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)(?=\s*
19142160 # function assignment |
19152161 (=\s*(
19162162 ((async\s+)?(
@@ -1919,11 +2165,11 @@ contexts:
19192165 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
19202166 )) |
19212167 ((async\s*)?(
1922− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
2168+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
19232169 # sure shot arrow functions even if => is on new line
19242170 (
1925− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
1926− [(]\s*
2171+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
2172+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
19272173 (
19282174 ([)]\s*:) | # ():
19292175 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -1934,9 +2180,9 @@ contexts:
19342180 ) |
19352181 # arrow function possible to detect only with => on same line
19362182 (
1937− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
1938− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1939− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
2183+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
2184+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
2185+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
19402186 \s*=> # arrow operator
19412187 )
19422188 ))
@@ -1953,19 +2199,20 @@ contexts:
19532199 ))
19542200 ))
19552201 )) |
1956− (:\s*((<\s*$)|([\(]\s*([\{\[]\s*)?$))) |
1957− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
2202+ (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
2203+ (:\s*((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
2204+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
19582205 ((async\s+)?(
19592206 (function\s*[(<*]) |
19602207 (function\s+) |
19612208 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
19622209 )) |
19632210 ((async\s*)?(
1964− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
2211+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
19652212 # sure shot arrow functions even if => is on new line
19662213 (
1967− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
1968− [(]\s*
2214+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
2215+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
19692216 (
19702217 ([)]\s*:) | # ():
19712218 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -1976,9 +2223,9 @@ contexts:
19762223 ) |
19772224 # arrow function possible to detect only with => on same line
19782225 (
1979− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
1980− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
1981− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
2226+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
2227+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
2228+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
19822229 \s*=> # arrow operator
19832230 )
19842231 ))
@@ -1989,7 +2236,7 @@ contexts:
19892236 3: entity.name.function.tsx variable.language.this.tsx
19902237 4: entity.name.function.tsx
19912238 5: keyword.operator.optional.tsx
1992− - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)'
2239+ - match: '(?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(override|public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*(\??)'
19932240 captures:
19942241 1: storage.modifier.tsx
19952242 2: keyword.operator.rest.tsx
@@ -1999,16 +2246,16 @@ contexts:
19992246 parameter-object-binding-element:
20002247 - include: comment
20012248 - match: |-
2002− (?x)(?=((\b(?<!\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\b(?!\$))|(\b(?<!\$)0(b|B)[01][01_]*\b(?!\$))|(\b(?<!\$)0(o|O)?[0-7][0-7_]*\b(?!\$))|((?<!\$)(?:
2003− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1.1E+3
2004− (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*\b)| # 1.E+3
2005− (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # .1E+3
2006− (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\b)| # 1E+3
2007− (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*\b)| # 1.1
2008− (?:\b[0-9][0-9_]*(\.)\B)| # 1.
2009− (?:\B(\.)[0-9][0-9_]*\b)| # .1
2010− (?:\b[0-9][0-9_]*\b(?!\.)) # 1
2011− )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\\'|\\)*\')|(\"([^\"\\]|\\\"|\\)*\")|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
2249+ (?x)(?=((\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:
2250+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.1E+3
2251+ (?:\b[0-9][0-9_]*(\.)[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1.E+3
2252+ (?:\B(\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # .1E+3
2253+ (?:\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\b)| # 1E+3
2254+ (?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b)| # 1.1
2255+ (?:\b[0-9][0-9_]*(\.)(n)?\B)| # 1.
2256+ (?:\B(\.)[0-9][0-9_]*(n)?\b)| # .1
2257+ (?:\b[0-9][0-9_]*(n)?\b(?!\.)) # 1
2258+ )(?!\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`)|(\[([^\[\]]|\[[^\[\]]*\])+\]))\s*(:))
20122259 push:
20132260 - match: '(?=,|\})'
20142261 pop: true
@@ -2029,6 +2276,15 @@ contexts:
20292276 0: punctuation.definition.binding-pattern.object.tsx
20302277 pop: true
20312278 - include: parameter-object-binding-element
2279+ parameter-type-annotation:
2280+ - match: (:)
2281+ captures:
2282+ 1: keyword.operator.type.annotation.tsx
2283+ push:
2284+ - meta_scope: meta.type.annotation.tsx
2285+ - match: "(?=[,)])|(?==[^>])"
2286+ pop: true
2287+ - include: type
20322288 paren-expression:
20332289 - match: \(
20342290 captures:
@@ -2040,14 +2296,14 @@ contexts:
20402296 pop: true
20412297 - include: expression
20422298 paren-expression-possibly-arrow:
2043− - match: '(?<=[(=,])\s*(async)?(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*))?\(\s*[\{\[]\s*$)'
2299+ - match: '(?<=[(=,])\s*(async)?(?=\s*((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?\(\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))'
20442300 captures:
20452301 1: storage.modifier.async.tsx
20462302 push:
20472303 - match: (?<=\))
20482304 pop: true
20492305 - include: paren-expression-possibly-arrow-with-typeparameters
2050− - match: '(?<=[(=,]|=>)\s*(async)?(?=\s*((((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*))?\()|(<))\s*$)'
2306+ - match: '(?<=[(=,]|=>|^return|[^\._$[:alnum:]]return)\s*(async)?(?=\s*((((<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*))?\()|(<))\s*$)'
20512307 captures:
20522308 1: storage.modifier.async.tsx
20532309 push:
@@ -2067,7 +2323,7 @@ contexts:
20672323 pop: true
20682324 - include: expression-inside-possibly-arrow-parens
20692325 possibly-arrow-return-type:
2070− - match: '(?<=\))\s*(:)(?=\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+\s*=>)'
2326+ - match: '(?<=\)|^)\s*(:)(?=\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*=>)'
20712327 captures:
20722328 1: meta.arrow.tsx meta.return.type.arrow.tsx keyword.operator.type.annotation.tsx
20732329 push:
@@ -2114,23 +2370,23 @@ contexts:
21142370 pop: true
21152371 - include: string-character-escape
21162372 regex:
2117− - match: '(?<!\+\+|--|})(?<=[=(:,\[?+!]|^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case|=>|&&|\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/[gimsuy]*(?!\s*[a-zA-Z0-9_$]))'
2373+ - match: '(?<!\+\+|--|})(?<=[=(:,\[?+!]|^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case|=>|&&|\|\||\*\/)\s*(\/)(?![\/*])(?=(?:[^\/\\\[\()]|\\.|\[([^\]\\]|\\.)+\]|\(([^\)\\]|\\.)+\))+\/([dgimsuy]+|(?![\/\*])|(?=\/\*))(?!\s*[a-zA-Z0-9_$]))'
21182374 captures:
21192375 1: punctuation.definition.string.begin.tsx
21202376 push:
21212377 - meta_scope: string.regexp.tsx
2122− - match: "(/)([gimsuy]*)"
2378+ - match: "(/)([dgimsuy]*)"
21232379 captures:
21242380 1: punctuation.definition.string.end.tsx
21252381 2: keyword.other.tsx
21262382 pop: true
21272383 - include: regexp
2128− - match: '(?<![_$[:alnum:])\]]|\+\+|--|})\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)+\])+\/[gimsuy]*(?!\s*[a-zA-Z0-9_$]))'
2384+ - match: '((?<![_$[:alnum:])\]]|\+\+|--|}|\*\/)|((?<=^return|[^\._$[:alnum:]]return|^case|[^\._$[:alnum:]]case))\s*)\/(?![\/*])(?=(?:[^\/\\\[]|\\.|\[([^\]\\]|\\.)*\])+\/([dgimsuy]+|(?![\/\*])|(?=\/\*))(?!\s*[a-zA-Z0-9_$]))'
21292385 captures:
21302386 0: punctuation.definition.string.begin.tsx
21312387 push:
21322388 - meta_scope: string.regexp.tsx
2133− - match: "(/)([gimsuy]*)"
2389+ - match: "(/)([dgimsuy]*)"
21342390 captures:
21352391 1: punctuation.definition.string.end.tsx
21362392 2: keyword.other.tsx
@@ -2230,10 +2486,24 @@ contexts:
22302486 - include: type-object
22312487 - include: type-predicate-operator
22322488 - include: type
2489+ shebang:
2490+ - match: \A(#!).*(?=$)
2491+ scope: comment.line.shebang.tsx
2492+ captures:
2493+ 1: punctuation.definition.comment.tsx
2494+ single-line-comment-consuming-line-ending:
2495+ - match: '(^[ \t]+)?((//)(?:\s*((@)internal)(?=\s|$))?)'
2496+ captures:
2497+ 1: punctuation.whitespace.comment.leading.tsx
2498+ 2: comment.line.double-slash.tsx
2499+ 3: punctuation.definition.comment.tsx
2500+ 4: storage.type.internaldeclaration.tsx
2501+ 5: punctuation.decorator.internaldeclaration.tsx
2502+ push:
2503+ - meta_content_scope: comment.line.double-slash.tsx
2504+ - match: (?=^)
2505+ pop: true
22332506 statements:
2234− - include: string
2235− - include: template
2236− - include: comment
22372507 - include: declaration
22382508 - include: control-statement
22392509 - include: after-operator-block-as-object-literal
@@ -2241,21 +2511,31 @@ contexts:
22412511 - include: label
22422512 - include: expression
22432513 - include: punctuation-semicolon
2514+ - include: string
2515+ - include: comment
22442516 string:
22452517 - include: qstring-single
22462518 - include: qstring-double
2519+ - include: template
22472520 string-character-escape:
2248− - match: '\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)'
2521+ - match: '\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\{[0-9A-Fa-f]+\}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)'
22492522 scope: constant.character.escape.tsx
22502523 super-literal:
22512524 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))super\b(?!\$)'
22522525 scope: variable.language.super.tsx
2526+ support-function-call-identifiers:
2527+ - include: literal
2528+ - include: support-objects
2529+ - include: object-identifiers
2530+ - include: punctuation-accessor
2531+ - match: '(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))import(?=\s*[\(]\s*[\"\''\`]))'
2532+ scope: keyword.operator.expression.import.tsx
22532533 support-objects:
22542534 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(arguments)\b(?!\$)'
22552535 scope: variable.language.arguments.tsx
22562536 - match: |-
2257− (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Float32Array|Float64Array|Function|Generator
2258− |GeneratorFunction|Int8Array|Int16Array|Int32Array|Intl|Map|Number|Object|Proxy
2537+ (?x)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(Array|ArrayBuffer|Atomics|BigInt|BigInt64Array|BigUint64Array|Boolean|DataView|Date|Float32Array
2538+ |Float64Array|Function|Generator|GeneratorFunction|Int8Array|Int16Array|Int32Array|Intl|Map|Number|Object|Proxy
22592539 |Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|TypedArray
22602540 |Uint8Array|Uint16Array|Uint32Array|Uint8ClampedArray|WeakMap|WeakSet)\b(?!\$)
22612541 scope: support.class.builtin.tsx
@@ -2309,9 +2589,9 @@ contexts:
23092589 4: support.variable.property.target.tsx
23102590 - match: |-
23112591 (?x) (?:(\.)|(\?\.(?!\s*[[:digit:]]))) \s* (?:
2312− (constructor|length|prototype|__proto__)
2592+ (?:(constructor|length|prototype|__proto__)\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?\())
23132593 |
2314− (EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY))\b(?!\$)
2594+ (?:(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\b(?!\$)))
23152595 captures:
23162596 1: punctuation.accessor.tsx
23172597 2: punctuation.accessor.optional.tsx
@@ -2415,7 +2695,7 @@ contexts:
24152695 |siblingBelow|size|source|specified|standby|start|status|statusbar|statusText|style|styleSheets|suffixes|summary
24162696 |systemId|systemLanguage|tagName|tags|target|tBodies|text|textAlign|textDecoration|textIndent|textTransform|tFoot|tHead
24172697 |title|toolbar|top|type|undefined|uniqueID|updateInterval|URL|URLUnencoded|useMap|userAgent|userLanguage|userProfile
2418− |vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex))\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?\()
2698+ |vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex))\b(?!\$|\s*(<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?\()
24192699 captures:
24202700 1: punctuation.accessor.tsx
24212701 2: punctuation.accessor.optional.tsx
@@ -2539,6 +2819,7 @@ contexts:
25392819 captures:
25402820 0: punctuation.definition.block.tsx
25412821 pop: true
2822+ - include: comment
25422823 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(switch)\s*(\()'
25432824 captures:
25442825 1: keyword.control.switch.tsx
@@ -2581,7 +2862,34 @@ contexts:
25812862 0: case-clause.expr.tsx punctuation.definition.section.case-statement.tsx
25822863 - include: statements
25832864 template:
2584− - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>|\<\s*(((keyof|infer)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\''[^\'']*\'')|(\"[^\"]*\")|(\`[^\`]*\`))(?=\s*([\<\>\,\.\[=]|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(?<==)\>)*(?!=)\>)*(?!=)>\s*)`)'
2865+ - include: template-call
2866+ - match: "([_$[:alpha:]][_$[:alnum:]]*)?(`)"
2867+ captures:
2868+ 1: entity.name.function.tagged-template.tsx
2869+ 2: punctuation.definition.string.template.begin.tsx
2870+ push:
2871+ - meta_scope: string.template.tsx
2872+ - match: "`"
2873+ captures:
2874+ 0: punctuation.definition.string.template.end.tsx
2875+ pop: true
2876+ - include: template-substitution-element
2877+ - include: string-character-escape
2878+ template-call:
2879+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?`)'
2880+ push:
2881+ - meta_scope: string.template.tsx
2882+ - match: (?=`)
2883+ pop: true
2884+ - match: '(?=(([_$[:alpha:]][_$[:alnum:]]*\s*\??\.\s*)*|(\??\.\s*)?)([_$[:alpha:]][_$[:alnum:]]*))'
2885+ push:
2886+ - match: '(?=(<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)?`)'
2887+ pop: true
2888+ - include: support-function-call-identifiers
2889+ - match: "([_$[:alpha:]][_$[:alnum:]]*)"
2890+ scope: entity.name.function.tagged-template.tsx
2891+ - include: type-arguments
2892+ - match: '([_$[:alpha:]][_$[:alnum:]]*)?\s*(?=(<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))(([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>|\<\s*(((keyof|infer|typeof|readonly)\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\''([^\''\\]|\\.)*\'')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))(?=\s*([\<\>\,\.\[]|=>|&(?!&)|\|(?!\|)))))([^<>\(]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(?<==)\>)*(?<!=)\>))*(?<!=)\>)*(?<!=)>\s*)`)'
25852893 captures:
25862894 1: entity.name.function.tagged-template.tsx
25872895 push:
@@ -2589,6 +2897,20 @@ contexts:
25892897 - match: (?=`)
25902898 pop: true
25912899 - include: type-arguments
2900+ template-substitution-element:
2901+ - match: '\$\{'
2902+ captures:
2903+ 0: punctuation.definition.template-expression.begin.tsx
2904+ push:
2905+ - meta_scope: meta.template.expression.tsx
2906+ - meta_content_scope: meta.embedded.line.tsx
2907+ - match: '\}'
2908+ captures:
2909+ 0: punctuation.definition.template-expression.end.tsx
2910+ pop: true
2911+ - include: expression
2912+ template-type:
2913+ - include: template-call
25922914 - match: "([_$[:alpha:]][_$[:alnum:]]*)?(`)"
25932915 captures:
25942916 1: entity.name.function.tagged-template.tsx
@@ -2599,9 +2921,9 @@ contexts:
25992921 captures:
26002922 0: punctuation.definition.string.template.end.tsx
26012923 pop: true
2602− - include: template-substitution-element
2924+ - include: template-type-substitution-element
26032925 - include: string-character-escape
2604− template-substitution-element:
2926+ template-type-substitution-element:
26052927 - match: '\$\{'
26062928 captures:
26072929 0: punctuation.definition.template-expression.begin.tsx
@@ -2612,9 +2934,9 @@ contexts:
26122934 captures:
26132935 0: punctuation.definition.template-expression.end.tsx
26142936 pop: true
2615− - include: expression
2937+ - include: type
26162938 ternary-expression:
2617− - match: '(?!\?\.\s*[^[:digit:]])(\?)'
2939+ - match: '(?!\?\.\s*[^[:digit:]])(\?)(?!\?)'
26182940 captures:
26192941 1: keyword.operator.ternary.tsx
26202942 push:
@@ -2628,7 +2950,7 @@ contexts:
26282950 scope: variable.language.this.tsx
26292951 type:
26302952 - include: comment
2631− - include: string
2953+ - include: type-string
26322954 - include: numeric-literal
26332955 - include: type-primitive
26342956 - include: type-builtin-literals
@@ -2640,24 +2962,36 @@ contexts:
26402962 - include: type-fn-type-parameters
26412963 - include: type-paren-or-function-parameters
26422964 - include: type-function-return-type
2965+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(readonly)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*'
2966+ captures:
2967+ 1: storage.modifier.tsx
26432968 - include: type-name
26442969 type-alias-declaration:
2645− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(type)\b\s+([_$[:alpha:]][_$[:alnum:]]*)\s*'
2970+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(type)\b\s+([_$[:alpha:]][_$[:alnum:]]*)\s*'
26462971 captures:
26472972 1: keyword.control.export.tsx
2648− 2: storage.type.type.tsx
2649− 3: entity.name.type.alias.tsx
2973+ 2: storage.modifier.tsx
2974+ 3: storage.type.type.tsx
2975+ 4: entity.name.type.alias.tsx
26502976 push:
26512977 - meta_scope: meta.type.declaration.tsx
2652− - match: '(?=\}|;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)'
2978+ - match: '(?=\}|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
26532979 pop: true
26542980 - include: comment
26552981 - include: type-parameters
2982+ - match: '(=)\s*(intrinsic)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
2983+ captures:
2984+ 1: keyword.operator.assignment.tsx
2985+ 2: keyword.control.intrinsic.tsx
2986+ push:
2987+ - match: '(?=\}|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
2988+ pop: true
2989+ - include: type
26562990 - match: (=)\s*
26572991 captures:
26582992 1: keyword.operator.assignment.tsx
26592993 push:
2660− - match: '(?=\}|;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)'
2994+ - match: '(?=\}|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
26612995 pop: true
26622996 - include: type
26632997 type-annotation:
@@ -2687,8 +3021,13 @@ contexts:
26873021 captures:
26883022 0: punctuation.definition.typeparameters.end.tsx
26893023 pop: true
2690− - include: type
2691− - include: punctuation-comma
3024+ - include: type-arguments-body
3025+ type-arguments-body:
3026+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(_)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3027+ captures:
3028+ 0: keyword.operator.type.tsx
3029+ - include: type
3030+ - include: punctuation-comma
26923031 type-builtin-literals:
26933032 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(this|true|false|undefined|null|object)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
26943033 scope: support.type.builtin.tsx
@@ -2710,13 +3049,19 @@ contexts:
27103049 - include: type
27113050 - include: type
27123051 type-fn-type-parameters:
2713− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(new)\b(?=\s*\<)'
2714− scope: meta.type.constructor.tsx
3052+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(new)\b(?=\s*\<)'
27153053 captures:
2716− 1: keyword.control.new.tsx
2717− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(new)\b\s*(?=\()'
3054+ 1: meta.type.constructor.tsx storage.modifier.tsx
3055+ 2: meta.type.constructor.tsx keyword.control.new.tsx
3056+ push:
3057+ - match: (?<=>)
3058+ pop: true
3059+ - include: comment
3060+ - include: type-parameters
3061+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(new)\b\s*(?=\()'
27183062 captures:
2719− 1: keyword.control.new.tsx
3063+ 1: storage.modifier.tsx
3064+ 2: keyword.control.new.tsx
27203065 push:
27213066 - meta_scope: meta.type.constructor.tsx
27223067 - match: (?<=\))
@@ -2767,6 +3112,30 @@ contexts:
27673112 - include: type-predicate-operator
27683113 - include: type
27693114 type-name:
3115+ - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?:(\.)|(\?\.(?!\s*[[:digit:]])))\s*(<)'
3116+ captures:
3117+ 1: entity.name.type.module.tsx
3118+ 2: punctuation.accessor.tsx
3119+ 3: punctuation.accessor.optional.tsx
3120+ 4: meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx
3121+ push:
3122+ - meta_content_scope: meta.type.parameters.tsx
3123+ - match: (>)
3124+ captures:
3125+ 1: meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx
3126+ pop: true
3127+ - include: type-arguments-body
3128+ - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(<)'
3129+ captures:
3130+ 1: entity.name.type.tsx
3131+ 2: meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx
3132+ push:
3133+ - meta_content_scope: meta.type.parameters.tsx
3134+ - match: (>)
3135+ captures:
3136+ 1: meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx
3137+ pop: true
3138+ - include: type-arguments-body
27703139 - match: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?:(\.)|(\?\.(?!\s*[[:digit:]])))'
27713140 captures:
27723141 1: entity.name.type.module.tsx
@@ -2802,18 +3171,16 @@ contexts:
28023171 - include: type
28033172 type-operators:
28043173 - include: typeof-operator
2805− - match: '(?:([&|])|(=(?!>)))(?=\s*\{)'
3174+ - match: '([&|])(?=\s*\{)'
28063175 captures:
2807− 1: keyword.operator.type.tsx
2808− 2: keyword.operator.assignment.tsx
3176+ 0: keyword.operator.type.tsx
28093177 push:
28103178 - match: '(?<=\})'
28113179 pop: true
28123180 - include: type-object
2813− - match: "([&|])|(=(?!>))"
3181+ - match: "[&|]"
28143182 captures:
2815− 1: keyword.operator.type.tsx
2816− 2: keyword.operator.assignment.tsx
3183+ 0: keyword.operator.type.tsx
28173184 push:
28183185 - match: (?=\S)
28193186 pop: true
@@ -2840,6 +3207,8 @@ contexts:
28403207 scope: storage.modifier.tsx
28413208 - include: type
28423209 - include: punctuation-comma
3210+ - match: (=)(?!>)
3211+ scope: keyword.operator.assignment.tsx
28433212 type-paren-or-function-parameters:
28443213 - match: \(
28453214 captures:
@@ -2850,7 +3219,6 @@ contexts:
28503219 captures:
28513220 0: meta.brace.round.tsx
28523221 pop: true
2853− - include: destructuring-parameter
28543222 - match: |-
28553223 (?x)(?:(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(public|private|protected|readonly)\s+)?(?:(\.\.\.)\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))\s*(\??)(?=\s*(:\s*(
28563224 (<) |
@@ -2863,7 +3231,8 @@ contexts:
28633231 ))
28643232 ))
28653233 )) |
2866− (:\s*((<\s*$)|([\(]\s*([\{\[]\s*)?$))))
3234+ (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
3235+ (:\s*((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))))
28673236 captures:
28683237 1: storage.modifier.tsx
28693238 2: keyword.operator.rest.tsx
@@ -2882,11 +3251,28 @@ contexts:
28823251 scope: punctuation.separator.parameter.tsx
28833252 - include: type
28843253 type-predicate-operator:
3254+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(asserts)\s+)?(?!asserts)(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))\s(is)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3255+ captures:
3256+ 1: keyword.operator.type.asserts.tsx
3257+ 2: variable.parameter.tsx variable.language.this.tsx
3258+ 3: variable.parameter.tsx
3259+ 4: keyword.operator.expression.is.tsx
3260+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(asserts)\s+(?!is)(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3261+ captures:
3262+ 1: keyword.operator.type.asserts.tsx
3263+ 2: variable.parameter.tsx variable.language.this.tsx
3264+ 3: variable.parameter.tsx
3265+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))asserts(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3266+ scope: keyword.operator.type.asserts.tsx
28853267 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))is(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
28863268 scope: keyword.operator.expression.is.tsx
28873269 type-primitive:
2888− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|boolean|symbol|any|void|never)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3270+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
28893271 scope: support.type.primitive.tsx
3272+ type-string:
3273+ - include: qstring-single
3274+ - include: qstring-double
3275+ - include: template-type
28903276 type-tuple:
28913277 - match: '\['
28923278 captures:
@@ -2897,56 +3283,84 @@ contexts:
28973283 captures:
28983284 0: meta.brace.square.tsx
28993285 pop: true
3286+ - match: \.\.\.
3287+ scope: keyword.operator.rest.tsx
3288+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))([_$[:alpha:]][_$[:alnum:]]*)\s*(\?)?\s*(:)'
3289+ captures:
3290+ 1: entity.name.label.tsx
3291+ 2: keyword.operator.optional.tsx
3292+ 3: punctuation.separator.label.tsx
29003293 - include: type
29013294 - include: punctuation-comma
29023295 typeof-operator:
29033296 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))typeof(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
2904− scope: keyword.operator.expression.typeof.tsx
3297+ captures:
3298+ 0: keyword.operator.expression.typeof.tsx
3299+ push:
3300+ - match: '(?=[,);}\]=>:&|{\?]|$|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))'
3301+ pop: true
3302+ - include: expression
29053303 undefined-literal:
29063304 - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))undefined(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
29073305 scope: constant.language.undefined.tsx
29083306 var-expr:
2909− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
2910− captures:
2911− 1: keyword.control.export.tsx
2912− 2: storage.type.tsx
3307+ - match: '(?=(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))'
29133308 push:
29143309 - meta_scope: meta.var.expr.tsx
2915− - match: '((?=;|}|(\s+(of|in)\s+)|^\s*$|;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)|((?<=\S)(?<!^let|[^\._$[:alnum:]]let|^var|[^\._$[:alnum:]]var)(?=\s*$)))'
3310+ - match: '(?!(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|((?<!^let|[^\._$[:alnum:]]let|^var|[^\._$[:alnum:]]var)(?=\s*$)))'
29163311 pop: true
3312+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(var|let)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*'
3313+ captures:
3314+ 1: keyword.control.export.tsx
3315+ 2: storage.modifier.tsx
3316+ 3: storage.type.tsx
3317+ push:
3318+ - match: (?=\S)
3319+ pop: true
29173320 - include: destructuring-variable
29183321 - include: var-single-variable
29193322 - include: variable-initializer
29203323 - include: comment
2921− - match: (,)\s*(?!\S)
3324+ - match: (,)\s*((?!\S)|(?=\/\/))
29223325 captures:
29233326 1: punctuation.separator.comma.tsx
29243327 push:
2925− - match: '(?<!,)(((?==|;|}|(\s+(of|in)\s+)|^\s*$))|((?<=\S)(?=\s*$)))'
3328+ - match: '(?<!,)(((?==|;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|^\s*$))|((?<=\S)(?=\s*$)))'
29263329 pop: true
3330+ - include: single-line-comment-consuming-line-ending
29273331 - include: comment
29283332 - include: destructuring-variable
29293333 - include: var-single-variable
29303334 - include: punctuation-comma
29313335 - include: punctuation-comma
2932− - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))'
3336+ - match: '(?=(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))'
29333337 captures:
29343338 1: keyword.control.export.tsx
2935− 2: storage.type.tsx
3339+ 2: storage.modifier.tsx
3340+ 3: storage.type.tsx
29363341 push:
29373342 - meta_scope: meta.var.expr.tsx
2938− - match: '((?=;|}|(\s+(of|in)\s+)|^\s*$|;|^\s*abstract\b|^\s*async\b|^\s*class\b|^\s*const\b|^\s*declare\b|^\s*enum\b|^\s*export\b|^\s*function\b|^\s*import\b|^\s*interface\b|^\s*let\b|^\s*module\b|^\s*namespace\b|^\s*return\b|^\s*type\b|^\s*var\b)|((?<=\S)(?<!^const|[^\._$[:alnum:]]const)(?=\s*$)))'
3343+ - match: '(?!(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|;|^\s*$|(?:^\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\b))|((?<!^const|[^\._$[:alnum:]]const)(?=\s*$)))'
29393344 pop: true
3345+ - match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?\b(const(?!\s+enum\b))(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))\s*'
3346+ captures:
3347+ 1: keyword.control.export.tsx
3348+ 2: storage.modifier.tsx
3349+ 3: storage.type.tsx
3350+ push:
3351+ - match: (?=\S)
3352+ pop: true
29403353 - include: destructuring-const
29413354 - include: var-single-const
29423355 - include: variable-initializer
29433356 - include: comment
2944− - match: (,)\s*(?!\S)
3357+ - match: (,)\s*((?!\S)|(?=\/\/))
29453358 captures:
29463359 1: punctuation.separator.comma.tsx
29473360 push:
2948− - match: '(?<!,)(((?==|;|}|(\s+(of|in)\s+)|^\s*$))|((?<=\S)(?=\s*$)))'
3361+ - match: '(?<!,)(((?==|;|}|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+)|^\s*$))|((?<=\S)(?=\s*$)))'
29493362 pop: true
3363+ - include: single-line-comment-consuming-line-ending
29503364 - include: comment
29513365 - include: destructuring-const
29523366 - include: var-single-const
@@ -2963,11 +3377,11 @@ contexts:
29633377 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
29643378 )) |
29653379 ((async\s*)?(
2966− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
3380+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
29673381 # sure shot arrow functions even if => is on new line
29683382 (
2969− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
2970− [(]\s*
3383+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3384+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
29713385 (
29723386 ([)]\s*:) | # ():
29733387 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -2978,9 +3392,9 @@ contexts:
29783392 ) |
29793393 # arrow function possible to detect only with => on same line
29803394 (
2981− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
2982− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
2983− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
3395+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3396+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3397+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
29843398 \s*=> # arrow operator
29853399 )
29863400 ))
@@ -2997,19 +3411,20 @@ contexts:
29973411 ))
29983412 ))
29993413 )) |
3000− (:\s*((<\s*$)|([\(]\s*([\{\[]\s*)?$))) |
3001− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
3414+ (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
3415+ (:\s*((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
3416+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
30023417 ((async\s+)?(
30033418 (function\s*[(<*]) |
30043419 (function\s+) |
30053420 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
30063421 )) |
30073422 ((async\s*)?(
3008− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
3423+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
30093424 # sure shot arrow functions even if => is on new line
30103425 (
3011− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
3012− [(]\s*
3426+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3427+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
30133428 (
30143429 ([)]\s*:) | # ():
30153430 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -3020,9 +3435,9 @@ contexts:
30203435 ) |
30213436 # arrow function possible to detect only with => on same line
30223437 (
3023− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
3024− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3025− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
3438+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3439+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3440+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
30263441 \s*=> # arrow operator
30273442 )
30283443 ))
@@ -3031,7 +3446,7 @@ contexts:
30313446 1: meta.definition.variable.tsx variable.other.constant.tsx entity.name.function.tsx
30323447 push:
30333448 - meta_scope: meta.var-single-variable.expr.tsx
3034− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
3449+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
30353450 pop: true
30363451 - include: var-single-variable-type-annotation
30373452 - match: "([_$[:alpha:]][_$[:alnum:]]*)"
@@ -3039,12 +3454,12 @@ contexts:
30393454 1: meta.definition.variable.tsx variable.other.constant.tsx
30403455 push:
30413456 - meta_scope: meta.var-single-variable.expr.tsx
3042− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
3457+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
30433458 pop: true
30443459 - include: var-single-variable-type-annotation
30453460 var-single-variable:
30463461 - match: |-
3047− (?x)([_$[:alpha:]][_$[:alnum:]]*)(?=\s*
3462+ (?x)([_$[:alpha:]][_$[:alnum:]]*)(\!)?(?=\s*
30483463 # function assignment |
30493464 (=\s*(
30503465 ((async\s+)?(
@@ -3053,11 +3468,11 @@ contexts:
30533468 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
30543469 )) |
30553470 ((async\s*)?(
3056− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
3471+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
30573472 # sure shot arrow functions even if => is on new line
30583473 (
3059− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
3060− [(]\s*
3474+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3475+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
30613476 (
30623477 ([)]\s*:) | # ():
30633478 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -3068,9 +3483,9 @@ contexts:
30683483 ) |
30693484 # arrow function possible to detect only with => on same line
30703485 (
3071− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
3072− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3073− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
3486+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3487+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3488+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
30743489 \s*=> # arrow operator
30753490 )
30763491 ))
@@ -3087,19 +3502,20 @@ contexts:
30873502 ))
30883503 ))
30893504 )) |
3090− (:\s*((<\s*$)|([\(]\s*([\{\[]\s*)?$))) |
3091− (:\s*(=>|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
3505+ (:\s*(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))Function(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))) |
3506+ (:\s*((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*))))))) |
3507+ (:\s*(=>|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(<[^<>]*>)|[^<>(),=])+=\s*(
30923508 ((async\s+)?(
30933509 (function\s*[(<*]) |
30943510 (function\s+) |
30953511 ([_$[:alpha:]][_$[:alnum:]]*\s*=>)
30963512 )) |
30973513 ((async\s*)?(
3098− ((<\s*$)|([\(]\s*([\{\[]\s*)?$)) |
3514+ ((<\s*$)|([\(]\s*((([\{\[]\s*)?$)|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\s*((:\s*\{?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\s*((:\s*\[?$)|((\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+\s*)?=\s*)))))) |
30993515 # sure shot arrow functions even if => is on new line
31003516 (
3101− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)?
3102− [(]\s*
3517+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)?
3518+ [(]\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*
31033519 (
31043520 ([)]\s*:) | # ():
31053521 ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
@@ -3110,34 +3526,37 @@ contexts:
31103526 ) |
31113527 # arrow function possible to detect only with => on same line
31123528 (
3113− (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\(([^\(\)]|(\([^\(\)]*\)))*\))|(\[([^\[\]]|(\[[^\[\]]*\]))*\]))([^=<>]|=[^<])*\>)*>\s*)? # typeparameters
3114− \(\s*(([_$[:alpha:]]|(\{([^\{\}]|(\{[^\{\}]*\}))*\})|(\[([^\[\]]|(\[[^\[\]]*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()]|(\(([^\(\)]|(\([^\(\)]*\)))*\)))*)?\) # parameters
3115− (\s*:\s*([^<>\(\)]|\<[^<>]+\>|\([^\(\)]+\))+)? # return type
3529+ (<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<]|\<\s*([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^=<>]|=[^<])*\>)*\>)*>\s*)? # typeparameters
3530+ \(\s*(\/\*([^\*]|(\*[^\/]))*\*\/\s*)*(([_$[:alpha:]]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\s*[_$[:alpha:]]))([^()\'\"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\'([^\'\\]|\\.)*\')|(\"([^\"\\]|\\.)*\")|(\`([^\`\\]|\\.)*\`))*)?\) # parameters
3531+ (\s*:\s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+)? # return type
31163532 \s*=> # arrow operator
31173533 )
31183534 ))
31193535 )))
31203536 captures:
31213537 1: meta.definition.variable.tsx entity.name.function.tsx
3538+ 2: keyword.operator.definiteassignment.tsx
31223539 push:
31233540 - meta_scope: meta.var-single-variable.expr.tsx
3124− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
3541+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
31253542 pop: true
31263543 - include: var-single-variable-type-annotation
3127− - match: "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])"
3544+ - match: '([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])(\!)?'
31283545 captures:
31293546 1: meta.definition.variable.tsx variable.other.constant.tsx
3547+ 2: keyword.operator.definiteassignment.tsx
31303548 push:
31313549 - meta_scope: meta.var-single-variable.expr.tsx
3132− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
3550+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
31333551 pop: true
31343552 - include: var-single-variable-type-annotation
3135− - match: "([_$[:alpha:]][_$[:alnum:]]*)"
3553+ - match: '([_$[:alpha:]][_$[:alnum:]]*)(\!)?'
31363554 captures:
31373555 1: meta.definition.variable.tsx variable.other.readwrite.tsx
3556+ 2: keyword.operator.definiteassignment.tsx
31383557 push:
31393558 - meta_scope: meta.var-single-variable.expr.tsx
3140− - match: '(?=$|^|[;,=}]|(\s+(of|in)\s+))'
3559+ - match: '(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
31413560 pop: true
31423561 - include: var-single-variable-type-annotation
31433562 var-single-variable-type-annotation:
@@ -3145,17 +3564,17 @@ contexts:
31453564 - include: string
31463565 - include: comment
31473566 variable-initializer:
3148− - match: (?<!=|!)(=)(?!=)(?=\s*\S)
3567+ - match: (?<!=|!)(=)(?!=)(?=\s*\S)(?!\s*.*=>\s*$)
31493568 captures:
31503569 1: keyword.operator.assignment.tsx
31513570 push:
3152− - match: '(?=$|^|[,);}\]])'
3571+ - match: '(?=$|^|[,);}\]]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))'
31533572 pop: true
31543573 - include: expression
31553574 - match: (?<!=|!)(=)(?!=)
31563575 captures:
31573576 1: keyword.operator.assignment.tsx
31583577 push:
3159− - match: '(?=[,);}\]])|(?=^\s*$)|(?<=\S)(?<!=)(?=\s*$)'
3578+ - match: '(?=[,);}\]]|((?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(of|in)\s+))|(?=^\s*$)|(?<=\S)(?<!=)(?=\s*$)'
31603579 pop: true
31613580 - include: expression
assets/syntaxes/Verilog → assets/syntaxes/02_Extra/Verilogrenamed

The content is the same.

assets/syntaxes/Verilog.sublime-syntax → assets/syntaxes/02_Extra/Verilog.sublime-syntaxrenamed

The content is the same.

assets/syntaxes/02_Extra/VimLnew file+1

Submodule changed.

assets/syntaxes/Vue → assets/syntaxes/02_Extra/Vuerenamed

The content is the same.

assets/syntaxes/02_Extra/Zignew file+1

Submodule changed.

assets/syntaxes/02_Extra/cmd-helpnew file+1

Submodule changed.

assets/syntaxes/02_Extra/gnuplotnew file+1

Submodule changed.

assets/syntaxes/02_Extra/gnuplot.sublime-syntaxnew file+182
@@ -0,0 +1,182 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: gnuplot
5+file_extensions:
6+ - gp
7+ - gpl
8+ - gnuplot
9+ - gnu
10+ - plot
11+ - plt
12+scope: source.gnuplot
13+contexts:
14+ main:
15+ - include: number
16+ - include: string_single
17+ - include: string_double
18+ - match: '\b(for)\b\s*(\[)'
19+ comment: |
20+ gnuplot iteration statement.
21+ There are two forms:
22+ numeric [n = 1:2{:inc}]
23+ string based [str in "x y z"]
24+ but both can also iterate over lists etc, so this is kept loose.
25+ captures:
26+ 1: keyword.other.iteration.gnuplot
27+ 2: punctuation.definition.range.begin.gnuplot
28+ push:
29+ - meta_scope: meta.structure.iteration.gnuplot
30+ - match: '\]'
31+ captures:
32+ 0: punctuation.definition.range.end.gnuplot
33+ pop: true
34+ - include: number
35+ - include: operator
36+ - include: string_double
37+ - include: string_single
38+ - match: ":"
39+ scope: punctuation.separator.range.gnuplot
40+ - match: '\b([a-zA-Z]\w*)\b\s*(=|in)'
41+ scope: variable-assignment.range.gnuplot
42+ - match: '(?i:[^\s(pi|e)\]])'
43+ scope: invalid.illegal.expected-range-separator.gnuplot
44+ - match: '\['
45+ comment: "gnuplot range statement [a:b]. Lots of things are legal, still more make no sense!"
46+ captures:
47+ 0: punctuation.definition.range.begin.gnuplot
48+ push:
49+ - meta_scope: meta.structure.range.gnuplot
50+ - match: '\]'
51+ captures:
52+ 0: punctuation.definition.range.end.gnuplot
53+ pop: true
54+ - include: number
55+ - include: operator
56+ - match: ":"
57+ scope: punctuation.separator.range.gnuplot
58+ - match: '(?i:[^\s(pi|e)\]])'
59+ scope: invalid.illegal.expected-range-separator.gnuplot
60+ - match: \\.
61+ scope: constant.character.escape.gnuplot
62+ - match: '(?<!\$)(#)(?!\{).*$\n?'
63+ scope: comment.line.number-sign.gnuplot
64+ captures:
65+ 1: punctuation.definition.comment.gnuplot
66+ - match: for
67+ comment: introduce in gnuplot 4.3.
68+ scope: keyword.other.iteration.gnuplot
69+ - match: \b(angles|arrow|autoscale|bars|border|boxwidth|clabel|clip|cntrparam|colorbox|contour|decimalsign|dgrid3d|dummy|encoding|fit|format|grid|hidden3d|historysize|isosamples|key|label|locale|logscale|macros|bmargin|lmargin|rmargin|tmargin|mapping|mouse|multiplot|offsets|origin|output|palette|parametric|pm3d|pointsize|polar|print|rrange|trange|urange|vrange|samples|size|style|surface|tics|ticscale|ticslevel|timestamp|timefmt|title|view|xyplane|x2data|xdata|y2data|ydata|z2data|zdata|x2label|xlabel|y2label|ylabel|z2label|zlabel|x2range|xrange|y2range|yrange|z2range|zrange|mx2tics|mxtics|my2tics|mytics|mz2tics|mztics|nomx2tics|nomxtics|nomy2tics|nomytics|nomz2tics|nomztics|nox2tics|noxtics|noy2tics|noytics|noz2tics|noztics|x2tics|xtics|y2tics|ytics|z2tics|ztics|x2dtics|x2mtics|xdtics|xmtics|y2dtics|y2mtics|ydtics|ymtics|z2dtics|z2mtics|zdtics|zmtics|x2zeroaxis|xzeroaxis|y2zeroaxis|yzeroaxis|z2zeroaxis|zeroaxis|zzeroaxis|zero|)\b
70+ scope: keyword.other.setting.gnuplot
71+ - match: \b(cd|call|clear|exit|plot|splot|help|load|pause|quit|fit|replot|if|FIT_LIMIT|FIT_MAXITER|FIT_START_LAMBDA|FIT_LAMBDA_FACTOR|FIT_LOG|FIT_SCRIPT|print|pwd|reread|reset|save|show|test|!|functions|var)\b
72+ comment: missuse of scopes alert! Just for pretty colours
73+ scope: keyword.other.command.gnuplot
74+ - match: \b(abs|acos|acosh|arg|asin|asinh|atan|atan2|atanh|besj0|besj1|besy0|besy1|ceil|cos|cosh|erf|erfc|exp|floor|gamma|ibeta|igamma|imag|int|inverf|invnorm|lambertw|lgamma|log|log10|norm|rand|real|sgn|sin|sinh|sqrt|tan|tanh)\b
75+ scope: support.function.gnuplot
76+ - match: \b(gprintf|sprintf|strlen|strstrt|substr|system|word|words)\b
77+ scope: support.function.string.gnuplot
78+ - match: \b(on|off|default|inside|outside|lmargin|rmargin|tmargin|bmargin|at|left|right|center|top|bottom|center|vertical|horizontal|Left|Right|noreverse|noinvert|samplen|spacing|width|height|noautotitle|columnheader|title|noenhanced|nobox|linestyle|ls|linetype|lt|linewidth|lw)\b
79+ scope: constant.other.type.gnuplot
80+ - match: \b(aed512|aed767|aifm|aqua|bitgraph|cgm|corel|dumb|dxf|eepic|emf|emtex|epslatex|epson_180dpi|epson_60dpi|epson_lx800|fig|gif|gpic|hp2623A|hp2648|hp500c|hpdj|hpgl|hpljii|hppj|imagen|jpeg|kc_tek40xx|km_tek40xx|latex|mf|mif|mp|nec_cp6|okidata|pbm|pcl5|pdf|png|postscript|pslatex|pstex|pstricks|qms|regis|selanar|starc|svg|tandy_60dpi|tek40xx|tek410x|texdraw|tgif|tkcanvas|tpic|unknown|vttek)\b
81+ scope: constant.other.terminal.gnuplot
82+ - match: \b(u(sing)?|t(it(le)?)?|notit(le)?|w(i(th)?)?|steps|fs(teps)?|notitle|l(i(nes)?)?|linespoints|via)\b
83+ scope: keyword.modifier.gnuplot
84+ - match: |-
85+ (?x:
86+ \b # Start with a word boundary
87+ (?=\b[\w$]*(\(|.*=)) # Look-ahead for a bracket or equals
88+ (?![^(]*\)) # negative look ahead for a closing bracket without an opening one. This stops a from matching in f(a)
89+ ( # Group variable name
90+ [A-Za-z] # A letter
91+ [\w$]* # Any word chars or $
92+ ) # That is it for the name.
93+ )
94+ comment: user defined function / variable
95+ scope: variable.other.gnuplot
96+ - match: \b(if)\b
97+ scope: keyword.control.gnuplot
98+ - match: \b(show)\b
99+ captures:
100+ 0: keyword.other.command.gnuplot
101+ push:
102+ - meta_scope: keyword.line.show.gnuplot
103+ - meta_content_scope: keyword.line.show.gnuplot
104+ - match: (?!\#)($\n?)
105+ pop: true
106+ - include: main
107+ - match: \b(set)\b\s*\b(terminal|term)\b
108+ captures:
109+ 1: keyword.other.command.gnuplot
110+ 2: keyword.other.setting.gnuplot
111+ push:
112+ - meta_scope: keyword.line.set.terminal.gnuplot
113+ - match: (?!\#)($\n?)
114+ pop: true
115+ - include: main
116+ - match: \b(set)\b\s*\b(key)\b
117+ captures:
118+ 1: keyword.other.command.gnuplot
119+ 2: keyword.other.setting.gnuplot
120+ push:
121+ - meta_scope: keyword.line.set.key.gnuplot
122+ - match: (?!\#)($\n?)
123+ pop: true
124+ - include: main
125+ - match: \b(set|unset)\b\s*(?!\b(terminal|key|for)\b)
126+ captures:
127+ 1: keyword.other.command.gnuplot
128+ 2: keyword.other.setting.gnuplot
129+ push:
130+ - meta_scope: keyword.line.set.gnuplot
131+ - meta_content_scope: keyword.line.set.gnuplot
132+ - match: (?!\#)($\n?)
133+ pop: true
134+ - include: main
135+ number:
136+ - match: |-
137+ (?x: # turn on extended mode
138+ -? # an optional minus
139+ (?:
140+ 0 # a zero
141+ | # ...or...
142+ [1-9] # a 1-9 character
143+ \d* # followed by zero or more digits
144+ )
145+ (?:
146+ \. # a period
147+ \d+ # followed by one or more digits
148+ (?:
149+ [eE] # an e character
150+ [+-]? # followed by an option +/-
151+ \d+ # followed by one or more digits
152+ )? # make exponent optional
153+ )? # make decimal portion optional
154+ )
155+ comment: borrowed from textmate book
156+ scope: constant.numeric.gnuplot
157+ operator:
158+ - match: \s*(==|~=|>|>=|<|<=|&|&&|:|\||\|\||\+|-|\*|\.\*|/|\./|\\|\.\\|\^|\.\^)\s*
159+ comment: Operator symbols
160+ scope: keyword.operator.symbols.matlab
161+ string_double:
162+ - match: '"'
163+ captures:
164+ 0: punctuation.definition.string.begin.gnuplot
165+ push:
166+ - meta_scope: string.quoted.double.gnuplot
167+ - match: '"'
168+ captures:
169+ 0: punctuation.definition.string.end.gnuplot
170+ pop: true
171+ - match: '\\[\$`"\\\n]'
172+ scope: constant.character.escape.gnuplot
173+ string_single:
174+ - match: "'"
175+ captures:
176+ 0: punctuation.definition.string.begin.gnuplot
177+ push:
178+ - meta_scope: string.quoted.single.gnuplot
179+ - match: "'"
180+ captures:
181+ 0: punctuation.definition.string.end.gnuplot
182+ pop: true
assets/syntaxes/hosts → assets/syntaxes/02_Extra/hostsrenamed

The content is the same.

assets/syntaxes/02_Extra/http-request-responsenew file+1

Submodule changed.

assets/syntaxes/02_Extra/log.sublime-syntaxnew file+140
@@ -0,0 +1,140 @@
1+%YAML 1.2
2+---
3+# See http://www.sublimetext.com/docs/3/syntax.html
4+file_extensions:
5+ - log
6+scope: text.log
7+variables:
8+ ipv4_part: (?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
9+ hours_minutes_seconds: (?:[01]\d|2[0-3]):(?:[0-5]\d):(?:[0-5]\d)
10+contexts:
11+ main:
12+ - match: (\w+)(=)
13+ captures:
14+ 1: variable.parameter.log
15+ 2: keyword.operator.assignment.log
16+ - match: (')([^']*)(')
17+ scope: string.quoted.single.log
18+ captures:
19+ 1: punctuation.definition.string.begin.log
20+ 3: punctuation.definition.string.end.log
21+ - match: \"
22+ captures:
23+ 1: punctuation.definition.string.begin.log
24+ push: double_quoted_string
25+ - include: dates
26+ - include: ip_addresses
27+ - include: numbers
28+ - match: \b(?i:fail(?:ure|ed)?|error|exception)\b
29+ scope: markup.error.log
30+ - match: \b(?i:warn(?:ing)?)\b
31+ scope: markup.warning.log
32+ - match: \b(?i:debug)\b
33+ scope: markup.info.log
34+ #- include: scope:text.html.markdown#autolink-inet
35+ - match: \b\w+:/{2,3}
36+ scope: markup.underline.link.scheme.log
37+ push: url-host
38+ dates:
39+ - match: \b\d{4}-\d{2}-\d{2}(?=\b|T)
40+ scope: meta.date.log meta.number.integer.decimal.log constant.numeric.value.log
41+ push: maybe_date_time_separator
42+ - match: \b\d{4}/\d{2}/\d{2}(?=\b|T)
43+ scope: meta.date.log meta.number.integer.decimal.log constant.numeric.value.log
44+ push: maybe_date_time_separator
45+ - match: \b(?={{hours_minutes_seconds}})
46+ push: time
47+ time:
48+ - match: (?:{{hours_minutes_seconds}})(?:(\.)\d{3})?\b
49+ scope: meta.time.log meta.number.integer.decimal.log constant.numeric.value.log
50+ captures:
51+ 1: punctuation.separator.decimal.log
52+ - match: ''
53+ pop: true
54+ maybe_date_time_separator:
55+ - match: T(?={{hours_minutes_seconds}})
56+ scope: meta.date.log meta.time.log keyword.other.log
57+ set: time
58+ - match: ''
59+ pop: true
60+ ip_addresses:
61+ - match: \b(?=(?:{{ipv4_part}}\.){3}{{ipv4_part}}\b)
62+ push:
63+ - meta_scope: meta.ipaddress.v4.log meta.number.integer.decimal.log
64+ - match: \d+
65+ scope: constant.numeric.value.log
66+ - match: \.
67+ scope: punctuation.separator.sequence.log
68+ - match: ''
69+ pop: true
70+ - match: (?=(?:\h{0,4}:){2,6}\h{1,4}\b)
71+ push:
72+ - meta_scope: meta.ipaddress.v6.log meta.number.integer.hexadecimal.log
73+ - match: \h{1,4}
74+ scope: constant.numeric.value.log
75+ - match: ':'
76+ scope: punctuation.separator.sequence.log
77+ - match: ''
78+ pop: true
79+ numbers:
80+ - match: \b(0x)(\h+)(?:(\.)(\h+))?\b
81+ scope: meta.number.float.hexadecimal.log
82+ captures:
83+ 1: constant.numeric.base.log
84+ 2: constant.numeric.value.log
85+ 3: constant.numeric.value.log punctuation.separator.decimal.log
86+ 4: constant.numeric.value.log
87+ - match: \b\d+(\.)\d+\b
88+ scope: meta.number.float.log constant.numeric.value.log
89+ captures:
90+ 1: punctuation.separator.decimal.log
91+ - match: \b\d+\b
92+ scope: meta.number.integer.log constant.numeric.value.log
93+ url-host:
94+ - meta_content_scope: markup.underline.link.host.log
95+ - match: \[
96+ scope: punctuation.section.brackets.begin.log
97+ push:
98+ - match: \]
99+ scope: punctuation.section.brackets.end.log
100+ pop: true
101+ - include: ip_addresses
102+ - match: '[^:/\s]+'
103+ - match: ''
104+ set: url-after-host
105+ url-after-host:
106+ - match: (:)(\d+)
107+ scope: markup.underline.link.port.log
108+ captures:
109+ 1: punctuation.separator.mapping.port.log
110+ 2: constant.numeric.value.log
111+ #- include: scope:text.html.markdown#url-escaped-chars
112+ - match: (%)\h{2}
113+ scope: markup.underline.link.path.log constant.character.escape.url.log
114+ captures:
115+ 1: punctuation.definition.escape.log
116+ # After a valid domain, zero or more non-space non-< characters may follow
117+ - match: (?=[?!.,:*_~]*[\s<]) # Trailing punctuation (specifically, ?, !, ., ,, :, *, _, and ~) will not be considered part of the autolink, though they may be included in the interior of the link
118+ pop: true
119+ - match: \( # When an autolink ends in ), we scan the entire autolink for the total number of parentheses. If there is a greater number of closing parentheses than opening ones, we don’t consider the last character part of the autolink, in order to facilitate including an autolink inside a parenthesis
120+ push:
121+ - meta_scope: markup.underline.link.path.log
122+ - match: (?=[?!.,:*_~]*[\s<])
123+ pop: true
124+ - match: \)
125+ pop: true
126+ - match: (?=\)[?!.,:*_~]*[\s<])
127+ pop: true
128+ - match: '[^?!.,:*_~\s<&()%]+|\S'
129+ scope: markup.underline.link.path.log
130+ - match: ''
131+ pop: true
132+ double_quoted_string:
133+ - meta_scope: string.quoted.double.log
134+ - match: \\"
135+ scope: constant.character.escape.log
136+ - match: \\n
137+ scope: constant.character.escape.log
138+ - match: \"
139+ scope: punctuation.definition.string.end.log
140+ pop: true
assets/syntaxes/show-nonprintable.sublime-syntax → assets/syntaxes/02_Extra/show-nonprintable.sublime-syntaxrenamed+1−1
@@ -7,7 +7,7 @@ file_extensions:
77scope: whitespace
88contexts:
99 main:
10− - match: "•"
10+ - match: "·"
1111 scope: support.function.show-nonprintable.space
1212 - match: "├─*┤"
1313 scope: constant.character.escape.show-nonprintable.tab
assets/syntaxes/02_Extra/ssh-confignew file+1

Submodule changed.

assets/syntaxes/02_Extra/syntax_test_csv.csvnew file+60
@@ -0,0 +1,60 @@
1+# SYNTAX TEST "CSV.sublime-syntax"
2+Forename,Surname,House No.,Street,City,Postcode
3+#^^^^^^^ meta.field-1
4+# ^ punctuation.separator.sequence
5+# ^^^^^^^ meta.field-2
6+# ^ punctuation.separator.sequence
7+# ^^^^^^^^^ meta.field-3
8+# ^ punctuation.separator.sequence
9+# ^^^^^^ meta.field-4
10+# ^ punctuation.separator.sequence
11+# ^^^^ meta.field-1
12+# ^ punctuation.separator.sequence
13+# ^^^^^^^^ meta.field-2
14+John,Doe,87,Logon Road,Citiville,TU43 6GH
15+#^^^ meta.field-1
16+# ^ punctuation.separator.sequence
17+# ^^^ meta.field-2
18+# ^ punctuation.separator.sequence
19+# ^^ meta.field-3
20+# ^ punctuation.separator.sequence
21+# ^^^^^^^^^^ meta.field-4
22+# ^ punctuation.separator.sequence
23+# ^^^^^^^^^ meta.field-1
24+# ^ punctuation.separator.sequence
25+# ^^^^^^^^ meta.field-2
26+Jane,Doe,22,"""Fun"" Street","The City, County",FA90 1XA
27+#^^^ meta.field-1
28+# ^ punctuation.separator.sequence
29+# ^^^ meta.field-2
30+# ^ punctuation.separator.sequence
31+# ^^ meta.field-3
32+# ^ punctuation.separator.sequence
33+# ^^^^^^^^^^^^^^^^ meta.field-4 string.quoted.double
34+# ^^ constant.character.escape
35+# ^^ constant.character.escape
36+# ^ punctuation.separator.sequence
37+# ^ meta.field-1 string.quoted.double punctuation.definition.string.begin
38+# ^^^^^^^^^^^^^^^^^ meta.field-1 string.quoted.double
39+# ^ meta.field-1 string.quoted.double punctuation.definition.string.end
40+# ^ punctuation.separator.sequence
41+# ^^^^^^^^ meta.field-2
42+Fred,Bloggs,"19","Street
43+#^^^ meta.field-1
44+# ^ punctuation.separator.sequence
45+# ^^^^^^ meta.field-2
46+# ^ punctuation.separator.sequence
47+# ^^^ meta.field-3 string.quoted.double
48+# ^ punctuation.separator.sequence
49+# ^ meta.field-4 punctuation.definition.string.begin
50+# ^^^^^^^^ meta.field-4 string.quoted.double
51+Spanning Multiple ""
52+#^^^^^^^^^^^^^^^^^^^^ meta.field-4 string.quoted.double
53+# ^^ constant.character.escape
54+Lines",Citee,P0stc0d3
55+#^^^^^ meta.field-4 string.quoted.double
56+# ^ meta.field-4 punctuation.definition.string.end
57+# ^ punctuation.separator.sequence
58+# ^^^^^ meta.field-1
59+# ^ punctuation.separator.sequence
60+# ^^^^^^^^ meta.field-2
assets/syntaxes/02_Extra/syntax_test_man.mannew file+162
@@ -0,0 +1,162 @@
1+# SYNTAX TEST "Manpage.sublime-syntax"
2+SOMETHING(8) System Manager's Manual SOMETHING(8)
3+# ^^^^^ meta.preprocessor
4+# ^^^^^^^^^^^^^^^^^^^^^^^ markup.heading.title
5+# ^^^^^^^ meta.preprocessor
6+
7+NAME
8+#^^^ markup.heading.other
9+ example - do something useful
10+
11+SYNOPSIS
12+ example [options] [--home DIR] [--shell SHELL] [--no-create-home]
13+# ^ punctuation.section.brackets.begin
14+# ^^^^^^ entity.name.command-line-option
15+# ^^^ variable.parameter
16+# ^ punctuation.section.brackets.end
17+# ^ punctuation.section.brackets.begin
18+# ^^^^^^^ entity.name.command-line-option
19+# ^^^^^ variable.parameter
20+# ^ punctuation.section.brackets.end
21+# ^ punctuation.section.brackets.begin
22+# ^^^^^^^^^^^^^^^^ entity.name.command-line-option
23+# ^ punctuation.section.brackets.end
24+ [-u | --set-upstream] [-o <string> | --push-option=<string>]
25+# ^ punctuation.section.brackets.begin
26+# ^^ entity.name.command-line-option
27+# ^ keyword.operator.logical
28+# ^^^^^^^^^^^^^^ entity.name.command-line-option
29+# ^ punctuation.section.brackets.end
30+# ^^^^^^^^^^^^^ entity.name.command-line-option
31+ [--force-with-lease[=<refname>[:<expect>]]]
32+# ^ punctuation.section.brackets.begin
33+# ^^^^^^^^^^^^^^^^^^ entity.name.command-line-option
34+# ^ punctuation.section.brackets.begin
35+# ^ keyword.operator
36+# ^^^^^^^ variable.parameter
37+# ^ punctuation.section.brackets.begin
38+# ^^^^^^ variable.parameter
39+# ^^^ punctuation.section.brackets.end
40+
41+ example --system [options]
42+# ^^^^^^^^ entity.name
43+
44+ COMMON OPTIONS
45+ [--quiet] [--debug] [--help|-h] [--version] [--conf FILE]
46+
47+ /* According to POSIX.1-2001, POSIX.1-2008 */
48+# ^^ source.c comment.block punctuation.definition.comment
49+ #include <sys/select.h>
50+# ^^^^^^^^ source.c meta.preprocessor.include keyword.control.import.include
51+ struct timeval {
52+# ^^^^^^ source.c storage.type
53+
54+ time_t tv_sec; /* seconds */
55+ suseconds_t tv_usec; /* microseconds */
56+ };
57+
58+
59+
60+DESCRIPTION
61+ example does something useful in relation to the command line options
62+ and configuration information in /etc/example.conf.
63+
64+OPTIONS
65+ --conf FILE
66+# ^^^^^^ entity.name.command-line-option
67+#^^^^^^ - variable - entity - markup
68+# ^^^^ variable.parameter
69+ Use FILE instead of /etc/example.conf.
70+# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - variable - entity
71+
72+ --disabled-login
73+ Do not run passwd to set the password. The user won't be able
74+ to use her account until the password is set.
75+
76+ --disabled-password
77+ Like --disabled-login, but logins are still possible (for exam-
78+# ^^^^^^^^^^^^^^^^ entity.name
79+#^^^^^^^^^^^^^^^^^^ - entity - variable - markup
80+# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - entity - variable - markup
81+ ple using SSH RSA keys) but not using password authentication.
82+
83+ --help Display brief instructions.
84+# ^^^^^^ entity.name.command-line-option
85+# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - variable.parameter
86+
87+ --home DIR
88+# ^^^^^^ entity.name.command-line-option
89+# ^^^ variable.parameter
90+# ^ - variable - entity - markup
91+ Use DIR as the user's home directory, rather than the default
92+ specified by the configuration file. If the directory does not
93+ exist, it is created and skeleton files are copied.
94+
95+ --[no-]signed, --signed=(true|false|if-asked)
96+# ^^^^^^^^^^^^^ entity.name.command-line-option
97+# ^ punctuation.separator
98+# ^^^^^^^^ entity.name.command-line-option
99+# ^ keyword.operator
100+# ^ - variable
101+# ^^^^ variable.parameter
102+# ^ keyword.operator.logical
103+# ^^^^^ variable.parameter
104+# ^ keyword.operator.logical
105+# ^^^^^^^^ variable.parameter
106+# ^ - variable
107+ --no-recurse-submodules, --recurse-submodules=check|on-demand|only|no
108+# ^^^^^^^^^^^^^^^^^^^^^^^ entity.name.command-line-option
109+# ^ punctuation.separator
110+# ^^^^^^^^^^^^^^^^^^^^ entity.name.command-line-option
111+# ^ keyword.operator
112+# ^^^^^ variable.parameter
113+# ^ keyword.operator.logical
114+# ^^^^^^^^^ variable.parameter
115+# ^ keyword.operator.logical
116+# ^^^^ variable.parameter
117+# ^ keyword.operator.logical
118+# ^^ variable.parameter
119+ May be used to make sure all submodule commits used by the
120+
121+ -c, -C NUM, --context[=NUM]
122+# ^^ entity.name.command-line-option
123+# ^ punctuation.separator
124+# ^^ entity.name.command-line-option
125+# ^^^ variable.parameter
126+# ^ punctuation.separator
127+# ^^^^^^^^^ entity.name.command-line-option
128+# ^^^^^^^ - entity.name
129+# ^ keyword.operator
130+# ^^^ variable.parameter
131+# ^^ - variable
132+ output NUM (default 3) lines of copied context
133+
134+EXAMPLE
135+ #include <stdio.h>
136+# ^^^^^^^^ source.c meta.preprocessor.include keyword.control.import.include
137+
138+ (This is not C code.)
139+# ^^^^^^^^^^^^^^^^^^^^^^ - source.c
140+
141+ struct timeval {
142+ time_t tv_sec; /* seconds */
143+ suseconds_t tv_usec; /* microseconds */
144+ };
145+# ^ source.c punctuation.terminator
146+
147+ The corresponding argument for pselect() has the following type:
148+#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - source.c
149+ #define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |
150+ EPOLLHUP | EPOLLERR)
151+# ^ source.c meta.preprocessor.macro meta.group punctuation.section.group.end
152+
153+ENVIRONMENT
154+ $SYSTEMD_LOG_LEVEL
155+# ^ punctuation.definition.variable
156+# ^^^^^^^^^^^^^^^^^ constant.other
157+ systemd reads the log level from this environment variable. This
158+ can be overridden with --log-level=.
159+
160+SEE ALSO
161+ The systemd Homepage[11], systemd-system.conf(5), locale.conf(5)
162+# ^^^^^^^^^^^^^^^^^^^ entity.name.function
assets/syntaxes/02_Extra/syntax_test_tsv.tsvnew file+60
@@ -0,0 +1,60 @@
1+# SYNTAX TEST "CSV.sublime-syntax"
2+Forename Surname House No. Street City Postcode
3+#^^^^^^^ meta.field-1
4+# ^ punctuation.separator.sequence
5+# ^^^^^^^ meta.field-2
6+# ^ punctuation.separator.sequence
7+# ^^^^^^^^^ meta.field-3
8+# ^ punctuation.separator.sequence
9+# ^^^^^^ meta.field-4
10+# ^ punctuation.separator.sequence
11+# ^^^^ meta.field-1
12+# ^ punctuation.separator.sequence
13+# ^^^^^^^^ meta.field-2
14+John Doe 87 Logon Road Citiville TU43 6GH
15+#^^^ meta.field-1
16+# ^ punctuation.separator.sequence
17+# ^^^ meta.field-2
18+# ^ punctuation.separator.sequence
19+# ^^ meta.field-3
20+# ^ punctuation.separator.sequence
21+# ^^^^^^^^^^ meta.field-4
22+# ^ punctuation.separator.sequence
23+# ^^^^^^^^^ meta.field-1
24+# ^ punctuation.separator.sequence
25+# ^^^^^^^^ meta.field-2
26+Jane Doe 22 """Fun"" Street" "The City County" FA90 1XA
27+#^^^ meta.field-1
28+# ^ punctuation.separator.sequence
29+# ^^^ meta.field-2
30+# ^ punctuation.separator.sequence
31+# ^^ meta.field-3
32+# ^ punctuation.separator.sequence
33+# ^^^^^^^^^^^^^^^^ meta.field-4 string.quoted.double
34+# ^^ constant.character.escape
35+# ^^ constant.character.escape
36+# ^ punctuation.separator.sequence
37+# ^ meta.field-1 string.quoted.double punctuation.definition.string.begin
38+# ^^^^^^^^^^^^^^^^^ meta.field-1 string.quoted.double
39+# ^ meta.field-1 string.quoted.double punctuation.definition.string.end
40+# ^ punctuation.separator.sequence
41+# ^^^^^^^^ meta.field-2
42+Fred Bloggs "19" "Street
43+#^^^ meta.field-1
44+# ^ punctuation.separator.sequence
45+# ^^^^^^ meta.field-2
46+# ^ punctuation.separator.sequence
47+# ^^^ meta.field-3 string.quoted.double
48+# ^ punctuation.separator.sequence
49+# ^ meta.field-4 punctuation.definition.string.begin
50+# ^^^^^^^^ meta.field-4 string.quoted.double
51+Spanning Multiple ""
52+#^^^^^^^^^^^^^^^^^^^^ meta.field-4 string.quoted.double
53+# ^^ constant.character.escape
54+Lines" Citee P0stc0d3
55+#^^^^^ meta.field-4 string.quoted.double
56+# ^ meta.field-4 punctuation.definition.string.end
57+# ^ punctuation.separator.sequence
58+# ^^^^^ meta.field-1
59+# ^ punctuation.separator.sequence
60+# ^^^^^^^^ meta.field-2
assets/syntaxes/02_Extra/syslog.sublime-syntaxnew file+63
@@ -0,0 +1,63 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: syslog
5+file_extensions:
6+ - syslog
7+scope: text.log.syslog
8+contexts:
9+ main:
10+ - match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})
11+ scope: meta.datetime.syslog constant.numeric.syslog
12+ captures:
13+ 1: meta.date.syslog
14+ 2: meta.time.syslog
15+ push: loghost
16+ - match: ^
17+ push: text
18+ loghost:
19+ - match: '[\w:.-]+'
20+ scope: entity.other.attribute-name.loghost.syslog
21+ set: process
22+ process:
23+ - match: ([\w.-]+)(?:(\[)(\d+)(\]))?([ :])
24+ captures:
25+ 1: support.function.process.syslog
26+ 2: punctuation.separator.pid.begin.syslog
27+ 3: meta.pid.syslog meta.number.integer.syslog constant.numeric.value.syslog
28+ 4: punctuation.separator.pid.end.syslog
29+ 5: punctuation.separator.mapping.syslog
30+ set: structured-data
31+ structured-data:
32+ - match: '\['
33+ scope: punctuation.section.mapping.begin.syslog
34+ push:
35+ - match: \]
36+ scope: punctuation.section.mapping.end.syslog
37+ pop: true
38+ - match: \w+
39+ scope: variable.parameter.syslog
40+ - match: =
41+ scope: keyword.operator.assignment.syslog
42+ push:
43+ - match: '[^\s\]]+'
44+ scope: constant.other.syslog
45+ pop: true
46+ - match: (?=\])
47+ pop: true
48+ - match: (?=\S)
49+ set: text
50+ text:
51+ - match: $
52+ pop: true
53+ - match: '<\w+>'
54+ scope: constant.language.syslog
55+ - match: \b(CMD)\b\s+(\()
56+ captures:
57+ 1: entity.name.label.syslog
58+ 2: punctuation.section.block.begin.syslog
59+ embed: scope:source.shell.bash
60+ escape: \)$
61+ escape_captures:
62+ 0: punctuation.section.block.end.syslog
63+ - include: scope:text.log
assets/syntaxes/varlink → assets/syntaxes/02_Extra/varlinkrenamed

The content is the same.

assets/syntaxes/AWKdeleted−1

Submodule changed.

assets/syntaxes/AsciiDocdeleted−1

Submodule changed.

assets/syntaxes/AsciiDoc.sublime-syntaxdeleted−283
@@ -1,283 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: AsciiDoc
5−comment: |
6− A very early hack. Mostly ripped from other syntaxes.
7− Only the very basic stuff is working.
8−file_extensions:
9− - adoc
10− - asciidoc
11− - asc
12−scope: text.html.asciidoc
13−contexts:
14− main:
15− - include: heading_inline
16− - include: heading-block
17− - include: heading-blockattr
18− - match: \$\$(?!\$)
19− push:
20− - meta_scope: comment.block.passthrough.macro.doubledollar.asciidoc
21− - match: \$\$(?!\$)
22− pop: true
23− - match: \+\+\+(?!\+)
24− push:
25− - meta_scope: comment.block.passthrough.macro.tripeplus.asciidoc
26− - match: \+\+\+(?!\+)
27− pop: true
28− - match: (//).*$\n?
29− scope: comment.line.double-slash.asciidoc
30− - match: |-
31− (?x)^
32− (?= ([/+-.*_=]{4,})\s*$
33− | ([ \t]{1,})
34− | [=]{1,6}\s*+
35− | [ ]{,3}(?<marker>[-*_])([ ]{,2}\k<marker>){2,}[ \t]*+$
36− )
37− push:
38− - meta_scope: meta.block-level.asciidoc
39− - match: |-
40− (?x)^
41− (?! \1
42− | ([ \t]{1,})
43− | [=]{1,6}\s*+
44− | [ ]{,3}(?<marker>[-*_])([ ]{,2}\k<marker>){2,}[ \t]*+$
45− )
46− pop: true
47− - include: block_quote
48− - include: block_raw
49− - include: heading_inline
50− - include: heading-block
51− - include: separator
52− - match: '^[ ]{0,3}([*+-])(?=\s)'
53− captures:
54− 1: punctuation.definition.list_item.asciidoc
55− push:
56− - meta_scope: markup.list.unnumbered.asciidoc
57− - match: ^(?=\S)
58− captures:
59− 1: punctuation.definition.list_item.asciidoc
60− pop: true
61− - include: list-paragraph
62− - match: '^[ ]{0,3}[0-9]+(\.)(?=\s)'
63− captures:
64− 1: punctuation.definition.list_item.asciidoc
65− push:
66− - meta_scope: markup.list.numbered.asciidoc
67− - match: ^(?=\S)
68− captures:
69− 1: punctuation.definition.list_item.asciidoc
70− pop: true
71− - include: list-paragraph
72− - match: '^([/+-.*_=]){4,}\s*$'
73− push:
74− - meta_scope: comment.block.asciidoc
75− - match: '^\1{4,}\s*$'
76− pop: true
77− - match: '^([/+.]){4,}\s*$'
78− comment: asciidoc formatting is disabled inside certain blocks.
79− push:
80− - meta_scope: meta.disable-asciidoc
81− - match: '^[/+.]{4,}\s*$'
82− pop: true
83− - match: '^(?=\S)(?![=-]{3,}(?=$))(?!\.\S+)'
84− push:
85− - meta_scope: meta.paragraph.asciidoc
86− - match: '^(?:\s*$|(?=[ ]{,3}>.))|(?=[ \t]*\n)(?<=^===|^====|=====|^---|^----|-----)[ \t]*\n'
87− pop: true
88− - include: inline
89− - include: scope:text.html.basic
90− - match: '^(={3,})(?=[ \t]*$)'
91− scope: markup.heading.0.asciidoc
92− captures:
93− 1: punctuation.definition.heading.asciidoc
94− - match: '^(-{3,})(?=[ \t]*$)'
95− scope: markup.heading.1.asciidoc
96− captures:
97− 1: punctuation.definition.heading.asciidoc
98− - match: '^(~{3,})(?=[ \t]*$)'
99− scope: markup.heading.2.asciidoc
100− captures:
101− 1: punctuation.definition.heading.asciidoc
102− - match: '^(\^{3,})(?=[ \t]*$)'
103− scope: markup.heading.3.asciidoc
104− captures:
105− 1: punctuation.definition.heading.asciidoc
106− - match: '^(\+{3,})(?=[ \t]*$)'
107− scope: markup.heading.4.asciidoc
108− captures:
109− 1: punctuation.definition.heading.asciidoc
110− attribute-entry:
111− - match: '^:[-_. A-Za-z0-9]+:\s*(.*)\s*$'
112− scope: variable.other
113− attribute-reference:
114− - match: "{[-_. A-Za-z0-9]+}"
115− scope: variable.other
116− attribute-reference-predefined:
117− - match: "{(?i:amp|asciidoc-dir|asciidoc-file|asciidoc-version|author|authored|authorinitials|backend-docbook|backend-xhtml11|backend-html4|docbook-article|xhtml11-article|html4-article|docbook-book|xhtml11-book|html4-book|docbook-manpage|xhtml11-manpage|html4-manpage|backend|backslash|basebackend|brvbar|date|docdate|doctime|docname|docfile|docdir|doctitle|doctype-article|doctype-book|doctype-manpage|doctype|email|empty|encoding|filetype|firstname|gt|id|indir|infile|lastname|level|listindex|localdate|localtime|lt|manname|manpurpose|mantitle|manvolnum|middlename|nbsp|outdir|outfile|reftext|revision|sectnum|showcomments|title|two_colons|two_semicolons|user-dir|verbose)}"
118− scope: support.variable
119− block_quote:
120− - match: '^([/+-.*_=]){4,}\s*$'
121− push:
122− - meta_scope: comment.block.asciidoc
123− - match: '^\1{4,}\s*$'
124− pop: true
125− block_raw:
126− - match: '\G([ ]{4}|\t).*$\n?'
127− scope: markup.raw.block.asciidoc
128− bracket:
129− - match: '<(?![a-z/?\$!])'
130− comment: |
131− asciidoc will convert this for us. We match it so that the
132− HTML grammar will not mark it up as invalid.
133− scope: meta.other.valid-bracket.asciidoc
134− character-replacements:
135− - match: \(C\)|\(R\)|\(TM\)|--(?!-)|\.\.\.(?!\.)|->|<-|=>|<=
136− scope: constant.character.asciidoc
137− escape:
138− - match: '\\[-`*_#+.!(){}\[\]\\>:]'
139− scope: constant.character.escape.asciidoc
140− heading:
141− - match: '(?m)^(\S+)$([=-~^+])+\s*$'
142− scope: markup.heading.asciidoc
143− captures:
144− 1: punctuation.definition.heading.asciidoc
145− heading-block:
146− - match: ^\.(\w.*)$
147− scope: markup.heading.asciidoc
148− captures:
149− 1: punctuation.definition.heading.asciidoc
150− heading-blockattr:
151− - match: '^\[\[?(\w.*)\]$'
152− scope: markup.heading.asciidoc
153− captures:
154− 1: punctuation.definition.heading.asciidoc
155− heading_inline:
156− - match: '\G(={1,6})(?!=)\s*(?=\S)'
157− captures:
158− 1: punctuation.definition.heading.asciidoc
159− push:
160− - meta_scope: markup.heading.asciidoc
161− - meta_content_scope: entity.name.section.asciidoc
162− - match: \s*(=*)$\n?
163− captures:
164− 1: punctuation.definition.heading.asciidoc
165− pop: true
166− - include: inline
167− inline:
168− - include: line-break
169− - include: line-page-break
170− - include: line-ruler
171− - include: escape
172− - include: passthrough-macro-trippleplus-inline
173− - include: passthrough-macro-doubledollar-inline
174− - include: character-replacements
175− - include: bracket
176− - include: raw
177− - include: text-quote-single
178− - include: text-quote-double
179− - include: text-quote-other
180− - include: text-bold-unconstrained
181− - include: text-italic-unconstrained
182− - include: text-monospace-unconstrained
183− - include: text-unquoted-unconstrained
184− - include: text-bold
185− - include: text-italic
186− - include: text-monospace
187− - include: text-unquoted
188− - include: attribute-entry
189− - include: attribute-reference-predefined
190− - include: attribute-reference
191− line-break:
192− - match: (?<=\S)\s+\+$
193− scope: constant.character.escape.asciidoc
194− line-page-break:
195− - match: "^<{3,}$"
196− scope: constant.character.escape.asciidoc
197− line-ruler:
198− - match: "^'{3,}$"
199− scope: constant.character.escape.asciidoc
200− list-paragraph:
201− - match: \G\s+(?=\S)
202− push:
203− - meta_scope: meta.paragraph.list.asciidoc
204− - match: ^\s*$
205− pop: true
206− - include: inline
207− passthrough-macro-doubledollar-inline:
208− - match: '(?:\[.*\])?\$\$(?!\$).+\$\$(?!\$)'
209− scope: comment.block.passthrough.asciidoc
210− passthrough-macro-trippleplus-inline:
211− - match: '(?:\[.*\])?\+\+\+(?!\+).+\+\+\+(?!\+)'
212− scope: comment.block.passthrough.asciidoc
213− raw:
214− - match: '(`+)(?:[^`]|(?!(?<!`)\1(?!`))`)*+(\1)'
215− scope: markup.raw.inline.asciidoc
216− captures:
217− 1: punctuation.definition.raw.asciidoc
218− 2: punctuation.definition.raw.asciidoc
219− separator:
220− - match: '\G[ ]{,3}([-*_])([ ]{,2}\1){2,}[ \t]*$\n?'
221− scope: meta.separator.asciidoc
222− text-bold:
223− - match: (?<!\w)(\*)(?=\S)
224− captures:
225− 1: punctuation.definition.bold.asciidoc
226− push:
227− - meta_scope: markup.bold.asciidoc
228− - match: (?<=\S)(\1)(?!\w)
229− captures:
230− 1: punctuation.definition.bold.asciidoc
231− pop: true
232− text-bold-unconstrained:
233− - match: (\*\*)(?=\S)
234− captures:
235− 1: punctuation.definition.bold.asciidoc
236− push:
237− - meta_scope: markup.bold.asciidoc
238− - match: (?<=\S)(\1)
239− captures:
240− 1: punctuation.definition.bold.asciidoc
241− pop: true
242− text-italic:
243− - match: (?<!\w)('|_)(?=\S)
244− captures:
245− 1: punctuation.definition.italic.asciidoc
246− push:
247− - meta_scope: markup.italic.asciidoc
248− - match: (?<=\S)(\1)((?!\1)|(?=\1\1))(?!\w)
249− captures:
250− 1: punctuation.definition.italic.asciidoc
251− pop: true
252− text-italic-unconstrained:
253− - match: (__)(?=\S)
254− captures:
255− 1: punctuation.definition.italic.asciidoc
256− push:
257− - meta_scope: markup.italic.asciidoc
258− - match: (?<=\S)(\1)
259− captures:
260− 1: punctuation.definition.italic.asciidoc
261− pop: true
262− text-monospace:
263− - match: '(?<!\w)([\+`])[^\+]*(\1)(?!\w)'
264− scope: string.interpolated.asciidoc
265− text-monospace-unconstrained:
266− - match: (\+\+).*(\1)
267− scope: string.interpolated.asciidoc
268− text-quote-double:
269− - match: '(?<!\w)(?:\[.*\])?``(?!`).*''''(?!'')(?!\w)'
270− scope: string.quoted.double.asciidoc
271− text-quote-other:
272− - match: '(?<!\w)(?:\[.*\])?([~^]).*(\1)(?!\w)'
273− scope: string.quoted.single.asciidoc
274− text-quote-single:
275− - match: '(?<!\w)(?:\[.*\])?`(?!`).*''(?!'')(?!\w)'
276− comment: "TODO: Sub- and Superscript are really unconstrained"
277− scope: string.quoted.single.asciidoc
278− text-unquoted:
279− - match: (?<!\w)(#).*(\1)(?!\w)
280− scope: string.unquoted.asciidoc
281− text-unquoted-unconstrained:
282− - match: (##).*(\1)
283− scope: string.unquoted.asciidoc
assets/syntaxes/CMakedeleted−1

Submodule changed.

assets/syntaxes/CSVdeleted−1

Submodule changed.

assets/syntaxes/CSV.sublime-syntaxdeleted−46
@@ -1,46 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: Advanced CSV
5−file_extensions:
6− - csv
7− - tsv
8−scope: text.advanced_csv
9−contexts:
10− main:
11− - match: (\")
12− captures:
13− 1: string.quoted.double.advanced_csv
14− push:
15− - meta_scope: meta.quoted.advanced_csv
16− - match: (\")
17− captures:
18− 1: string.quoted.double.advanced_csv
19− pop: true
20− - include: main
21− - match: '(\[([+-]?\d*)(\:)?([+-]?\d*)(\,)?([+-]?\d*)(\:)?([+-]?\d*)\])?\s*([<>v^])?\s*(=)'
22− captures:
23− 1: keyword.operator.advanced_csv
24− 2: constant.numeric.formula.advanced_csv
25− 4: constant.numeric.formula.advanced_csv
26− 6: constant.numeric.formula.advanced_csv
27− 8: constant.numeric.formula.advanced_csv
28− 9: keyword.operator.advanced_csv
29− 10: keyword.operator.advanced_csv
30− push:
31− - meta_scope: meta.range.advanced_csv
32− - match: (?=(\")|$)
33− pop: true
34− - include: scope:source.python
35− - match: '(?<=^|,|\s|\")([0-9.eE+-]+)(?=$|,|\s|\")'
36− scope: meta.number.advanced_csv
37− captures:
38− 1: constant.numeric.advanced_csv
39− - match: '(?<=^|,|\s|\")([^, \t\"]+)(?=$|,|\s|\")'
40− scope: meta.nonnumber.advanced_csv
41− captures:
42− 1: storage.type.advanced_csv
43− - match: (\,)
44− scope: meta.delimiter.advanced_csv
45− captures:
46− 1: keyword.operator.advanced_csv
assets/syntaxes/Cabaldeleted−1

Submodule changed.

assets/syntaxes/Crystaldeleted−1

Submodule changed.

assets/syntaxes/Dartdeleted−1

Submodule changed.

assets/syntaxes/Dart.sublime-syntaxdeleted−369
@@ -1,369 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: Dart
5−file_extensions:
6− - dart
7−scope: source.dart
8−contexts:
9− main:
10− - match: ^(#!.*)$
11− scope: meta.preprocessor.script.dart
12− - match: ^\s*\b(library|import|export|part of|part)\b
13− captures:
14− 0: keyword.other.import.dart
15− push:
16− - meta_scope: meta.declaration.dart
17− - match: ;
18− captures:
19− 0: punctuation.terminator.dart
20− pop: true
21− - include: strings
22− - match: \b(as|show|hide|deferred)\b
23− scope: keyword.other.import.dart
24− - include: comments
25− - include: constants-and-special-vars
26− - include: annotations
27− - include: decl-typedef
28− - include: decl-class
29− - include: decl-enum
30− - include: decl-function
31− - include: keywords
32− - include: strings
33− annotations:
34− - match: '^(?:\s*)((@)([a-zA-Z0-9_]+))'
35− captures:
36− 1: annotation.dart
37− 2: entity.name.function.annotation.dart
38− 3: support.type.dart
39− comments:
40− - match: /\*\*/
41− scope: comment.block.empty.dart
42− captures:
43− 0: punctuation.definition.comment.dart
44− - include: comments-inline
45− comments-inline:
46− - match: /\*
47− push:
48− - meta_scope: comment.block.dart
49− - match: \*/
50− pop: true
51− - include: scope:text.dart-doccomments
52− - match: (///)
53− captures:
54− 1: marker.dart
55− push:
56− - meta_scope: comment.line.triple-slash.dart
57− - match: $
58− pop: true
59− - include: scope:text.dart-doccomments
60− - match: (//)
61− captures:
62− 1: marker.dart
63− push:
64− - meta_scope: comment.line.double-slash.dart
65− - match: $
66− pop: true
67− - include: scope:text.dart-doccomments
68− constants-and-special-vars:
69− - match: \b(true|false|null)\b
70− scope: constant.language.dart
71− - match: \b(this|super)\b
72− scope: variable.language.dart
73− - match: '\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b'
74− scope: constant.numeric.dart
75− decl-class:
76− - match: \bclass\b
77− captures:
78− 0: keyword.control.new.dart
79− push:
80− - meta_scope: meta.declaration.class.dart
81− - match: "(?={)"
82− pop: true
83− - include: keywords
84− - match: "[A-Za-z_][A-Za-z0-9_]*"
85− scope: class.name.dart
86− decl-enum:
87− - match: \benum\b
88− captures:
89− 0: keyword.declaration.dart
90− push:
91− - meta_scope: meta.declaration.enum.dart
92− - match: "(?={)"
93− pop: true
94− - include: keywords
95− - match: "[A-Za-z_][A-Za-z0-9_]*"
96− scope: enum.name.dart
97− decl-function:
98− - match: ^\s*(?:\b(void|bool|num|int|double|dynamic|var|String|List|Map)\b)\s+(get)\s+(\w+)\s+(?==>)
99− comment: A getter with a primitive return type.
100− scope: meta.declaration.function.dart
101− captures:
102− 1: storage.type.primitive.dart
103− 2: keyword.declaration.dart
104− 3: function.name.dart
105− - match: ^\s*(?:\b(\w+)\b\s+)?(get)\s+(\w+)\s+(?==>)
106− comment: A getter with a user-defined return type or no return type.
107− scope: meta.declaration.function.dart
108− captures:
109− 1: type.user-defined.dart
110− 2: keyword.declaration.dart
111− 3: function.name.dart
112− - match: ^\s*(set)\s+(\w+)(?=\()
113− comment: A setter.
114− captures:
115− 1: keyword.declaration.dart
116− 2: function.name.dart
117− push:
118− - meta_scope: meta.declaration.function.dart
119− - match: \)
120− pop: true
121− - include: comments-inline
122− - include: decl-function-parameter
123− - include: strings
124− - include: keywords
125− - match: ^\s*(?:\b(void|bool|num|int|double|dynamic|var|String|List|Map)\b)\s+(\w+)(?=\()
126− comment: A function with a primitive return type.
127− captures:
128− 1: storage.type.primitive.dart
129− 2: function.name.dart
130− push:
131− - meta_scope: meta.declaration.function.dart
132− - match: \)
133− pop: true
134− - include: comments-inline
135− - include: decl-function-parameter
136− - include: strings
137− - include: keywords
138− - match: ^\s*(?:\b(return)\b)\s+(\w+)(?=\()
139− comment: A function invocation after 'return'
140− captures:
141− 1: keyword.control.dart
142− 2: function.name.dart
143− push:
144− - meta_scope: meta.invocation.function.dart
145− - match: \)
146− pop: true
147− - include: comments-inline
148− - include: decl-function-parameter
149− - include: strings
150− - include: keywords
151− - match: ^\s*\b(new)\b\s+(\w+)(?=\()
152− comment: A class instantiation after 'new'
153− captures:
154− 1: keyword.declaration.dart
155− 2: function.name.dart
156− push:
157− - meta_scope: meta.invocation.function.dart
158− - match: \)
159− pop: true
160− - include: comments-inline
161− - include: decl-function-parameter
162− - include: strings
163− - include: keywords
164− decl-function-parameter:
165− - include: constants-and-special-vars
166− - match: (?:\b(void|bool|num|int|double|dynamic|var|String|List|Map)\b)\s+(\w+)(?=\()
167− comment: A function with a primitive return type.
168− captures:
169− 1: storage.type.primitive.dart
170− 2: function.name.dart
171− push:
172− - meta_scope: meta.parameter.function.dart
173− - match: \)
174− pop: true
175− - include: decl-function-parameter
176− - include: strings
177− - include: keywords
178− - match: \b(new)\b\s+(\w+)(?=\()
179− comment: A class instantiation after 'new'
180− captures:
181− 1: keyword.declaration.dart
182− 2: function.name.dart
183− push:
184− - meta_scope: meta.invocation.function.dart
185− - match: \)
186− pop: true
187− - include: decl-function-parameter
188− - include: strings
189− - include: keywords
190− - match: (?:\b(\w+)\b)\s+(\w+)(?=\()
191− comment: A function with a user-defined return type.
192− captures:
193− 1: type.user-defined.dart
194− 2: function.name.dart
195− push:
196− - meta_scope: meta.parameter.function.dart
197− - match: \)
198− pop: true
199− - include: decl-function-parameter
200− - include: strings
201− - include: keywords
202− - match: (\w+)(?=\()
203− comment: A function with no return type.
204− captures:
205− 1: function.name.dart
206− push:
207− - meta_scope: meta.parameter.function.dart
208− - match: \)
209− pop: true
210− - include: decl-function-parameter
211− - include: strings
212− - include: keywords
213− decl-typedef:
214− - match: typedef
215− captures:
216− 0: keyword.control.new.dart
217− push:
218− - meta_scope: meta.declaration.typedef.dart
219− - match: ;
220− captures:
221− 0: punctuation.terminator.dart
222− pop: true
223− - match: '(?:\b(void|bool|num|int|double|dynamic|var|String|List|Map)\b|([a-zA-Z_][a-zA-Z0-9_]*))\s+([a-zA-Z_][a-zA-Z0-9_]+)'
224− captures:
225− 1: storage.type.primitive.dart
226− 2: typedef.return.dart
227− 3: typedef.name.dart
228− - match: \(
229− push:
230− - meta_scope: typedef.params.dart
231− - match: \)
232− pop: true
233− - include: keywords
234− keywords:
235− - match: \bassert\b
236− scope: keyword.control.assert.dart
237− - match: \bas\b
238− scope: keyword.cast.dart
239− - match: \b(try|catch|finally|throw|on|rethrow)\b
240− scope: keyword.control.catch-exception.dart
241− - match: \s+\?\s+|\s+:\s+
242− scope: keyword.control.ternary.dart
243− - match: \b(break|case|continue|default|do|else|for|if|in|return|switch|while)\b
244− scope: keyword.control.dart
245− - match: \b(async\*|async|await\*|await|yield)\b
246− scope: keyword.control.async.dart
247− - match: \b(new)\b
248− scope: keyword.control.new.dart
249− - match: \b(abstract|extends|external|factory|implements|with|interface|get|native|operator|set|typedef)\b
250− scope: keyword.declaration.dart
251− - match: \b(is\!?)\b
252− scope: keyword.operator.dart
253− - match: (<<|>>>?|~|\^|\||&)
254− scope: keyword.operator.bitwise.dart
255− - match: ((&|\^|\||<<|>>>?)=)
256− scope: keyword.operator.assignment.bitwise.dart
257− - match: (===?|!==?|<=?|>=?)
258− scope: keyword.operator.comparison.dart
259− - match: '(([+*/%-]|\~)=)'
260− scope: keyword.operator.assignment.arithmetic.dart
261− - match: (=)
262− scope: keyword.operator.assignment.dart
263− - match: (\-\-|\+\+)
264− scope: keyword.operator.increment-decrement.dart
265− - match: (\-|\+|\*|\/|\~\/|%)
266− scope: keyword.operator.arithmetic.dart
267− - match: (!|&&|\|\|)
268− scope: keyword.operator.logical.dart
269− - match: ;
270− scope: punctuation.terminator.dart
271− - match: \b(static|final|const)\b
272− scope: storage.modifier.dart
273− - match: \b(?:void|bool|num|int|double|dynamic|var|String|List|Map)\b
274− scope: storage.type.primitive.dart
275− regexp:
276− - match: '\\[^''"]'
277− scope: constant.character.escaped.regex.dart
278− - match: \(
279− push:
280− - meta_content_scope: meta.capture.regex.dart
281− - match: \)
282− pop: true
283− - match: \?(:|=|!)
284− scope: ignore.capture.regex.dart
285− - match: \*|\+|\?|\.|\|
286− scope: keyword.other.regex.dart
287− - match: \^|\$
288− scope: keyword.other.regex.dart
289− - match: \.
290− scope: constant.other.regex.dart
291− - match: '\[(\^)?'
292− captures:
293− 1: keyword.other.negation.regex.dart
294− push:
295− - meta_scope: constant.character.range.regex.dart
296− - match: '\]'
297− pop: true
298− - match: '\\[^"'']'
299− scope: constant.character.escaped.regex.dart
300− - match: '\{(?:\d+)?,(?:\d+)?\}'
301− scope: keyword.other.regex.dart
302− string-interp:
303− - match: '(\$)(\{)'
304− captures:
305− 1: keyword.other.dart
306− 2: keyword.other.dart
307− push:
308− - meta_scope: interpolation.dart
309− - meta_content_scope: source.dart
310− - match: '(\})'
311− captures:
312− 1: keyword.other.dart
313− pop: true
314− - include: main
315− - match: (\$)(\w+)
316− captures:
317− 1: keyword.other.dart
318− 2: variable.parameter.dart
319− - match: \\.
320− scope: constant.character.escape.dart
321− strings:
322− - match: (?<!r)"""
323− push:
324− - meta_scope: string.interpolated.triple.double.dart
325− - match: '"""(?!")'
326− pop: true
327− - include: string-interp
328− - match: (?<!r)'''
329− push:
330− - meta_scope: string.interpolated.triple.single.dart
331− - match: "'''(?!')"
332− pop: true
333− - include: string-interp
334− - match: r"""
335− push:
336− - meta_scope: string.quoted.triple.double.dart
337− - match: '"""(?!")'
338− pop: true
339− - match: r'''
340− push:
341− - meta_scope: string.quoted.triple.single.dart
342− - match: "'''(?!')"
343− pop: true
344− - match: (?<!\\|r)"
345− push:
346− - meta_scope: string.interpolated.double.dart
347− - match: '"'
348− pop: true
349− - match: \n
350− scope: invalid.string.newline
351− - include: string-interp
352− - match: r"
353− push:
354− - meta_scope: string.quoted.double.dart
355− - match: '"'
356− pop: true
357− - include: regexp
358− - match: (?<!\|r)'
359− push:
360− - meta_scope: string.interpolated.single.dart
361− - match: "'"
362− pop: true
363− - include: string-interp
364− - match: r'
365− push:
366− - meta_scope: string.quoted.single.dart
367− - match: "'"
368− pop: true
369− - include: regexp
assets/syntaxes/DotENVdeleted−1

Submodule changed.

assets/syntaxes/Elixirdeleted−1

Submodule changed.

assets/syntaxes/Elmdeleted−1

Submodule changed.

assets/syntaxes/FSharpdeleted−1

Submodule changed.

assets/syntaxes/FSharp.sublime-syntaxdeleted−672
@@ -1,672 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: "F#"
5−file_extensions:
6− - fs
7− - fsi
8− - fsx
9−scope: source.fsharp
10−contexts:
11− main:
12− - include: compiler_directives
13− - include: comments
14− - include: constants
15− - include: strings
16− - include: chars
17− - include: double_tick
18− - include: definition
19− - include: abstract_definition
20− - include: attributes
21− - include: modules
22− - include: anonymous_functions
23− - include: du_declaration
24− - include: record_declaration
25− - include: records
26− - include: strp_inlined
27− - include: keywords
28− - include: cexprs
29− - include: text
30− abstract_definition:
31− - match: '\b(abstract)\s+(member)?(\s+\[\<.*\>\])?\s*([_[:alpha:]0-9,\._`\s]+)(:)'
32− captures:
33− 1: keyword.fsharp
34− 2: keyword.fsharp
35− 3: support.function.attribute.fsharp
36− 5: keyword.fsharp
37− push:
38− - meta_scope: abstract.definition.fsharp
39− - match: \s*(with)\b|=|$
40− captures:
41− 1: keyword.fsharp
42− pop: true
43− - include: comments
44− - include: common_declaration
45− - match: '(\?{0,1})([[:alpha:]0-9''`^._ ]+)\s*(:)(\s*([[:alpha:]0-9''`^._ ]+)){0,1}'
46− captures:
47− 1: keyword.symbol.fsharp
48− 2: variable.parameter.fsharp
49− 3: keyword.symbol.fsharp
50− 4: entity.name.type.fsharp
51− - match: '(?!with|get|set\b)\b([\w0-9''`^._]+)'
52− captures:
53− 1: entity.name.type.fsharp
54− - include: keywords
55− anonymous_functions:
56− - match: \b(fun)\b
57− captures:
58− 1: keyword.fsharp
59− push:
60− - meta_scope: function.anonymous
61− - match: (->)
62− captures:
63− 1: keyword.fsharp
64− pop: true
65− - include: comments
66− - match: (\()
67− captures:
68− 1: keyword.symbol.fsharp
69− push:
70− - match: \s*(?=(->))
71− captures:
72− 1: keyword.symbol.fsharp
73− pop: true
74− - include: member_declaration
75− - include: variables
76− attributes:
77− - match: '\[\<'
78− push:
79− - meta_scope: support.function.attribute.fsharp
80− - match: '\>\]|\]'
81− pop: true
82− - include: main
83− cexprs:
84− - match: '\b(async|seq|promise|task|maybe|asyncMaybe|controller|scope|application|pipeline)\s*\{'
85− scope: cexpr.fsharp
86− captures:
87− 0: keyword.fsharp
88− chars:
89− - match: ('\\?.')
90− scope: char.fsharp
91− captures:
92− 1: string.quoted.single.fsharp
93− comments:
94− - match: (\(\*(?!\)))
95− captures:
96− 1: comment.block.fsharp
97− push:
98− - meta_scope: comment.block.fsharp
99− - match: (\*\))
100− captures:
101− 1: comment.block.fsharp
102− pop: true
103− - match: //.*$
104− scope: comment.line.double-slash.fsharp
105− common_binding_definition:
106− - include: comments
107− - include: attributes
108− - match: (:)\s*(\()\s*(static member|member)
109− captures:
110− 1: keyword.symbol.fsharp
111− 2: keyword.symbol.fsharp
112− 3: keyword.fsharp
113− push:
114− - match: (\))\s*((?=,)|(?=\=))
115− captures:
116− 1: keyword.symbol.fsharp
117− pop: true
118− - match: '(\^[[:alpha:]0-9''._]+)'
119− captures:
120− 1: entity.name.type.fsharp
121− - include: variables
122− - include: keywords
123− - match: (:)\s*(\()
124− captures:
125− 1: keyword.symbol.fsharp
126− 2: keyword.symbol.fsharp
127− push:
128− - match: '(\)\s*(([?[:alpha:]0-9''`^._ ]*)))'
129− captures:
130− 1: keyword.symbol.fsharp
131− 2: entity.name.type.fsharp
132− pop: true
133− - include: tuple_signature
134− - match: '(:)\s*(\^[[:alpha:]0-9''._]+)\s*(when)'
135− captures:
136− 1: keyword.symbol.fsharp
137− 2: entity.name.type.fsharp
138− 3: keyword.fsharp
139− push:
140− - match: (?=:)
141− captures:
142− 1: keyword.symbol.fsharp
143− pop: true
144− - match: \b(and|when|or)\b
145− scope: keyword.fsharp
146− - match: "([[:alpha:]0-9'^._]+)"
147− comment: Because we first capture the keywords, we can capture what looks like a word and assume it's an entity definition
148− captures:
149− 1: entity.name.type.fsharp
150− - match: (\(|\))
151− scope: keyword.symbol.fsharp
152− - match: '(:)\s*([?[:alpha:]0-9''`^._ ]+)'
153− captures:
154− 1: keyword.symbol.fsharp
155− 2: entity.name.type.fsharp
156− - match: '(->)\s*(\()?\s*([?[:alpha:]0-9''`^._ ]+)*'
157− captures:
158− 1: keyword.symbol.fsharp
159− 2: keyword.symbol.fsharp
160− 3: entity.name.type.fsharp
161− - match: (\*)\s*(\()
162− captures:
163− 1: keyword.symbol.fsharp
164− 2: keyword.symbol.fsharp
165− push:
166− - match: '(\)\s*(([?[:alpha:]0-9''`^._ ]+))+)'
167− captures:
168− 1: keyword.symbol.fsharp
169− 2: entity.name.type.fsharp
170− pop: true
171− - include: tuple_signature
172− - match: '(\*)(\s*([?[:alpha:]0-9''`^._ ]+))*'
173− captures:
174− 1: keyword.symbol.fsharp
175− 2: entity.name.type.fsharp
176− - match: '(<(?![[:space:]]*\)))'
177− captures:
178− 1: keyword.symbol.fsharp
179− push:
180− - match: ((?<!:)>)
181− captures:
182− 1: keyword.symbol.fsharp
183− pop: true
184− - include: generic_declaration
185− - match: "({)"
186− captures:
187− 1: keyword.symbol.fsharp
188− push:
189− - match: "(})"
190− captures:
191− 1: keyword.symbol.fsharp
192− pop: true
193− - include: record_signature
194− - include: definition
195− - include: variables
196− - include: keywords
197− common_declaration:
198− - match: '\s*(->)\s*([[:alpha:]0-9''`^._ ]+)(<)'
199− captures:
200− 1: keyword.symbol.fsharp
201− 2: entity.name.type.fsharp
202− 3: keyword.symbol.fsharp
203− push:
204− - match: (>)
205− captures:
206− 1: keyword.symbol.fsharp
207− pop: true
208− - match: "([[:alpha:]0-9'`^._ ]+)"
209− captures:
210− 1: entity.name.type.fsharp
211− - include: keywords
212− - match: '\s*(->)\s*(?!with|get|set\b)\b([\w0-9''`^._]+)'
213− captures:
214− 1: keyword.symbol.fsharp
215− 2: entity.name.type.fsharp
216− - match: '(\?{0,1})([[:alpha:]0-9''`^._ ]+)\s*(:)(\s*([?[:alpha:]0-9''`^._ ]+)(<))'
217− captures:
218− 1: keyword.symbol.fsharp
219− 2: variable.parameter.fsharp
220− 3: keyword.symbol.fsharp
221− 4: keyword.symbol.fsharp
222− 5: entity.name.type.fsharp
223− push:
224− - match: (>)
225− captures:
226− 1: keyword.symbol.fsharp
227− pop: true
228− - match: "([[:alpha:]0-9'`^._ ]+)"
229− captures:
230− 1: entity.name.type.fsharp
231− - include: keywords
232− compiler_directives:
233− - match: \s?(#if|#elif|#else|#elseif|#endif|#light|#nowarn)
234− scope: compiler_directive.fsharp
235− captures:
236− constants:
237− - match: \(\)
238− scope: constant.language.unit.fsharp
239− - match: '\b-?[0-9][0-9_]*((\.([0-9][0-9_]*([eE][+-]??[0-9][0-9_]*)?)?)|([eE][+-]??[0-9][0-9_]*))'
240− scope: constant.numeric.floating-point.fsharp
241− - match: '\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))'
242− scope: constant.numeric.integer.nativeint.fsharp
243− - match: \b(true|false|null|unit)\b
244− scope: constant.others.fsharp
245− definition:
246− - match: '\b(let mutable|static let mutable|let inline|let|member val|static member inline|static member|default|member|override|let!)(\s+rec|mutable)?(\s+\[\<.*\>\])?\s*(private|internal|public)?\s+(\[[^-=]*\]|[_[:alpha:]]([_[:alpha:]0-9,\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9,\._`\s]+|(?<=,)\s)*)?'
247− captures:
248− 1: keyword.fsharp
249− 2: keyword.fsharp
250− 3: support.function.attribute.fsharp
251− 4: keyword.fsharp
252− 5: variable.fsharp
253− push:
254− - meta_scope: binding.fsharp
255− - match: \s*(with\b|=|\n+=|(?<=\=))
256− captures:
257− 1: keyword.fsharp
258− pop: true
259− - include: common_binding_definition
260− - match: '\b(static val mutable|val mutable|val)(\s+rec|mutable)?(\s+\[\<.*\>\])?\s*(private|internal|public)?\s+(\[[^-=]*\]|[_[:alpha:]]([_[:alpha:]0-9,\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9,\._`\s]+|(?<=,)\s)*)?'
261− captures:
262− 1: keyword.fsharp
263− 2: keyword.fsharp
264− 3: support.function.attribute.fsharp
265− 4: keyword.fsharp
266− 5: variable.fsharp
267− push:
268− - meta_scope: binding.fsharp
269− - match: \n$
270− pop: true
271− - include: common_binding_definition
272− double_tick:
273− - match: (``)(.*)(``)
274− scope: variable.other.binding.fsharp
275− captures:
276− 1: string.quoted.single.fsharp
277− 2: variable.other.binding.fsharp
278− 3: string.quoted.single.fsharp
279− du_declaration:
280− - match: \b(of)\b
281− captures:
282− 1: keyword.fsharp
283− push:
284− - meta_scope: du_declaration.fsharp
285− - match: $|(\|)
286− captures:
287− 1: keyword.symbol.fsharp
288− pop: true
289− - include: comments
290− - match: '([[:alpha:]0-9''`<>^._]+|``[[:alpha:]0-9'' <>^._]+``)\s*(:)\s*([[:alpha:]0-9''`<>^._]+|``[[:alpha:]0-9'' <>^._]+``)'
291− captures:
292− 1: variable.parameter.fsharp
293− 2: keyword.symbol.fsharp
294− 3: entity.name.type.fsharp
295− - match: "([[:alpha:]0-9'`^._]+)|``([[:alpha:]0-9'^._ ]+)``"
296− captures:
297− 1: entity.name.type.fsharp
298− - include: keywords
299− generic_declaration:
300− - match: (:)\s*(\()\s*(static member|member)
301− captures:
302− 1: keyword.symbol.fsharp
303− 2: keyword.symbol.fsharp
304− 3: keyword.fsharp
305− push:
306− - match: (\))
307− captures:
308− 1: keyword.symbol.fsharp
309− pop: true
310− - match: (\()
311− captures:
312− 1: keyword.symbol.fsharp
313− push:
314− - match: (\))
315− captures:
316− 1: keyword.symbol.fsharp
317− pop: true
318− - include: member_declaration
319− - match: '((''|\^)[[:alpha:]0-9''._]+)'
320− captures:
321− 1: entity.name.type.fsharp
322− - include: variables
323− - include: keywords
324− - match: \b(private|to|public|internal|function|yield!|yield|class|exception|match|delegate|of|new|in|as|if|then|else|elif|for|begin|end|inherit|do|let\!|return\!|return|interface|with|abstract|property|union|enum|member|try|finally|and|when|use|use\!|struct|while|mutable)(?!')\b
325− scope: keyword.fsharp
326− - match: ":"
327− scope: keyword.fsharp
328− - include: constants
329− - match: '((''|\^)[[:alpha:]0-9''._]+)'
330− captures:
331− 1: entity.name.type.fsharp
332− - match: (<)
333− captures:
334− 1: keyword.symbol.fsharp
335− push:
336− - match: (>)
337− captures:
338− 1: keyword.symbol.fsharp
339− pop: true
340− - match: '((''|\^)[[:alpha:]0-9''._]+)'
341− captures:
342− 1: entity.name.type.fsharp
343− - include: tuple_signature
344− - include: generic_declaration
345− - match: '(?!when|and|or\b)\b([\w0-9''`^._]+)'
346− captures:
347− 1: entity.name.type.fsharp
348− - match: (\|)
349− captures:
350− 1: keyword.symbol.fsharp
351− - include: keywords
352− keywords:
353− - match: \b(private|to|public|internal|function|yield!|yield|class|exception|match|delegate|of|new|in|as|if|then|else|elif|for|begin|end|inherit|do|let\!|return\!|return|interface|with|abstract|property|union|enum|member|try|finally|and|when|or|use|use\!|struct|while|mutable)(?!')\b
354− scope: keyword.fsharp
355− - match: '(&&&|\|\|\||\^\^\^|~~~|<<<|>>>|\|>|\->|\<\-|:>|:\?>|:|\[|\]|\;|<>|=|@|\|\||&&|{|}|\||_|\.\.|\,|\+|\-|\*|\/|\^|\!|\>|\>\=|\>\>|\<|\<\=|\(|\)|\<\<)'
356− scope: keyword.symbol.fsharp
357− member_declaration:
358− - include: comments
359− - include: common_declaration
360− - match: (:)\s*(\()\s*(static member|member)
361− captures:
362− 1: keyword.symbol.fsharp
363− 2: keyword.symbol.fsharp
364− 3: keyword.fsharp
365− push:
366− - match: (\))\s*((?=,)|(?=\=))
367− captures:
368− 1: keyword.symbol.fsharp
369− pop: true
370− - match: (\()
371− captures:
372− 1: keyword.symbol.fsharp
373− push:
374− - match: (\))
375− captures:
376− 1: keyword.symbol.fsharp
377− pop: true
378− - include: member_declaration
379− - match: '(\^[[:alpha:]0-9''._]+)'
380− captures:
381− 1: entity.name.type.fsharp
382− - include: variables
383− - include: keywords
384− - match: '(\^[[:alpha:]0-9''._]+)'
385− captures:
386− 1: entity.name.type.fsharp
387− - match: \b(and|when|or)\b
388− scope: keyword.fsharp
389− - match: (\(|\))
390− scope: keyword.symbol.fsharp
391− - match: '(\?{0,1})([[:alpha:]0-9''`^._]+|``[[:alpha:]0-9''`^:,._ ]+``)\s*(:{0,1})(\s*([?[:alpha:]0-9''`<>._ ]+)){0,1}'
392− captures:
393− 1: keyword.symbol.fsharp
394− 2: variable.parameter.fsharp
395− 3: keyword.symbol.fsharp
396− 4: entity.name.type.fsharp
397− - include: keywords
398− modules:
399− - match: '\b(namespace|module)\s*(public|internal|private)?\s+([[:alpha:]][[:alpha:]0-9''_. ]*)'
400− captures:
401− 1: keyword.fsharp
402− 2: keyword.fsharp
403− 3: entity.name.section.fsharp
404− push:
405− - meta_scope: entity.name.section.fsharp
406− - match: (\s?=|\s|$)
407− captures:
408− 1: keyword.symbol.fsharp
409− pop: true
410− - match: '(\.)([A-Z][[:alpha:]0-9''_]*)'
411− scope: entity.name.section.fsharp
412− captures:
413− 1: punctuation.separator.namespace-reference.fsharp
414− 2: entity.name.section.fsharp
415− - match: '\b(open)\s+([[:alpha:]][[:alpha:]0-9''_]*)(?=(\.[A-Z][[:alpha:]0-9_]*)*)'
416− captures:
417− 1: keyword.fsharp
418− 2: entity.name.section.fsharp
419− push:
420− - meta_scope: namespace.open.fsharp
421− - match: (\s|$)
422− pop: true
423− - match: '(\.)([[:alpha:]][[:alpha:]0-9''_]*)'
424− scope: entity.name.section.fsharp
425− captures:
426− 1: punctuation.separator.namespace-reference.fsharp
427− 2: entity.name.section.fsharp
428− - match: '^\s*(module)\s+([A-Z][[:alpha:]0-9''_]*)\s*(=)\s*([A-Z][[:alpha:]0-9''_]*)'
429− captures:
430− 1: keyword.fsharp
431− 2: entity.name.type.namespace.fsharp
432− 3: punctuation.separator.namespace-definition.fsharp
433− 4: entity.name.section.fsharp
434− push:
435− - meta_scope: namespace.alias.fsharp
436− - match: (\s|$)
437− pop: true
438− - match: '(\.)([A-Z][[:alpha:]0-9''_]*)'
439− scope: entity.name.section.fsharp
440− captures:
441− 1: punctuation.separator.namespace-reference.fsharp
442− 2: entity.name.section.fsharp
443− record_declaration:
444− - match: '(\{)'
445− captures:
446− 1: keyword.symbol.fsharp
447− push:
448− - match: '(?<=\})'
449− pop: true
450− - include: comments
451− - match: '(((mutable)\s[[:alpha:]]+)|[[:alpha:]0-9''`<>^._]*)\s*((?<!:):(?!:))\s*'
452− captures:
453− 3: keyword.fsharp
454− 4: keyword.symbol.fsharp
455− push:
456− - match: '$|(;|\})'
457− captures:
458− 1: keyword.symbol.fsharp
459− pop: true
460− - include: comments
461− - match: "([[:alpha:]0-9'`^_ ]+)"
462− captures:
463− 1: entity.name.type.fsharp
464− - include: keywords
465− - include: compiler_directives
466− - include: constants
467− - include: strings
468− - include: chars
469− - include: double_tick
470− - include: definition
471− - include: attributes
472− - include: anonymous_functions
473− - include: keywords
474− - include: cexprs
475− - include: text
476− record_signature:
477− - match: "[[:alpha:]0-9'`^_ ]+(=)([[:alpha:]0-9'`^_ ]+)"
478− captures:
479− 1: keyword.symbol.fsharp
480− 2: variable.parameter.fsharp
481− - match: "({)"
482− captures:
483− 1: keyword.symbol.fsharp
484− push:
485− - match: "(})"
486− captures:
487− 1: keyword.symbol.fsharp
488− pop: true
489− - match: "[[:alpha:]0-9'`^_ ]+(=)([[:alpha:]0-9'`^_ ]+)"
490− captures:
491− 1: keyword.symbol.fsharp
492− 2: variable.parameter.fsharp
493− - include: record_signature
494− - include: keywords
495− records:
496− - match: '\b(type)[\s]+(private|internal|public)?\s*'
497− captures:
498− 1: keyword.fsharp
499− 2: keyword.fsharp
500− push:
501− - meta_scope: record.fsharp
502− - match: '\s*((with)|((as)\s+([[:alpha:]0-9'']+))|(=)|[\n=]|(\(\)))'
503− captures:
504− 2: keyword.fsharp
505− 3: keyword.fsharp
506− 4: keyword.fsharp
507− 5: variable.parameter.fsharp
508− 6: keyword.symbol.fsharp
509− 7: constant.language.unit.fsharp
510− pop: true
511− - include: comments
512− - include: attributes
513− - match: "([[:alpha:]0-9'^._]+|``[[:alpha:]0-9'`^:,._ ]+``)"
514− captures:
515− 1: entity.name.type.fsharp
516− - match: (<)
517− captures:
518− 1: keyword.fsharp
519− push:
520− - match: ((?<!:)>)
521− captures:
522− 1: keyword.fsharp
523− pop: true
524− - match: '((''|\^)``[[:alpha:]0-9`^:,._ ]+``|(''|\^)[[:alpha:]0-9`^:._]+)'
525− captures:
526− 1: entity.name.type.fsharp
527− - match: \b(interface|with|abstract|and|when|or|not|struct|equality|comparison|unmanaged|delegate|enum)\b
528− scope: keyword.fsharp
529− - match: (\()
530− captures:
531− 1: keyword.symbol.fsharp
532− push:
533− - match: (\))
534− captures:
535− 1: keyword.symbol.fsharp
536− pop: true
537− - match: (static member|member|new)
538− captures:
539− 1: keyword.fsharp
540− - include: common_binding_definition
541− - match: '([\w0-9''`^._]+)'
542− captures:
543− 1: entity.name.type.fsharp
544− - include: keywords
545− - match: \s*(private|internal|public)
546− captures:
547− 1: keyword.symbol.fsharp
548− 2: keyword.fsharp
549− - match: (\()
550− captures:
551− 1: keyword.symbol.fsharp
552− push:
553− - match: '\s*(?=(=)|[\n=]|(\(\))|(as))'
554− captures:
555− 1: keyword.symbol.fsharp
556− pop: true
557− - include: member_declaration
558− - include: keywords
559− string_formatter:
560− - match: (%0?-?(\d+)?((a|t)|(\.\d+)?(f|F|e|E|g|G|M)|(b|c|s|d|i|x|X|o|u)|(s|b|O)|(\+?A)))
561− scope: entity.name.type.format.specifier.fsharp
562− captures:
563− 1: keyword.format.specifier.fsharp
564− strings:
565− - match: '(?=[^\\])(@")'
566− captures:
567− 1: punctuation.definition.string.begin.fsharp
568− push:
569− - meta_scope: string.quoted.literal.fsharp
570− - match: (")(?!")
571− captures:
572− 1: punctuation.definition.string.end.fsharp
573− pop: true
574− - match: '"(")'
575− scope: constant.character.string.escape.fsharp
576− - match: '(?=[^\\])(""")'
577− captures:
578− 1: punctuation.definition.string.begin.fsharp
579− push:
580− - meta_scope: string.quoted.triple.fsharp
581− - match: (""")
582− captures:
583− 1: punctuation.definition.string.end.fsharp
584− pop: true
585− - include: string_formatter
586− - match: '(?=[^\\])(")'
587− captures:
588− 1: punctuation.definition.string.begin.fsharp
589− push:
590− - meta_scope: string.quoted.double.fsharp
591− - match: (")
592− captures:
593− 1: punctuation.definition.string.end.fsharp
594− pop: true
595− - match: '\\$[ \t]*'
596− scope: punctuation.separator.string.ignore-eol.fsharp
597− - match: '\\([\\''''ntbr]|u[a-fA-F0-9]{4}|u[a-fA-F0-9]{8})'
598− scope: constant.character.string.escape.fsharp
599− - match: '\\(?![\\''''ntbr]|u[a-fA-F0-9]{4}|u[a-fA-F0-9]{8}).'
600− scope: invalid.illeagal.character.string.fsharp
601− - include: string_formatter
602− strp_inlined:
603− - match: (\()
604− captures:
605− 1: keyword.symbol.fsharp
606− push:
607− - match: (\))
608− captures:
609− 1: keyword.symbol.fsharp
610− pop: true
611− - include: strp_inlined_body
612− strp_inlined_body:
613− - include: comments
614− - include: anonymous_functions
615− - match: '(\^[[:alpha:]0-9''._]+)'
616− captures:
617− 1: entity.name.type.fsharp
618− - match: \b(and|when|or)\b
619− scope: keyword.fsharp
620− - match: (\()
621− captures:
622− 1: keyword.symbol.fsharp
623− push:
624− - match: (\))
625− captures:
626− 1: keyword.symbol.fsharp
627− pop: true
628− - include: strp_inlined_body
629− - match: '(static member|member)\s*([[:alpha:]0-9''`<>^._]+|``[[:alpha:]0-9'' <>^._]+``)\s*(:)'
630− captures:
631− 1: keyword.fsharp
632− 2: variable.fsharp
633− 3: keyword.symbol.fsharp
634− - include: compiler_directives
635− - include: constants
636− - include: strings
637− - include: chars
638− - include: double_tick
639− - include: keywords
640− - include: text
641− - include: definition
642− - include: attributes
643− - include: keywords
644− - include: cexprs
645− - include: text
646− text:
647− - match: \\
648− scope: text.fsharp
649− tuple_signature:
650− - match: "(([?[:alpha:]0-9'`^._ ]+))+"
651− captures:
652− 1: entity.name.type.fsharp
653− - match: (\()
654− captures:
655− 1: keyword.symbol.fsharp
656− push:
657− - match: (\))
658− captures:
659− 1: keyword.symbol.fsharp
660− pop: true
661− - match: "(([?[:alpha:]0-9'`^._ ]+))+"
662− captures:
663− 1: entity.name.type.fsharp
664− - include: tuple_signature
665− - include: keywords
666− variables:
667− - match: \(\)
668− scope: constant.language.unit.fsharp
669− - match: '(\?{0,1})(``[[:alpha:]0-9''`^:,._ ]+``|[[:alpha:]0-9''`<>^._ ]\w*)'
670− captures:
671− 1: keyword.symbol.fsharp
672− 2: variable.parameter.fsharp
assets/syntaxes/Fishdeleted−1

Submodule changed.

assets/syntaxes/GraphQLdeleted−1

Submodule changed.

assets/syntaxes/JavaScript (Babel)deleted−1

Submodule changed.

assets/syntaxes/Juliadeleted−1

Submodule changed.

assets/syntaxes/LESSdeleted−1

Submodule changed.

assets/syntaxes/Manpage.sublime-syntaxdeleted−53
@@ -1,53 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: Manpage
5−file_extensions:
6− - man
7−scope: source.man
8−
9−variables:
10− section_heading: '^\S.*$'
11−
12−contexts:
13− main:
14− - match: ^
15− push: first_line
16−
17− first_line:
18− - match: '([A-Z0-9_\-]+)(\()([^)]+)(\))'
19− captures:
20− 1: meta.preprocessor
21− 2: keyword.operator
22− 3: string.quoted.other
23− 4: keyword.operator
24−
25− - match: '$'
26− push: body
27−
28− body:
29− - match: '^(SYNOPSIS|SYNTAX|SINTASSI|SKŁADNIA|СИНТАКСИС|書式)'
30− push: Packages/C/C.sublime-syntax
31− scope: markup.heading
32− with_prototype:
33− - match: '(?={{section_heading}})'
34− pop: true
35−
36− - match: '^\S.*$'
37− scope: markup.heading
38−
39− - match: '\b([A-Za-z0-9_\-]+)(\()([^)]*)(\))'
40− captures:
41− 1: entity.name.function
42− 2: keyword.operator
43− 3: constant.numeric
44− 4: keyword.operator
45−
46− # command-line options like --option=value, --some-flag, or -x
47− - match: '(?:[^a-zA-Z0-9_-]|^|\s)(--?[A-Za-z0-9][A-Za-z0-9-]*)(?:(=)?("?)([A-Za-z0-9]+)("?))?'
48− captures:
49− 1: entity.name
50− 2: keyword.operator
51− 3: punctuation.definition.string.begin
52− 4: variable.parameter
53− 3: punctuation.definition.string.end
assets/syntaxes/Packagesdeleted−1

Submodule changed.

assets/syntaxes/PowerShelldeleted−1

Submodule changed.

assets/syntaxes/SCSS_Sassdeleted−1

Submodule changed.

assets/syntaxes/Syslogdeleted−1

Submodule changed.

assets/syntaxes/TOMLdeleted−1

Submodule changed.

assets/syntaxes/Terraformdeleted−1

Submodule changed.

assets/syntaxes/TypeScriptdeleted−1

Submodule changed.

assets/syntaxes/VimLdeleted−1

Submodule changed.

assets/syntaxes/VimL.sublime-syntaxdeleted−91
@@ -1,91 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: VimL
5−file_extensions:
6− - vim
7− - .vimrc
8−scope: source.viml
9−contexts:
10− main:
11− - include: comment
12− - include: string_quoted_double
13− - include: string_quoted_single
14− - include: string_regex
15− - include: inline_comment
16− - include: number_int
17− - include: number_hex
18− - include: keyword
19− - include: support_function
20− - include: support_variable
21− - include: support_type
22− - include: function_params
23− - include: function_definition
24− - include: function_call
25− - include: function
26− - include: variable
27− - include: expr
28− comment:
29− - match: ^\s*".*$
30− scope: comment.line.quotes.viml
31− captures:
32− 1: punctuation.definition.comment.vim
33− expr:
34− - match: (\|\||&&|==(\?|#)?|(!|>|<)=(#|\?)?|(=|!)~(#|\?)?|(>|<)(#|\?)is|isnot|\.|\*|\\|%)
35− scope: storage.function.viml
36− function:
37− - match: \b(fu(n|nction)?|end(f|fu|fun|function)?)\b
38− scope: storage.function.viml
39− function_call:
40− - match: '(([sgbwtl]|)?:?[0-9a-zA-Z_#]+)(?=\()'
41− scope: support.function.any-method
42− function_definition:
43− - match: '^\s*(function)\s*!?\s+(?=(s:)?[0-9a-zA-Z_#]+\s*\()'
44− captures:
45− 1: storage.function.viml
46− push:
47− - meta_scope: meta.function.viml
48− - match: (\()
49− captures:
50− 1: punctuation.definition.parameters.begin.viml
51− pop: true
52− - match: "(s:)?[0-9a-zA-Z_#]+"
53− scope: entity.name.function.viml
54− function_params:
55− - match: '-\w+='
56− scope: support.type.viml
57− inline_comment:
58− - match: '(?!\$)(")(?!\{).*$\n?'
59− scope: comment.line.quotes.viml
60− captures:
61− 1: punctuation.definition.comment.vim
62− keyword:
63− - match: \b(if|while|for|try|return|throw|end(if|for|while|try)?|au(g|group)|else(if|)?|do|in|catch|finally|:)\b
64− scope: keyword.control.viml
65− number_hex:
66− - match: "0x[0-9a-f]+"
67− scope: constant.numeric.hex
68− number_int:
69− - match: '-?\d+'
70− scope: constant.numeric.integer
71− string_quoted_double:
72− - match: '"(\\\\|\\"|\n[^\S\n]*\\|[^\n"])*"'
73− scope: string.quoted.double.viml
74− string_quoted_single:
75− - match: '''(''''|\n[^\S\n]*\\|[^\n''])*'''
76− scope: string.quoted.single.viml
77− string_regex:
78− - match: '/(\\\\|\\/|\n[^\S\n]*\\|[^\n/])*/'
79− scope: string.regexp.viml
80− support_function:
81− - match: \b(set(local|global)?|let|command|filetype|colorscheme|\w*map|\w*a(b|brev)?|syn|exe(c|cute)?|ec(ho|)?|au(tocmd|)?)\b
82− scope: support.function.viml
83− support_type:
84− - match: <.*?>
85− scope: support.type.viml
86− support_variable:
87− - match: '\b(am(enu|)?|(hl|inc)?search|[Bb]uf([Nn]ew[Ff]ile|[Rr]ead)?|[Ff]ile[Tt]ype)\b'
88− scope: support.variable.viml
89− variable:
90− - match: '([sSgGbBwWlLaAvV]:|@|$|&(?!&))\w*'
91− scope: variable.other.viml
assets/syntaxes/requirementstxtdeleted−1

Submodule changed.

assets/syntaxes/requirementstxt.sublime-syntaxdeleted−19
@@ -1,19 +0,0 @@
1−%YAML 1.2
2−---
3−# http://www.sublimetext.com/docs/3/syntax.html
4−name: requirements.txt
5−file_extensions:
6− - requirements.txt
7−scope: source.requirementstxt
8−contexts:
9− main:
10− - match: (#).*$\n?
11− scope: comment.line.requirementstxt
12− captures:
13− 1: punctuation.definition.comment.requirementstxt
14− - match: '(?i)^[a-z0-9_\-\.]+'
15− scope: string.package_name.requirementstxt
16− - match: (?i)==|<|<=|>=|>
17− scope: keyword.operator.logical.punctuation.requirementstxt
18− - match: '(?i)\d+\.[\da-z\-_\.]*'
19− scope: constant.numeric.verions.requirementstxt
assets/syntaxes/ssh-configdeleted−1

Submodule changed.

assets/themes.bin

Binary file not shown.

assets/themes/Coldarknew file+1

Submodule changed.

assets/themes/Solarizednew file+1

Submodule changed.

assets/themes/ansi-light.tmTheme → assets/themes/ansi.tmThemerenamed+13−87
@@ -3,14 +3,14 @@
33<plist version="1.0">
44 <dict>
55 <!--
6− The colors in this theme are encoded as #RRGGBBAA where RR is an ANSI
7− palette number from 00 to 0f, and AA is the special value 00 to indicate
8− that this encoding is being used.
6+ The colors in this theme are encoded as #RRGGBBAA where:
7+ * If AA is 00, then RR is an ANSI palette number from 00 to 07.
8+ * If AA is 01, the terminal's default fg/bg color is used.
99 -->
1010 <key>author</key>
1111 <string>Template: Chris Kempson, Scheme: Mitchell Kember</string>
1212 <key>name</key>
13− <string>ANSI Light</string>
13+ <string>ANSI</string>
1414 <key>colorSpaceName</key>
1515 <string>sRGB</string>
1616 <key>settings</key>
@@ -19,32 +19,17 @@
1919 <key>settings</key>
2020 <dict>
2121 <key>background</key>
22− <string>#07000000</string>
23− <key>caret</key>
24− <string>#00000000</string>
25− <key>foreground</key>
26− <string>#00000000</string>
27− <key>invisibles</key>
28− <string>#00000000</string>
29− <key>lineHighlight</key>
30− <string>#00000000</string>
31− <key>selection</key>
32− <string>#00000000</string>
22+ <string>#00000001</string>
23+ <key>foreground</key>
24+ <string>#00000001</string>
25+ <!--
26+ Explicitly set the gutter color since bat falls back to a
27+ hardcoded DEFAULT_GUTTER_COLOR otherwise.
28+ -->
3329 <key>gutter</key>
34− <string>#07000000</string>
30+ <string>#00000001</string>
3531 <key>gutterForeground</key>
36− <string>#00000000</string>
37− </dict>
38− </dict>
39− <dict>
40− <key>name</key>
41− <string>Text</string>
42− <key>scope</key>
43− <string>variable.parameter.function</string>
44− <key>settings</key>
45− <dict>
46− <key>foreground</key>
47− <string>#00000000</string>
32+ <string>#00000001</string>
4833 </dict>
4934 </dict>
5035 <dict>
@@ -58,39 +43,6 @@
5843 <string>#02000000</string>
5944 </dict>
6045 </dict>
61− <dict>
62− <key>name</key>
63− <string>Punctuation</string>
64− <key>scope</key>
65− <string>punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array</string>
66− <key>settings</key>
67− <dict>
68− <key>foreground</key>
69− <string>#00000000</string>
70− </dict>
71− </dict>
72− <dict>
73− <key>name</key>
74− <string>Delimiters</string>
75− <key>scope</key>
76− <string>none</string>
77− <key>settings</key>
78− <dict>
79− <key>foreground</key>
80− <string>#00000000</string>
81− </dict>
82− </dict>
83− <dict>
84− <key>name</key>
85− <string>Operators</string>
86− <key>scope</key>
87− <string>keyword.operator</string>
88− <key>settings</key>
89− <dict>
90− <key>foreground</key>
91− <string>#00000000</string>
92− </dict>
93− </dict>
9446 <dict>
9547 <key>name</key>
9648 <string>Keywords</string>
@@ -102,17 +54,6 @@
10254 <string>#05000000</string>
10355 </dict>
10456 </dict>
105− <dict>
106− <key>name</key>
107− <string>Variables</string>
108− <key>scope</key>
109− <string>variable</string>
110− <key>settings</key>
111− <dict>
112− <key>foreground</key>
113− <string>#00000000</string>
114− </dict>
115− </dict>
11657 <dict>
11758 <key>name</key>
11859 <string>Functions</string>
@@ -146,17 +87,6 @@
14687 <string>#03000000</string>
14788 </dict>
14889 </dict>
149− <dict>
150− <key>name</key>
151− <string>Classes</string>
152− <key>scope</key>
153− <string>meta.class</string>
154− <key>settings</key>
155− <dict>
156− <key>foreground</key>
157− <string>#00000000</string>
158− </dict>
159− </dict>
16090 <dict>
16191 <key>name</key>
16292 <string>Methods</string>
@@ -480,8 +410,6 @@
480410 <dict>
481411 <key>background</key>
482412 <string>#01000000</string>
483− <key>foreground</key>
484− <string>#00000000</string>
485413 </dict>
486414 </dict>
487415 <dict>
@@ -493,8 +421,6 @@
493421 <dict>
494422 <key>background</key>
495423 <string>#03000000</string>
496− <key>foreground</key>
497− <string>#07000000</string>
498424 </dict>
499425 </dict>
500426 </array>
assets/themes/ansi-dark.tmTheme → assets/themes/base16-256.tmThemerenamed+69−22
@@ -3,14 +3,22 @@
33<plist version="1.0">
44 <dict>
55 <!--
6+ Most base16 users should use the base16 theme. This theme, base16-256,
7+ is for users who configure their terminal with a 256-color variant of a
8+ base16 theme, and who use base16-shell. DO NOT use this theme simply
9+ because your terminal supports 256 colors.
10+
11+ base16: https://github.com/chriskempson/base16
12+ base16-shell: https://github.com/chriskempson/base16-shell
13+
614 The colors in this theme are encoded as #RRGGBBAA where RR is an ANSI
7− palette number from 00 to 0f, and AA is the special value 00 to indicate
8− that this encoding is being used.
15+ palette number from 00 to ff (the 256 terminal colors), and AA is the
16+ special value 00 to indicate this encoding is being used.
917 -->
1018 <key>author</key>
1119 <string>Template: Chris Kempson, Scheme: Mitchell Kember</string>
1220 <key>name</key>
13− <string>ANSI Dark</string>
21+ <string>Base16 256</string>
1422 <key>colorSpaceName</key>
1523 <string>sRGB</string>
1624 <key>settings</key>
@@ -25,15 +33,15 @@
2533 <key>foreground</key>
2634 <string>#07000000</string>
2735 <key>invisibles</key>
28− <string>#07000000</string>
36+ <string>#08000000</string>
2937 <key>lineHighlight</key>
30− <string>#07000000</string>
38+ <string>#08000000</string>
3139 <key>selection</key>
32− <string>#07000000</string>
40+ <string>#13000000</string>
3341 <key>gutter</key>
34− <string>#00000000</string>
42+ <string>#12000000</string>
3543 <key>gutterForeground</key>
36− <string>#07000000</string>
44+ <string>#08000000</string>
3745 </dict>
3846 </dict>
3947 <dict>
@@ -55,7 +63,7 @@
5563 <key>settings</key>
5664 <dict>
5765 <key>foreground</key>
58− <string>#02000000</string>
66+ <string>#08000000</string>
5967 </dict>
6068 </dict>
6169 <dict>
@@ -132,7 +140,7 @@
132140 <key>settings</key>
133141 <dict>
134142 <key>foreground</key>
135− <string>#06000000</string>
143+ <string>#11000000</string>
136144 </dict>
137145 </dict>
138146 <dict>
@@ -154,7 +162,7 @@
154162 <key>settings</key>
155163 <dict>
156164 <key>foreground</key>
157− <string>#07000000</string>
165+ <string>#0f000000</string>
158166 </dict>
159167 </dict>
160168 <dict>
@@ -209,7 +217,7 @@
209217 <key>settings</key>
210218 <dict>
211219 <key>foreground</key>
212− <string>#03000000</string>
220+ <string>#10000000</string>
213221 </dict>
214222 </dict>
215223 <dict>
@@ -220,7 +228,7 @@
220228 <key>settings</key>
221229 <dict>
222230 <key>foreground</key>
223− <string>#03000000</string>
231+ <string>#10000000</string>
224232 </dict>
225233 </dict>
226234 <dict>
@@ -231,7 +239,7 @@
231239 <key>settings</key>
232240 <dict>
233241 <key>foreground</key>
234− <string>#03000000</string>
242+ <string>#10000000</string>
235243 </dict>
236244 </dict>
237245 <dict>
@@ -242,7 +250,7 @@
242250 <key>settings</key>
243251 <dict>
244252 <key>foreground</key>
245− <string>#03000000</string>
253+ <string>#10000000</string>
246254 </dict>
247255 </dict>
248256 <dict>
@@ -264,7 +272,7 @@
264272 <key>settings</key>
265273 <dict>
266274 <key>foreground</key>
267− <string>#03000000</string>
275+ <string>#10000000</string>
268276 </dict>
269277 </dict>
270278 <dict>
@@ -297,7 +305,7 @@
297305 <key>settings</key>
298306 <dict>
299307 <key>foreground</key>
300− <string>#03000000</string>
308+ <string>#10000000</string>
301309 </dict>
302310 </dict>
303311 <dict>
@@ -321,7 +329,7 @@
321329 <key>settings</key>
322330 <dict>
323331 <key>foreground</key>
324− <string>#03000000</string>
332+ <string>#10000000</string>
325333 </dict>
326334 </dict>
327335 <dict>
@@ -380,7 +388,7 @@
380388 <key>settings</key>
381389 <dict>
382390 <key>foreground</key>
383− <string>#03000000</string>
391+ <string>#10000000</string>
384392 </dict>
385393 </dict>
386394 <dict>
@@ -391,7 +399,20 @@
391399 <key>settings</key>
392400 <dict>
393401 <key>foreground</key>
394− <string>#03000000</string>
402+ <string>#10000000</string>
403+ </dict>
404+ </dict>
405+ <dict>
406+ <key>name</key>
407+ <string>Separator</string>
408+ <key>scope</key>
409+ <string>meta.separator</string>
410+ <key>settings</key>
411+ <dict>
412+ <key>background</key>
413+ <string>#13000000</string>
414+ <key>foreground</key>
415+ <string>#07000000</string>
395416 </dict>
396417 </dict>
397418 <dict>
@@ -481,7 +502,7 @@
481502 <key>background</key>
482503 <string>#01000000</string>
483504 <key>foreground</key>
484− <string>#07000000</string>
505+ <string>#0f000000</string>
485506 </dict>
486507 </dict>
487508 <dict>
@@ -492,11 +513,37 @@
492513 <key>settings</key>
493514 <dict>
494515 <key>background</key>
495− <string>#03000000</string>
516+ <string>#10000000</string>
496517 <key>foreground</key>
497518 <string>#00000000</string>
498519 </dict>
499520 </dict>
521+ <dict>
522+ <key>name</key>
523+ <string>Deprecated</string>
524+ <key>scope</key>
525+ <string>invalid.deprecated</string>
526+ <key>settings</key>
527+ <dict>
528+ <key>background</key>
529+ <string>#11000000</string>
530+ <key>foreground</key>
531+ <string>#0f000000</string>
532+ </dict>
533+ </dict>
534+ <dict>
535+ <key>name</key>
536+ <string>Unimplemented</string>
537+ <key>scope</key>
538+ <string>invalid.unimplemented</string>
539+ <key>settings</key>
540+ <dict>
541+ <key>background</key>
542+ <string>#08000000</string>
543+ <key>foreground</key>
544+ <string>#0f000000</string>
545+ </dict>
546+ </dict>
500547 </array>
501548 <key>uuid</key>
502549 <string>uuid</string>
assets/themes/base16.tmTheme+9−2
@@ -3,9 +3,16 @@
33<plist version="1.0">
44 <dict>
55 <!--
6+ This theme is meant for users who configure their terminal with a base16
7+ color theme. If you use a 256-color variant along with base16-shell, use
8+ the bat theme base16-256 instead.
9+
10+ base16: https://github.com/chriskempson/base16
11+ base16-shell: https://github.com/chriskempson/base16-shell
12+
613 The colors in this theme are encoded as #RRGGBBAA where RR is an ANSI
7− palette number from 00 to 0f, and AA is the special value 00 to indicate
8− that this encoding is being used.
14+ palette number from 00 to 0f (the 8 colors and their bright versions),
15+ and AA is the special value 00 to indicate this encoding is being used.
916 -->
1017 <key>author</key>
1118 <string>Template: Chris Kempson, Scheme: Mitchell Kember</string>
assets/themes/dracula-sublime+1−1

Submodule changed.

assets/themes/gruvboxnew file+1

Submodule changed.

assets/themes/onehalf+1−1

Submodule changed.

assets/themes/solarized-sublimedeleted−1

Submodule changed.

assets/themes/visual-studio-dark-plusnew file+1

Submodule changed.

assets/themes/zenburn+1−1

Submodule changed.

build.rs+68−55
@@ -1,65 +1,78 @@
11// TODO: Re-enable generation of shell completion files (below) when clap 3 is out.
22// For more details, see https://github.com/sharkdp/bat/issues/372
33
4−#[macro_use]
5−extern crate lazy_static;
6−extern crate liquid;
7−
8−use std::error::Error;
9−use std::fs;
10−
11−// Read environment variables.
12−lazy_static! {
13− pub static ref PROJECT_NAME: &'static str = option_env!("PROJECT_NAME").unwrap_or("bat");
14− pub static ref PROJECT_VERSION: &'static str = option_env!("CARGO_PKG_VERSION").unwrap();
15− pub static ref EXECUTABLE_NAME: &'static str = option_env!("PROJECT_EXECUTABLE")
16− .or(option_env!("PROJECT_NAME"))
17− .unwrap_or("bat");
18−}
19−
20−fn init_template() -> liquid::value::Object {
21− let mut globals = liquid::value::Object::new();
22−
23− globals.insert(
24− "PROJECT_NAME".into(),
25− liquid::value::Value::scalar(PROJECT_NAME.to_owned()),
26− );
27−
28− globals.insert(
29− "PROJECT_EXECUTABLE".into(),
30− liquid::value::Value::scalar(EXECUTABLE_NAME.to_owned()),
31− );
32−
33− globals.insert(
34− "PROJECT_VERSION".into(),
35− liquid::value::Value::scalar(PROJECT_VERSION.to_owned()),
36− );
37−
38− globals
39−}
40−
41−/// Generates a file from a liquid template.
42−fn template(
43− variables: &liquid::value::Object,
44− in_file: &str,
45− out_file: &str,
46−) -> Result<(), Box<dyn Error>> {
47− let template = liquid::ParserBuilder::with_liquid()
48− .build()?
49− .parse(&fs::read_to_string(in_file)?)?;
50−
51− fs::write(out_file, template.render(variables)?)?;
52− Ok(())
53−}
54−
55−fn main() -> Result<(), Box<dyn Error>> {
56− let variables = init_template();
4+// For bat-as-a-library, no build script is required. The build script is for
5+// the manpage and completions, which are only relevant to the bat application.
6+#[cfg(not(feature = "application"))]
7+fn main() {}
8+
9+#[cfg(feature = "application")]
10+fn main() -> Result<(), Box<dyn std::error::Error>> {
11+ use std::collections::HashMap;
12+ use std::error::Error;
13+ use std::fs;
14+ use std::path::Path;
15+
16+ // Read environment variables.
17+ let project_name = option_env!("PROJECT_NAME").unwrap_or("bat");
18+ let executable_name = option_env!("PROJECT_EXECUTABLE").unwrap_or(project_name);
19+ let executable_name_uppercase = executable_name.to_uppercase();
20+ static PROJECT_VERSION: &str = env!("CARGO_PKG_VERSION");
21+
22+ /// Generates a file from a template.
23+ fn template(
24+ variables: &HashMap<&str, &str>,
25+ in_file: &str,
26+ out_file: impl AsRef<Path>,
27+ ) -> Result<(), Box<dyn Error>> {
28+ let mut content = fs::read_to_string(in_file)?;
29+
30+ for (variable_name, value) in variables {
31+ // Replace {{variable_name}} by the value
32+ let pattern = format!("{{{{{variable_name}}}}}", variable_name = variable_name);
33+ content = content.replace(&pattern, value);
34+ }
35+
36+ fs::write(out_file, content)?;
37+ Ok(())
38+ }
39+
40+ let mut variables = HashMap::new();
41+ variables.insert("PROJECT_NAME", project_name);
42+ variables.insert("PROJECT_EXECUTABLE", executable_name);
43+ variables.insert("PROJECT_EXECUTABLE_UPPERCASE", &executable_name_uppercase);
44+ variables.insert("PROJECT_VERSION", PROJECT_VERSION);
45+
46+ let out_dir_env = std::env::var_os("OUT_DIR").expect("OUT_DIR to be set in build.rs");
47+ let out_dir = Path::new(&out_dir_env);
48+
49+ fs::create_dir_all(out_dir.join("assets/manual")).unwrap();
50+ fs::create_dir_all(out_dir.join("assets/completions")).unwrap();
5751
58− template(&variables, "assets/manual/bat.1.in", "assets/manual/bat.1")?;
52+ template(
53+ &variables,
54+ "assets/manual/bat.1.in",
55+ out_dir.join("assets/manual/bat.1"),
56+ )?;
57+ template(
58+ &variables,
59+ "assets/completions/bat.bash.in",
60+ out_dir.join("assets/completions/bat.bash"),
61+ )?;
5962 template(
6063 &variables,
6164 "assets/completions/bat.fish.in",
62− "assets/completions/bat.fish",
65+ out_dir.join("assets/completions/bat.fish"),
66+ )?;
67+ template(
68+ &variables,
69+ "assets/completions/_bat.ps1.in",
70+ out_dir.join("assets/completions/_bat.ps1"),
71+ )?;
72+ template(
73+ &variables,
74+ "assets/completions/bat.zsh.in",
75+ out_dir.join("assets/completions/bat.zsh"),
6376 )?;
6477
6578 Ok(())
ci/before_deploy.bashdeleted−187
@@ -1,187 +0,0 @@
1−#!/usr/bin/env bash
2−# Building and packaging for release
3−set -ex
4−
5−# Ensure environment variables exist.
6−if [[ -z "$PROJECT_NAME" ]]; then
7− export PROJECT_NAME="bat"
8−fi
9−
10−build() {
11− cargo build --bins --target "$TARGET" --release --verbose
12−}
13−
14−pack() {
15− local tempdir
16− local out_dir
17− local package_name
18− local gcc_prefix
19−
20− tempdir=$(mktemp -d 2>/dev/null || mktemp -d -t tmp)
21− out_dir=$(pwd)
22− package_name="$PROJECT_NAME-$TRAVIS_TAG-$TARGET"
23−
24− if [[ $TARGET == "arm-unknown-linux-gnueabihf" ]]; then
25− gcc_prefix="arm-linux-gnueabihf-"
26− elif [[ $TARGET == "aarch64-unknown-linux-gnu" ]]; then
27− gcc_prefix="aarch64-linux-gnu-"
28− else
29− gcc_prefix=""
30− fi
31−
32− # create a "staging" directory
33− mkdir "$tempdir/$package_name"
34− mkdir "$tempdir/$package_name/autocomplete"
35−
36− # copying the main binary
37− cp "target/$TARGET/release/$PROJECT_NAME" "$tempdir/$package_name/"
38− "${gcc_prefix}"strip "$tempdir/$package_name/$PROJECT_NAME"
39−
40− # manpage, readme and license
41− cp "assets/manual/bat.1" "$tempdir/$package_name/$PROJECT_NAME.1"
42− cp README.md "$tempdir/$package_name"
43− cp LICENSE-MIT "$tempdir/$package_name"
44− cp LICENSE-APACHE "$tempdir/$package_name"
45−
46− # various autocomplete
47− # TODO: disabled for now, see issue #372
48− # cp target/"$TARGET"/release/build/"$PROJECT_NAME"-*/out/"$PROJECT_NAME".bash "$tempdir/$package_name/autocomplete/${PROJECT_NAME}.bash-completion"
49− # cp target/"$TARGET"/release/build/"$PROJECT_NAME"-*/out/"$PROJECT_NAME".fish "$tempdir/$package_name/autocomplete"
50− cp "assets/completions/bat.fish" "$tempdir/$package_name/autocomplete/$PROJECT_NAME.fish"
51− # cp target/"$TARGET"/release/build/"$PROJECT_NAME"-*/out/_"$PROJECT_NAME" "$tempdir/$package_name/autocomplete"
52−
53− # archiving
54− pushd "$tempdir"
55− tar czf "$out_dir/$package_name.tar.gz" "$package_name"/*
56− popd
57− rm -r "$tempdir"
58−}
59−
60−make_deb() {
61− local tempdir
62− local architecture
63− local version
64− local dpkgname
65− local conflictname
66− local gcc_prefix
67− local homepage
68− local maintainer
69−
70− homepage="https://github.com/sharkdp/bat"
71− maintainer="David Peter <mail@david-peter.de>"
72−
73− case $TARGET in
74− x86_64*)
75− architecture=amd64
76− gcc_prefix=""
77− ;;
78− i686*)
79− architecture=i386
80− gcc_prefix=""
81− ;;
82− aarch64*)
83− architecture=arm64
84− gcc_prefix="aarch64-linux-gnu-"
85− ;;
86− arm*hf)
87− architecture=armhf
88− gcc_prefix="arm-linux-gnueabihf-"
89− ;;
90− *)
91− echo "make_deb: skipping target '${TARGET}'" >&2
92− return 0
93− ;;
94− esac
95− version=${TRAVIS_TAG#v}
96− if [[ $TARGET = *musl* ]]; then
97− dpkgname=$PROJECT_NAME-musl
98− conflictname=$PROJECT_NAME
99− else
100− dpkgname=$PROJECT_NAME
101− conflictname=$PROJECT_NAME-musl
102− fi
103−
104− tempdir=$(mktemp -d 2>/dev/null || mktemp -d -t tmp)
105−
106− # copy the main binary
107− install -Dm755 "target/$TARGET/release/$PROJECT_NAME" "$tempdir/usr/bin/$PROJECT_NAME"
108− "${gcc_prefix}"strip "$tempdir/usr/bin/$PROJECT_NAME"
109−
110− # manpage
111− install -Dm644 "assets/manual/bat.1" "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"
112− gzip --best "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"
113−
114− # completions
115− install -Dm644 "assets/completions/bat.fish" "$tempdir/usr/share/fish/completions/$PROJECT_NAME.fish"
116−
117− # readme and license
118− install -Dm644 README.md "$tempdir/usr/share/doc/$PROJECT_NAME/README.md"
119− install -Dm644 LICENSE-MIT "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-MIT"
120− install -Dm644 LICENSE-APACHE "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-APACHE"
121− cat > "$tempdir/usr/share/doc/$PROJECT_NAME/copyright" <<EOF
122−Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
123−Upstream-Name: $PROJECT_NAME
124−Source: $homepage
125−
126−Files: *
127−Copyright: $maintainer
128−License: Apache-2.0 or MIT
129−
130−License: Apache-2.0
131− On Debian systems, the complete text of the Apache-2.0 can be found in the
132− file /usr/share/common-licenses/Apache-2.0.
133−
134−License: MIT
135− Permission is hereby granted, free of charge, to any
136− person obtaining a copy of this software and associated
137− documentation files (the "Software"), to deal in the
138− Software without restriction, including without
139− limitation the rights to use, copy, modify, merge,
140− publish, distribute, sublicense, and/or sell copies of
141− the Software, and to permit persons to whom the Software
142− is furnished to do so, subject to the following
143− conditions:
144− .
145− The above copyright notice and this permission notice
146− shall be included in all copies or substantial portions
147− of the Software.
148− .
149− THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
150− ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
151− TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
152− PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
153− SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
154− CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
155− OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
156− IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
157− DEALINGS IN THE SOFTWARE.
158−EOF
159−
160− # Control file
161− mkdir "$tempdir/DEBIAN"
162− cat > "$tempdir/DEBIAN/control" <<EOF
163−Package: $dpkgname
164−Version: $version
165−Section: utils
166−Priority: optional
167−Maintainer: David Peter <mail@david-peter.de>
168−Architecture: $architecture
169−Provides: $PROJECT_NAME
170−Conflicts: $conflictname
171−Description: A cat(1) clone with wings.
172− A cat(1) clone with syntax highlighting and Git integration.
173−EOF
174−
175− fakeroot dpkg-deb --build "$tempdir" "${dpkgname}_${version}_${architecture}.deb"
176−}
177−
178−
179−main() {
180− build
181− pack
182− if [[ $TARGET = *linux* ]]; then
183− make_deb
184− fi
185−}
186−
187−main
ci/before_deploy.ps1deleted−28
@@ -1,28 +0,0 @@
1−# This script takes care of packaging the build artifacts that will go in the
2−# release zipfile
3−
4−$SRC_DIR = $PWD.Path
5−$STAGE = [System.Guid]::NewGuid().ToString()
6−
7−Set-Location $ENV:Temp
8−New-Item -Type Directory -Name $STAGE
9−Set-Location $STAGE
10−
11−$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
12−
13−Copy-Item "$SRC_DIR\target\release\bat.exe" '.\'
14−# TODO: disabled for now, see issue #372
15−# Copy-Item $SRC_DIR\target\release\build\bat-*\out\_bat.ps1 '.\'
16−
17−# readme and license
18−Copy-Item $SRC_DIR\README.md '.\'
19−Copy-Item $SRC_DIR\LICENSE-MIT '.\'
20−Copy-Item $SRC_DIR\LICENSE-APACHE '.\'
21−
22−7z a "$ZIP" *
23−
24−Push-AppveyorArtifact "$ZIP"
25−
26−Set-Location ..
27−Remove-Item $STAGE -Force -Recurse
28−Set-Location $SRC_DIR
ci/before_install.bashdeleted−38
@@ -1,38 +0,0 @@
1−#!/usr/bin/env bash
2−
3−set -ex
4−
5−if [ "$TRAVIS_OS_NAME" != linux ]; then
6− exit 0
7−fi
8−
9−sudo apt-get update
10−
11−# needed for musl targets
12−sudo apt-get install -y musl-tools
13−
14−# needed to build deb packages
15−sudo apt-get install -y fakeroot
16−
17−# needed for i686 linux gnu target
18−if [[ $TARGET == i686-unknown-linux-gnu ]]; then
19− sudo apt-get install -y gcc-multilib
20−fi
21−
22−# needed for cross-compiling for arm
23−if [[ $TARGET == arm-unknown-linux-gnueabihf ]]; then
24− sudo apt-get install -y \
25− gcc-4.8-arm-linux-gnueabihf \
26− binutils-arm-linux-gnueabihf \
27− libc6-armhf-cross \
28− libc6-dev-armhf-cross
29−fi
30−
31−# needed for cross-compiling for arm64
32−if [[ $TARGET == aarch64-unknown-linux-gnu ]]; then
33− sudo apt-get install -y \
34− gcc-4.8-aarch64-linux-gnu \
35− binutils-aarch64-linux-gnu \
36− gcc-aarch64-linux-gnu \
37− libc6-dev-arm64-cross
38−fi
ci/script.bashdeleted−14
@@ -1,14 +0,0 @@
1−#!/usr/bin/env bash
2−
3−set -ex
4−
5−# Incorporate TARGET env var to the build and test process
6−cargo build --target "$TARGET" --verbose
7−
8−# We cannot run arm executables on linux
9−if [[ $TARGET != arm-unknown-linux-gnueabihf ]] && [[ $TARGET != aarch64-unknown-linux-gnu ]]; then
10− cargo test --target "$TARGET" --verbose
11−
12− # Run 'bat' on its own source code and the README
13− cargo run --target "$TARGET" -- src/bin/bat/main.rs README.md --paging=never
14−fi
ci/.gitattributes → diagnostics/.gitattributesrenamed

The content is the same.

diagnostics/info.sh+105−38
@@ -2,6 +2,24 @@
22_modules=('system' 'bat' 'bat_config' 'bat_wrapper' 'bat_wrapper_function' 'tool')
33_modules_consented=()
44
5+set -o pipefail
6+
7+export LC_ALL=C
8+export LANG=C
9+
10+BAT="bat"
11+if ! command -v bat &>/dev/null; then
12+ if command -v batcat &> /dev/null; then
13+ BAT="batcat"
14+ else
15+ tput setaf 1
16+ printf "%s\n%s\n" \
17+ "Unable to find a bat executable on your PATH." \
18+ "Please ensure that 'bat' exists and is not named something else."
19+ tput sgr0
20+ exit 1
21+ fi
22+fi
523
624# -----------------------------------------------------------------------------
725# Modules:
@@ -9,6 +27,7 @@ _modules_consented=()
927
1028_bat_:description() {
1129 _collects "Version information for 'bat'."
30+ _collects "Custom syntaxes and themes for 'bat'."
1231}
1332
1433_bat_config_:description() {
@@ -33,59 +52,94 @@ _tool_:description() {
3352 _collects "Version information for 'less'."
3453}
3554
36−
3755# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3856
3957_bat_:run() {
40− _out bat --version
58+ _out "$BAT" --version
4159 _out env | grep '^BAT_\|^PAGER='
60+
61+ local cache_dir
62+ cache_dir="$($BAT --cache-dir)"
63+ if [[ -f "${cache_dir}/syntaxes.bin" ]]; then
64+ _print_command "$BAT" "--list-languages"
65+ echo "Found custom syntax set."
66+ fi
67+
68+ if [[ -f "${cache_dir}/themes.bin" ]]; then
69+ _print_command "$BAT" "--list-themes"
70+ echo "Found custom theme set."
71+ fi
4272}
4373
4474_bat_config_:run() {
45− if [[ -f "$(bat --config-file)" ]]; then
46− _out_fence cat "$(bat --config-file)";
75+ if [[ -f "$("$BAT" --config-file)" ]]; then
76+ _out_fence cat "$("$BAT" --config-file)"
4777 fi
4878}
4979
5080_bat_wrapper_:run() {
51− if file "$(which bat)" | grep "text executable" &>/dev/null; then
52− _out_fence cat "$(which bat)"
53− return
81+ _bat_wrapper_:detect_wrapper() {
82+ local bat="$1"
83+ if file "$(command -v "${bat}")" | grep "text executable" &> /dev/null; then
84+ _out_fence cat "$(command -v "${bat}")"
85+ return
86+ fi
87+
88+ printf "\nNo wrapper script for '%s'.\n" "${bat}"
89+ }
90+
91+ _bat_wrapper_:detect_wrapper bat
92+ if [[ "$BAT" != "bat" ]]; then
93+ _bat_wrapper_:detect_wrapper "$BAT"
5494 fi
55− printf "\nNo wrapper script.\n"
5695}
5796
5897_bat_wrapper_function_:run() {
59− case "$("$SHELL" --version | head -n 1)" in
60− *fish*)
61− if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
62− _out_fence "$SHELL" --login -c 'functions bat'
63− fi ;;
64−
65− *bash*)
66− if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
67− _out_fence "$SHELL" --login -c 'declare -f bat'
68− fi ;;
98+ _bat_wrapper_function_:detect_wrapper() {
99+ local command="$1"
100+ case "$("$SHELL" --version | head -n 1)" in
101+ *fish*)
102+ if "$SHELL" --login -i -c "type ${command}" 2>&1 | grep 'function' &> /dev/null; then
103+ _out_fence "$SHELL" --login -i -c "functions ${command}"
104+ return
105+ fi ;;
106+
107+ *bash* | *zsh*)
108+ local type
109+ type="$("$SHELL" --login -i -c "type ${command}" 2>&1)"
110+ if grep 'function' <<< "$type" &> /dev/null; then
111+ _out_fence "$SHELL" --login -i -c "declare -f ${command}"
112+ return
113+ elif grep 'alias' <<< "$type" &> /dev/null; then
114+ _out_fence "$SHELL" --login -i -c "type ${command}"
115+ return
116+ fi ;;
117+
118+ *)
119+ echo "Unable to determine if a wrapper function for '${command}' is set."
120+ return ;;
121+ esac
122+ printf "\nNo wrapper function for '%s'.\n" "${command}"
123+ }
69124
70− *)
71− echo "Unable to determine if a wrapper function is set."
72− return ;;
73− esac
74− printf "\nNo wrapper function.\n"
125+ _bat_wrapper_function_:detect_wrapper bat
126+ _bat_wrapper_function_:detect_wrapper cat
127+ if [[ "$BAT" != "bat" ]]; then
128+ _bat_wrapper_function_:detect_wrapper "$BAT"
129+ fi
75130}
76131
77132_system_:run() {
78133 _out uname -srm
79134
80− if command -v "sw_vers" &>/dev/null; then _out sw_vers; fi
81− if command -v "lsb_release" &>/dev/null; then _out lsb_release -a; fi
135+ if command -v "sw_vers" &> /dev/null; then _out sw_vers; fi
136+ if command -v "lsb_release" &> /dev/null; then _out lsb_release -a; fi
82137}
83138
84139_tool_:run() {
85140 _out less --version | head -n1
86141}
87142
88−
89143# -----------------------------------------------------------------------------
90144# Functions:
91145# -----------------------------------------------------------------------------
@@ -109,7 +163,7 @@ _out_fence() {
109163}
110164
111165_tput() {
112− tput "$@" 1>&2 2>/dev/null
166+ tput "$@" 1>&2 2> /dev/null
113167}
114168
115169_collects() {
@@ -120,7 +174,7 @@ _ask_module() {
120174 _tput clear
121175 _tput cup 0 0
122176
123−cat 1>&2 <<EOF
177+ cat 1>&2 << EOF
124178--------------------------------------------------------------------------------
125179This script runs some harmless commands to collect information about your
126180system and bat configuration. It will give you a small preview of the commands
@@ -135,7 +189,7 @@ EOF
135189 _tput sgr0
136190 "_$1_:description"
137191 _tput sgr0
138−
192+
139193 # Print preview.
140194 _tput setaf 3
141195 printf "\nThe following commands will be run:\n" 1>&2
@@ -143,19 +197,20 @@ EOF
143197 declare -f "_$1_:run" \
144198 | sed 's/^ *//; s/;$//' \
145199 | grep '^_out[^ ]* ' \
146− | sed 's/^_out[^ ]* //' 1>&2
200+ | sed 's/^_out[^ ]* //' \
201+ | sed "s/\"\$BAT\"/$BAT/" 1>&2
147202
148203 # Prompt
149204 printf "\n" 1>&2
150205 local response
151206 while true; do
152− _tput cup "$(( $(tput lines || echo 22) - 2 ))"
207+ _tput cup "$(($( tput lines || echo 22) - 2))"
153208 _tput el
154209 read -er -p "Collect $(sed 's/_/ /' <<< "$1") data? [Y/n] " response
155210 case "$response" in
156− Y|y|yes|'') return 0 ;;
157− N|n|no) return 1 ;;
158− *) continue
211+ Y | y | yes | '') return 0 ;;
212+ N | n | no) return 1 ;;
213+ *) continue ;;
159214 esac
160215 done
161216}
@@ -166,13 +221,27 @@ _run_module() {
166221 "_$1_:run"
167222}
168223
169−
170224# -----------------------------------------------------------------------------
171225# Functions:
172226# -----------------------------------------------------------------------------
173227
228+# Tell the user if their executable isn't named "bat".
229+if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
230+ trap '_tput rmcup; exit 1' INT
231+ _tput smcup
232+ _tput clear
233+ _tput cup 0 0
234+ _tput setaf 1
235+ printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
236+ "If your issue is related to installation, please check that this isn't the issue."
237+ _tput sgr0
238+ printf "Press any key to continue...\n"
239+ read -rsn1
240+ _tput rmcup
241+fi
242+
174243# Ask for consent.
175−if [[ "$1" = '-y' ]]; then
244+if [[ "$1" == '-y' ]]; then
176245 _modules_consented=("${_modules[@]}")
177246else
178247 trap '_tput rmcup; exit 1' INT
@@ -190,5 +259,3 @@ for _module in "${_modules_consented[@]}"; do
190259 _run_module "$_module" 2>&1
191260 printf "\n"
192261done
193−
194−
doc/README-ja.md+303−107
@@ -1,53 +1,59 @@
11<p align="center">
22 <img src="logo-header.svg" alt="bat - a cat clone with wings"><br>
3− <a href="https://travis-ci.org/sharkdp/bat"><img src="https://travis-ci.org/sharkdp/bat.svg?branch=master" alt="Build Status"></a>
4− <a href="https://ci.appveyor.com/project/sharkdp/bat"><img src="https://ci.appveyor.com/api/projects/status/cptsmtbiwbnr2vhf?svg=true"></a>
3+ <a href="https://github.com/sharkdp/bat/actions?query=workflow%3ACICD"><img src="https://github.com/sharkdp/bat/workflows/CICD/badge.svg" alt="Build Status"></a>
54 <img src="https://img.shields.io/crates/l/bat.svg" alt="license">
65 <a href="https://crates.io/crates/bat"><img src="https://img.shields.io/crates/v/bat.svg?colorB=319e8c" alt="Version info"></a><br>
76 シンタックスハイライトとGitとの連携機能付きの <i>cat(1)</i> クローン。
87</p>
98
109<p align="center">
11− <a href="#syntax-highlighting">特徴</a> •
12− <a href="#how-to-use">使い方</a> •
13− <a href="#installation">インストール</a> •
14− <a href="#customization">カスタマイズ</a> •
15− <a href="#project-goals-and-alternatives">プロジェクトの目標と既存の類似したOSS</a> •
16− 翻訳 [<a href="https://github.com/chinanf-boy/bat-zh">中文</a>][<a href="README-ja.md">日本語</a>]
10+ <a href="#シンタックスハイライト">特徴</a> •
11+ <a href="#使い方">使い方</a> •
12+ <a href="#インストール">インストール</a> •
13+ <a href="#カスタマイズ">カスタマイズ</a> •
14+ <a href="#プロジェクトの目標と既存の類似したOSS">プロジェクトの目標と既存の類似したOSS</a><br>
15+ [<a href="../README.md">English</a>]
16+ [<a href="README-zh.md">中文</a>]
17+ [日本語]
18+ [<a href="README-ko.md">한국어</a>]
19+ [<a href="README-ru.md">Русский</a>]
1720</p>
1821
1922### シンタックスハイライト
2023
21−`bat` は多くのプログラミング言語やマークアップ言語のシンタックスハイライトに対応しています。
24+`bat` は多くのプログラミング言語やマークアップ言語の
25+シンタックスハイライトに対応しています:
2226
2327![Syntax highlighting example](https://imgur.com/rGsdnDe.png)
2428
2529### Gitの統合
2630
27−
28−`bat` は `git` とも連携しており、差分を表現する記号が表示されます(図の左端):
31+`bat` は `git` とも連携しており、差分を表現する記号が表示されます
32+(図の左端):
2933
3034![Git integration example](https://i.imgur.com/2lSW4RE.png)
3135
32−### 空白文字の可視化
36+### 印刷できない文字の表示
3337
34−`-A`/`--show-all` オプションをつけることで、空白文字を可視化できます:
38+`-A`/`--show-all` オプションをつけることで
39+印刷できない文字を可視化できます:
3540
3641![Non-printable character example](https://i.imgur.com/WndGp9H.png)
3742
38−### 自動呼び出し
43+### 自動ページング
3944
40−出力が1つの画面に対して大きすぎる場合、`bat` は自身の出力を `less` にパイプで繋げることが可能です。
45+出力が1つの画面に対して大きすぎる場合、`bat` は自身の出力をページャー(例えば `less`) にパイプで繋げます。
4146
4247### ファイルの連結
4348
44−あなたはさらにファイルを連結させるに使うことも可能です:wink:。
45−`bat` は非対話型のターミナルを検出すると、いつでも `cat` の完全互換として振る舞い、
49+あなたはさらにファイルを連結させるために使うことも可能です:wink:。
50+`bat` は非対話型のターミナルを検出すると(すなわち他のプロセスにパイプしたりファイル出力していると)、
51+`bat` は `cat` の完全互換として振る舞い、
4652プレーンなファイルを表示します。
4753
4854## 使い方
4955
50−単一のファイルを表示させたい
56+単一のファイルを表示させたい場合
5157
5258```bash
5359> bat README.md
@@ -59,7 +65,9 @@
5965> bat src/*.rs
6066```
6167
62−標準入力から自動的に構文を決定させたい場合
68+標準入力から自動的に構文を決定させたい場合(ハイライトされるのは、
69+たいていは `#!/bin/sh` のようなシバンを利用して、
70+ファイルの一行目から構文を決定できる場合のみです)
6371
6472```bash
6573> curl -s https://sh.rustup.rs | bat
@@ -88,117 +96,243 @@ bat -n main.rs # show line numbers (only)
8896bat f - g # output 'f', then stdin, then 'g'.
8997```
9098
99+### 他のツールとの統合
100+
101+#### `fzf`
102+
103+[`fzf`](https://github.com/junegunn/fzf) のプレビューウィンドウに `bat` を使用できます。
104+その場合、`bat` の `--color=always` オプションを用いてカラー出力を強制しなければなりません。
105+また、`--line-range` オプションを用いることで巨大なファイルの読み込み時間を制限できます:
106+```bash
107+fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'
108+```
109+
110+詳しくは [`fzf` の `README`](https://github.com/junegunn/fzf#preview-window) を参照してください。
111+
112+#### `find` or `fd`
113+
114+`find` の `-exec` オプションを使用して、`bat` ですべての検索結果をプレビューできます:
115+```bash
116+find … -exec bat {} +
117+```
118+
119+[`fd`](https://github.com/sharkdp/fd) を使用している場合は、`-X` /`-exec-batch` オプションを使用して同じことを行うことができます:
120+```bash
121+fd … -X bat
122+```
123+
124+#### `ripgrep`
125+
126+[`batgrep`](https://github.com/eth-p/bat-extras/blob/master/doc/batgrep.md) では、[`ripgrep`](https://github.com/BurntSushi/ripgrep) 検索結果のプリンターとして `bat` を使用できます。
127+
128+```bash
129+batgrep needle src/
130+```
131+
132+#### `tail -f`
133+
134+`bat` を `tail -f` と組み合わせて、構文強調表示を使用して特定のファイルを継続的に監視できます。
135+```bash
136+tail -f /var/log/pacman.log | bat --paging=never -l log
137+```
138+注意事項:`tail -f`と組み合わせるには、ページングをオフにしなければなりません。また、この場合は構文が自動検出されないため、明示的に指定(`-l log`)しています。
139+
140+#### `git`
141+
142+`bat` を `git show` と組み合わせて、
143+適切な構文強調表示を使用して特定のファイルの古いバージョンを表示できます:
144+```bash
145+git show v0.6.0:src/main.rs | bat -l rs
146+```
147+
148+差分内の構文強調表示は現在サポートされていないことに注意してください。 これを探しているなら、[`delta`](https://github.com/dandavison/delta) をチェックしてください。
149+
150+#### `xclip`
151+
152+`bat` の出力の行番号と Git 変更マーカーにより、ファイルの内容をコピーするのが難しくなる場合があります。
153+これを防ぐには、`-p` / `-plain` オプションを使用して `bat` を呼び出すか、
154+単に出力を `xclip` にパイプします:
155+```bash
156+bat main.cpp | xclip
157+```
158+`bat` は出力がリダイレクトされていることを検出し、プレーンファイルの内容を出力します。
159+
160+#### `man`
161+
162+`bat` は `MANPAGER` 環境変数を設定することにより、
163+`man` の色付けページャーとして使用できます:
164+
165+```bash
166+export MANPAGER="sh -c 'col -bx | bat -l man -p'"
167+man 2 select
168+```
169+
170+フォーマットの問題が発生した場合は
171+`MANROFFOPT="-c"` を設定する必要もあります。
172+
173+これを新しいコマンドにバンドルしたい場合は [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md) も使用できます。
174+
175+[Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) はこのリポジトリで開発されており、まだ作業が必要であることに注意してください。
176+
177+#### `prettier` / `shfmt` / `rustfmt`
178+
179+[`prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md) スクリプトは、コードをフォーマットし、`bat` で印刷するラッパーです。
180+
181+
91182## インストール
92183
93−### Ubuntu
184+[![Packaging status](https://repology.org/badge/vertical-allrepos/bat-cat.svg)](https://repology.org/project/bat-cat/versions)
185+
186+### On Ubuntu (`apt` を使用)
94187*... や他のDebianベースのLinuxディストリビューション*
95188
96−最新の `.deb` パッケージを[こちら](https://github.com/sharkdp/bat/releases)からダウンロードして、インストールしてください:
189+Ubuntu Eoan 19.10 または Debian 不安定版 sid 以降の [the Ubuntu `bat` package](https://packages.ubuntu.com/eoan/bat) または [the Debian `bat` package](https://packages.debian.org/sid/bat) からインストールできます:
97190
98−``` bash
99−sudo dpkg -i bat_0.12.1_amd64.deb # adapt version number and architecture
191+```bash
192+apt install bat
100193```
101194
102−### Arch Linux
195+`apt` を使用して `bat` をインストールした場合、実行可能ファイルの名前が `bat` ではなく `batcat` になることがあります([他のパッケージとの名前衝突のため](https://github.com/sharkdp/bat/issues/982))。`bat -> batcat` のシンボリックリンクまたはエイリアスを設定することで、実行可能ファイル名が異なることによる問題の発生を防ぎ、他のディストリビューションと一貫性を保てます。
103196
104−[Arch Linuxの公式リソース](https://www.archlinux.org/packages/community/x86_64/bat/)からインストールできます。
197+``` bash
198+mkdir -p ~/.local/bin
199+ln -s /usr/bin/batcat ~/.local/bin/bat
200+```
105201
202+### On Ubuntu (最新の `.deb` パッケージを使用)
203+*... や他のDebianベースのLinuxディストリビューション
204+
205+batの最新リリースを実行する場合、または Ubuntu/Debian の古いバージョンを使用している場合は、[release page](https://github.com/sharkdp/bat/releases) から最新の `.deb` パッケージをダウンロードし、
206+次の方法でインストールします:
106207```bash
107−pacman -S bat
208+sudo dpkg -i bat_0.18.3_amd64.deb # adapt version number and architecture
108209```
109210
110−### Void Linux
211+### On Alpine Linux
111212
112−xbps-ininstall経由で `bat` をインストールできます。
213+適切なリポジトリが有効になっている場合は、
214+公式のソースから [`bat` package](https://pkgs.alpinelinux.org/packages?name=bat) をインストールできます:
113215
216+```bash
217+apk add bat
114218```
115−xbps-install -S bat
219+
220+### On Arch Linux
221+
222+[Arch Linuxの公式リソース](https://www.archlinux.org/packages/community/x86_64/bat/)
223+からインストールできます。
224+
225+```bash
226+pacman -S bat
116227```
117228
118−### Fedora
229+### On Fedora
119230
120−[Fedora Modular](https://docs.fedoraproject.org/en-US/modularity/using-modules/)経由で `bat` をインストールできます。これはFedora 29以上ではデフォルトで有効化されています。 もしそうでなければ、 `dnf install fedora-repos-modular` を実行してセットアップし、 `fedora-modular` と `fedora-updates-modular` が `/etc/yum.repos.d` で有効化されていることを確認してください。
231+公式の [Fedora Modular](https://docs.fedoraproject.org/en-US/modularity/using-modules/) リポジトリから [the `bat` package](https://koji.fedoraproject.org/koji/packageinfo?packageID=27506) をインストールできます。
121232
122233```bash
123−dnf module install bat
234+dnf install bat
124235```
125236
126−### Gentoo Linux
237+### On Gentoo Linux
127238
128−[Gentoo Linuxの公式リソース](https://packages.gentoo.org/packages/sys-apps/bat)からインストールできます。
239+公式ソースから
240+[the `bat` package](https://packages.gentoo.org/packages/sys-apps/bat) をインストールできます。
129241
130242```bash
131243emerge sys-apps/bat
132244```
133245
134−### FreeBSD
246+### On Void Linux
247+
248+xbps-install経由で `bat` をインストールできます。
249+```
250+xbps-install -S bat
251+```
252+
253+### On FreeBSD
135254
136−事前にコンパイル済みである[pkg](https://www.freshports.org/textproc/bat)をインストールできます:
255+pkg を使用してプリコンパイルされた [`bat` package](https://www.freshports.org/textproc/bat) をインストールできます:
137256
138257```bash
139258pkg install bat
140259```
141260
142−または、FreeBSDのportsから自身でビルドすることも可能です:
261+または FreeBSD ポートから自分でビルドすることもできます:
143262
144263```bash
145264cd /usr/ports/textproc/bat
146265make install
147266```
148267
149−### nix
268+### Via nix
150269
151−`bat` を[nix package manager](https://nixos.org/nix)経由でインストールすることができます:
270+`bat` を [nix package manager](https://nixos.org/nix) 経由でインストールすることができます:
152271
153272```bash
154273nix-env -i bat
155274```
156275
157−### openSUSE
158−
159−You can install `bat` with zypper:
276+### On openSUSE
160277
161278`bat` をzypperでインストールすることができます:
162279
163−```
280+```bash
164281zypper install bat
165282```
166283
167−### macOS
168−
169−[Homebrew](http://braumeister.org/formula/bat)でインストールすることができます:
284+### On macOS
170285
286+[Homebrew](http://braumeister.org/formula/bat)で `bat` をインストールできます:
171287
172288```bash
173289brew install bat
174290```
175291
176−### Windows
292+または [MacPorts](https://ports.macports.org/port/bat/summary) で `bat` をインストールします:
177293
178−You can download prebuilt binaries from the [Release page],
179−or install it with :
294+```bash
295+port install bat
296+```
297+
298+### On Windows
180299
181−事前にビルド済みのバイナリを[リリースページ](https://github.com/sharkdp/bat/releases)からダウンロードすることができます。または、[scoop](https://scoop.sh/)でインストールすることも可能です。
300+Windowsにbatをインストールするいくつかのオプションがあります。
301+batをインストールしたら [Windowsでのbatの使用](#windows-での-bat-の利用) セクションをご覧ください。
182302
303+#### With Chocolatey
304+
305+[Chocolatey](https://chocolatey.org/packages/Bat) から `bat` をインストールできます:
306+```bash
307+choco install bat
308+```
309+
310+#### With Scoop
311+
312+[scoop](https://scoop.sh/) から `bat` をインストールできます:
183313```bash
184314scoop install bat
185315```
186316
187−[See below](#using-bat-on-windows) for notes.
317+[Visual C ++再頒布可能](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) パッケージをインストールする必要があります。
318+
319+#### From prebuilt binaries:
188320
189−### Docker
321+[リリースページ](https://github.com/sharkdp/bat/releases) からビルド済みのバイナリをダウンロードできます。
190322
323+[Visual C ++再頒布可能](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) パッケージをインストールする必要があります。
191324
192−コンテナ内で`bat` を使いたい方のために[Docker image](https://hub.docker.com/r/danlynn/bat/)が用意されています。
325+### Via Docker
193326
327+コンテナ内で `bat` を使いたい方のために [Docker image](https://hub.docker.com/r/danlynn/bat/) が用意されています:
194328```bash
195329docker pull danlynn/bat
196330alias bat='docker run -it --rm -e BAT_THEME -e BAT_STYLE -e BAT_TABS -v "$(pwd):/myapp" danlynn/bat'
197331```
198332
199−### Ansible
333+### Via Ansible
200334
201−[Ansible](https://www.ansible.com/)でインストールすることができます:
335+[Ansible](https://www.ansible.com/) でインストールすることができます:
202336
203337```bash
204338# Install role on local machine
@@ -227,45 +361,58 @@ ansible-galaxy install aeimer.install_bat
227361### From binaries
228362
229363
230−多くの異なるアーキテクチャのためのプレビルドバージョンを[リリースページ](https://github.com/sharkdp/bat/releases)からチェックしてみてください。静的にリンクされている多くのバイナリも利用できます: ファイル名に `musl` を含むアーカイブを探します。
364+多くの異なるアーキテクチャのためのプレビルドバージョンを[リリースページ](https://github.com/sharkdp/bat/releases)からチェックしてみてください。静的にリンクされている多くのバイナリも利用できます: ファイル名に `musl` を含むアーカイブを探してみてください。
231365
232366### From source
233367
234368
235−`bat` をソースからビルドしたいならば、Rust 1.29 以上の環境が必要です。そして、 `cargo` をビルドに対して使用します:
369+`bat` をソースからビルドしたいならば、Rust 1.51 以上の環境が必要です。
370+`cargo` を使用してビルドすることができます:
236371
237372```bash
238−cargo install bat
373+cargo install --locked bat
239374```
240375
376+一部のプラットフォームでは `llvm` および/または `libclang-dev` のインストールが必要になる場合があります。
241377
242378## カスタマイズ
243379
244380### ハイライト テーマ
245381
246−`bat --list-themes` を使うと現在利用可能なシンタックスハイライトのテーマを入手できます。 `TwoDark` テーマを選ぶためには `--theme=TwoDark` オプションをつけるか `BAT_THEME` という環境変数に `TwoDark` を代入する必要があります。 シェルの起動ファイルに `export BAT_THEME="TwoDark"` と定義すればその設定が変わることはないでしょう。あるいは、 `bat` の[設定ファイル](https://github.com/sharkdp/bat#configuration-file)を利用してください。
382+`bat --list-themes` を使うと現在利用可能なシンタックスハイライトのテーマを入手できます。
383+`TwoDark` テーマを選ぶためには
384+`--theme=TwoDark` オプションをつけるか `BAT_THEME` という環境変数に
385+`TwoDark` を代入する必要があります。 シェルの起動ファイルに `export BAT_THEME="TwoDark"`
386+と定義すればその設定が変わることはないでしょう。あるいは、 `bat` の
387+[設定ファイル](#設定ファイル)を利用してください。
247388
248−
249−もし、ファイルにより異なるテーマを利用したい場合は、以下の[`fzf`](https://github.com/junegunn/fzf)を利用した以下のコマンドを使うことができます:
389+カスタムファイルでさまざまなテーマをプレビューする場合は、
390+次のコマンドを使用できます(これには [`fzf`](https://github.com/junegunn/fzf) が必要です)。
250391``` bash
251392bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file"
252393```
253394
254−`bat` はデフォルトだと黒い背景色のターミナルに適しています。しかし、`GitHub` や `OneHalfLight` のような白い背景色のテーマでもいい感じにすることができます。
255−以下のカスタムテーマを参考にしてみてください。
256−['Adding new themes' section below](https://github.com/sharkdp/bat#adding-new-themes)
395+`bat` はデフォルトだと黒い背景色のターミナルに適しています。
396+しかし、`GitHub` や `OneHalfLight` のような白い背景色のテーマでもいい感じにすることができます。
397+['新しいテーマの追加' セクションに従って](#新しいテーマの追加)
398+カスタムテーマを使用することもできます。
257399
258400### 出力のスタイル
259401
260−`--style` を使うことで `bat` の表示の見た目を変更することができます。例えば、 `--style=numbers,changes` と入力します。すると、Gitの差分と行番号だけが表示され、グリッド線とファイルヘッダーは表示されません。
402+`--style` を使うことで `bat` の表示の見た目を変更することができます。
403+例えば、 `--style=numbers,changes` と入力します。
404+すると、Gitの差分と行番号だけが表示され、グリッド線とファイルヘッダーは表示されません。
261405環境変数に `BAT_STYLE` を定義するとこれらの設定を永続的に使用することができます。
262−[設定ファイル](https://github.com/sharkdp/bat#configuration-file)を参考にしても良いでしょう。
406+[設定ファイル](#設定ファイル) を参考にしても良いでしょう。
263407
264408### 新しい構文の追加 / 言語の定義
265409
266−`bat` はシンタックスハイライトのための[`syntext`](https://github.com/trishume/syntect/)という最高にイケてるライブラリを使用しています。`syntect` はSublime Textのために作られた[`.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)テーマです。新しい構文を定義するために以下の手順を行います。
410+`bat` はシンタックスハイライトのための [`syntect`](https://github.com/trishume/syntect/)
411+という素晴らしいライブラリを使用しています。`syntect` は、
412+[Sublime Text の `.sublime-syntax` ファイル](https://www.sublimetext.com/docs/3/syntax.html)
413+とテーマを読み取ることができます。新しい構文を定義するために以下の手順を行います。
267414
268−構文定義ファイルを入れておくためのフォルダを作る:
415+構文定義ファイルを入れておくためのフォルダを作ります:
269416
270417```bash
271418mkdir -p "$(bat --config-dir)/syntaxes"
@@ -283,6 +430,7 @@ bat cache --build
283430```
284431
285432最後に `bat --list-languages` と入力すると新しい言語が利用可能かどうかチェックします。
433+
286434デフォルトの設定に戻したいときは以下のコマンドを実行します:
287435
288436```bash
@@ -305,42 +453,65 @@ git clone https://github.com/greggb/sublime-snazzy
305453bat cache --build
306454```
307455
308−最後に、 `bat --list-themes` で新しいテーマが利用可能がチェックします
456+最後に、 `bat --list-themes` で新しいテーマが利用可能かチェックします
309457
310458### 異なるページャーの使用
311459
312460`bat` は環境変数 `PAGER` に使用するページャーを明記します。
313−この環境変数が定義されていない場合、デフォルトで `less` が使用されます。もし、異なるページャーが使用したい場合は、`PAGER` を修正してください。または、`PAGER` を上書きする環境変数として `BAT_PAGER` を定義することも可能です。
461+この環境変数が定義されていない場合、デフォルトで `less` が使用されます。
462+もし、異なるページャーを使用したい場合は、`PAGER` を修正してください。
463+または、`PAGER` を上書きする環境変数として `BAT_PAGER` を定義することも可能です。
464+
465+もし、ページャーにコマンドライン引数を渡したい場合は、
466+`PAGER`/`BAT_PAGER` 環境変数を定義してください:
314467
315−もし、ページャーにコマンドライン引数を渡したい場合は、 `PAGER`/`BAT_PAGER` 環境変数を定義してください:
316468```bash
317469export BAT_PAGER="less -RF"
318470```
319471
320−環境変数を利用する代わりに、 `bat` の[設定ファイル](https://github.com/sharkdp/bat#configuration-file)の `--pager` オプションを使用することも可能です。
472+環境変数を利用する代わりに、 `bat` の [設定ファイル](#設定ファイル) を使用して設定も可能です(`--pager` オプション)
321473
322−**注意**: デフォルトにより、ページャーが `less` にセットされているならば `bat` は以下のコマンドラインを受け付けるでしょう。
323−ページャーのオプション: `-R`/`--RAW-CONTROL-CHARS`, `-F`/`--quit-if-one-screen` , `-X`/`--no-init`
324−最初の `-R` はANSIカラーを正しく解釈するために必要です。2番目の `-F` は出力サイズがターミナルの縦のサイズよりも小さいならば `less` に即座に終了するように命令します。したがって、少量のファイルのためにページャーを終了する `q` を押す必要がありません。3番目のオプションの `-X` は `less` の古いバージョンの機能である `--quit-if-one-screen` でバグを修正するために必要です。運の悪いことに、これは `less` のマウス-ホイールのサポートを無効にします。もし、マウス-ホイール スクローリングを有効にしたいなら、`-R` だけをオプションとしてつけてください(ただし、これは `--quit-if-one-screen` を無効にするでしょう)。または、 `less` の最近バージョンを利用し、 `-RF` をつけてください。 これは望ましいことに `--quit-if-one-screen` と マウス-ホイールスクローリングの両方を有効にするでしょう。
474+**注意**: デフォルトにより、ページャーが `less` にセットされているならば
475+`bat` はページャーの以下のコマンドラインオプション を受け付けるでしょう:
476+`-R`/`--RAW-CONTROL-CHARS`, `-F`/`--quit-if-one-screen` そして `-X`/`--no-init`。
477+最後のオプション(-X)は、530 より古いバージョンにのみ使用されます。
325478
326−スクロールが未だ動作しないのであれば、加えて `-S` オプションを追加してみてください。
479+`-R` オプションは、ANSIカラーを正しく解釈するために必要です。
480+2番目のオプション(`-F`)は、出力サイズが端末の垂直サイズよりも小さい場合、すぐに終了するようにlessに指示します。
481+これは、ページャーを終了するために `q` を押す必要がないため、小さなファイルに便利です。
482+3番目のオプション(`-X`)は、`less` の古いバージョンの `--quit-if-one-screen` 機能のバグを修正するために必要です。
483+残念ながら、`less` のマウスホイールのサポートも少なくなります。
327484
328−## 設定ファイル
485+`less` の古いバージョンでマウスホイールのスクロールを有効にしたい場合は、
486+`-R` だけを渡すことができます(上記の例のように、これは1画面終了機能を無効にします)。
487+530以下の場合は、そのまま使用できます。
488+
489+### Dark mode
329490
491+macOSでダークモード機能を使用する場合、OSテーマに基づいて異なるテーマを使用するように `bat` を構成することができます。
492+次のスニペットは、ライトモードの場合は `デフォルト` のテーマを使用し、
493+ダークモードの場合は `GitHub` テーマを使用します。
330494
331−`bat` は設定ファイルでカスタマイズすることが可能です。ファイルの場所はOSに依存します。使用しているOSのデフォルトパスを調べるには以下のコマンドを実行してください:
495+```bash
496+alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
497+```
498+
499+## 設定ファイル
500+
501+`bat` は設定ファイルでカスタマイズすることが可能です。ファイルの場所はOSに依存します。
502+使用しているOSのデフォルトパスを調べるには以下のコマンドを実行してください:
332503```
333504bat --config-file
334505```
335506
336−また、環境変数 `BAT_CONFIG_PATH` に設定ファイルの場所を明記することもできます:
507+または、`BAT_CONFIG_PATH` 環境変数を使用して、`bat` が
508+構成ファイルのデフォルト以外の場所を指すようにすることができます:
337509```bash
338510export BAT_CONFIG_PATH="/path/to/bat.conf"
339511```
340512
341513### フォーマット
342514
343−
344515この設定ファイルはコマンドライン引数の単純なリストです。 `bat --help` を利用すると、利用可能なオプションとその値を閲覧することができます。さらに、`#` でコメント文を加えることができます。
345516
346517設定ファイルの例:
@@ -354,15 +525,11 @@ export BAT_CONFIG_PATH="/path/to/bat.conf"
354525# Use italic text on the terminal (not supported on all terminals)
355526--italic-text=always
356527
357−# Add mouse scrolling support in less (does not work with older
358−# versions of "less")
359−--pager="less -FR"
360−
361−# Use C++ syntax (instead of C) for .h header files
362−--map-syntax h:cpp
528+# Use C++ syntax for Arduino .ino files
529+--map-syntax "*.ino:C++"
363530
364−# Use "gitignore" highlighting for ".ignore" files
365−--map-syntax .ignore:.gitignore
531+# Use ".gitignore"-style highlighting for ".ignore" files
532+--map-syntax ".ignore:Git Ignore"
366533```
367534
368535## Windows での `bat` の利用
@@ -371,22 +538,29 @@ Windows 上で `bat` はほとんど動作しますが、いくつかの機能
371538
372539### ページング
373540
374−Windowsには、`more`形式の非常に限られたページャーしか含まれていません。[ホームページ](http://www.greenwoodsoftware.com/less/download.html)または[Chocolatey](https://chocolatey.org/packages/Less)からWindows用の`less`バイナリをダウンロードできます。 使用するには、バイナリを`PATH`の通っているディレクトリに配置するか、[環境変数を定義](#異なるページャーの使用)します。
375−
541+Windowsには、`more` 形式の非常に限られたページャーしか含まれていません。
542+`less` 用のWindowsバイナリは、[ホームページ](http://www.greenwoodsoftware.com/less/download.html) または
543+[Chocolatey](https://chocolatey.org/packages/Less) からダウンロードできます。
544+これを使用するには、バイナリを `PATH` のディレクトリに配置するか、環境変数を定義します。[Chocolateyパッケージ](#on-windows) は `less` を自動的にインストールします。
376545
377546### 色
378547
379−Windows 10 は[v1151](https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1511_(November_Update))からbashの新しいバージョンと同様に `conhost.exe`(コマンドプロンプト)と PowerShell の色をネイティブサポートしていません。Windows の新しいバージョンでは、[Cmder](http://cmder.net/)を使うことができます。これは[ConEmu](https://conemu.github.io/)を含んでいます。
548+Windows 10では、`conhost.exe` (コマンドプロンプト)と
549+[v1511](https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1511_(November_Update)) 以降の PowerShell の両方、
550+およびbashの新しいバージョンの色がネイティブにサポートされています。 以前のバージョンのWindowsでは、
551+[ConEmu](https://conemu.github.io/) を含む [Cmder](http://cmder.net/) を使用できます。
380552
381−**注意:** Git と MSYS の `less` はWindows上で色を正しく解釈しません。もし、あなたが他のページャーをインストールしていないのであれば、 `--paging=never` オプションを付け加えるまたは `BAT_PAGER` に空文字を設定することでページングを完全に無効にできます。
553+**注意:** Git と MSYS の `less` はWindows上で色を正しく解釈しません。
554+もし、あなたが他のページャーをインストールしていないのであれば、 `--paging=never` オプションを付け加えるか
555+`BAT_PAGER` に空文字を設定することでページングを完全に無効にできます。
382556
383557### Cygwin
384558
385−Windows上の `bat` は Cygwin のunix風のpath(`/cygdrive/*`)をネイティブサポートしていません。
386−絶対的なcygwinパスを引数として受けたときに、 `bat` は以下のエラーを返すでしょう: `The system cannot find the path specified. (os error 3)`
559+Windows上の `bat` は Cygwin のunix風のpath(`/cygdrive/*`)をネイティブサポートしていません。絶対的なcygwinパスを引数として受けたときに、 `bat` は以下のエラーを返すでしょう: `The system cannot find the path specified. (os error 3)`
560+
561+wrapperを作成するか、以下の関数を `.bash_profile` に追記することで、この問題を解決することができます:
387562
388−wrapperを作成するまたは以下の関数を `.bash_profile` に追記することでこの問題を解決することができます:
389−```shell
563+```bash
390564bat() {
391565 local index
392566 local args=("$@")
@@ -404,15 +578,32 @@ bat() {
404578
405579### ターミナルと色
406580
407−`bat` はターミナルがトゥルーカラーをサポートしている/していない関係なくサポートします。しかし、シンタックスハイライトのテーマの色が8-bitカラーに最適化されていない場合、24-bitであるトゥルーカラーをサポートしているターミナルを使用することを強く推奨します(`terminator`, `konsole`, `iTerm2`, ...)。
408−この[記事](https://gist.github.com/XVilka/8346728)には24-bitカラーがサポートされているターミナルの一覧が掲載されています。
581+`bat` はターミナルがトゥルーカラーをサポートしている/していないに関係なくサポートします。
582+しかし、シンタックスハイライトのテーマの色が8-bitカラーに最適化されていない場合、
583+24-bitであるトゥルーカラーをサポートしているターミナルを使用することを強く推奨します(`terminator`, `konsole`, `iTerm2`, ...)。
584+この [記事](https://gist.github.com/XVilka/8346728) には
585+24-bitカラーがサポートされているターミナルの一覧が掲載されています。
409586
410−本当の色をターミナルにセットするために、環境変数 `COLORTERM` に `truecolor` か `24bit` のどちらかを代入してください。さもなければ、 `bat` はどの色を使うのか決定することができません。または、24-bit エスケープシーケンスがサポートされません(そして、8-bit colorに戻ります)。
587+本当の色をターミナルにセットするために、環境変数 `COLORTERM` に `truecolor` か
588+`24bit` のどちらかを代入してください。さもなければ、`bat` はどの色を使うのか決定することができません。または、24-bit エスケープシーケンスがサポートされません
589+(そして、8-bit colorに戻ります)。
411590
412591### 行番号とグリッド線がほとんど見えない
413592
414−異なるテーマを試してみてください(`bat --list-themes` でテーマを閲覧できます)。 `OneHalfDark` と `OneHalfLight` テーマはグリッド線と線の色を明るくします。
593+異なるテーマを試してみてください(`bat --list-themes` でテーマを閲覧できます)。
594+`OneHalfDark` と `OneHalfLight` テーマはグリッド線と線の色を明るくします。
415595
596+### ファイルエンコーディング
597+
598+`bat` は UTF-16 と同様に UTF-8 をネイティブにサポートします。
599+他のすべてのファイルエンコーディングでは、エンコーディングは通常自動検出できないため、最初に UTF-8 に変換する必要があります。
600+これを行うには `iconv` を使用できます。
601+例: Latin-1(ISO-8859-1)エンコーディングの PHP ファイルがある場合、次のように呼び出すことができます:
602+``` bash
603+iconv -f ISO-8859-1 -t UTF-8 my-file.php | bat
604+```
605+注: `bat` が構文を自動検出できない場合は
606+`-l` / `-language` オプションを使用する必要がある場合があります。
416607
417608## 開発
418609
@@ -428,27 +619,32 @@ cargo build --bins
428619cargo test
429620
430621# Install (release version)
431−cargo install
622+cargo install --locked
432623
433624# Build a bat binary with modified syntaxes and themes
434625bash assets/create.sh
435−cargo install -f
626+cargo install --locked --force
436627```
437628
629+## Maintainers
630+
631+- [sharkdp](https://github.com/sharkdp)
632+- [eth-p](https://github.com/eth-p)
633+
438634## プロジェクトの目標と既存の類似したOSS
439635
440636`bat` は以下の目標を達成しようと試みています:
441637
442−- 美しい高度なシンタックスハイライトの提供
638+- 美しく高度なシンタックスハイライトの提供
443639- ファイルの差分を表示するためのGitとの連携
444640- (POSIX) `cat` との完全互換
445−- ユーザーフレンドリーがコマンドラインインターフェースの提供
641+- ユーザーフレンドリーなコマンドラインインターフェースの提供
446642
447−既存の類似したOSSはたくさんあります。
448−`bat` とこれらを比較した表が[こちら](alternatives.md)にあります。
643+あなたが同様のプログラムを探しているなら、多くの選択肢があります。
644+比較については [このドキュメント](alternatives.md) を参照してください。
449645
450646## ライセンス
451−Copyright (c) 2018-2020 [bat-developers](https://github.com/sharkdp/bat).
647+Copyright (c) 2018-2021 [bat-developers](https://github.com/sharkdp/bat).
452648
453649`bat` は MIT License 及び Apache License 2.0 の両方の条件の下で配布されています。
454650
doc/README-ko.mdnew file+835
@@ -0,0 +1,835 @@
1+<p align="center">
2+ <img src="logo-header.svg" alt="bat - a cat clone with wings"><br>
3+ <a href="https://github.com/sharkdp/bat/actions?query=workflow%3ACICD"><img src="https://github.com/sharkdp/bat/workflows/CICD/badge.svg" alt="Build Status"></a>
4+ <img src="https://img.shields.io/crates/l/bat.svg" alt="license">
5+ <a href="https://crates.io/crates/bat"><img src="https://img.shields.io/crates/v/bat.svg?colorB=319e8c" alt="Version info"></a><br>
6+ 문법 강조와 Git 통합 기능의 <i>cat(1)</i> 클론
7+</p>
8+
9+<p align="center">
10+ <a href="#문법-강조">주요 기능들</a> •
11+ <a href="#사용법">사용법</a> •
12+ <a href="#설치">설치</a> •
13+ <a href="#사용자화">사용자화</a> •
14+ <a href="#프로젝트-목표와-대안들">프로젝트 목표와 대안들</a><br>
15+ [<a href="../README.md">English</a>]
16+ [<a href="README-zh.md">中文</a>]
17+ [<a href="README-ja.md">日本語</a>]
18+ [한국어]
19+ [<a href="README-ru.md">Русский</a>]
20+</p>
21+
22+### 문법 강조
23+
24+`bat`은 다양한 프로그래밍 및 마크업 언어의 문법 강조(syntax highlighting) 기능을
25+지원합니다:
26+
27+![Syntax highlighting example](https://imgur.com/rGsdnDe.png)
28+
29+### Git 통합
30+
31+`bat`은 `git`을 통해 인덱스와 함께 변경분을 표시합니다
32+(왼쪽 사이드바를 확인하세요):
33+
34+![Git integration example](https://i.imgur.com/2lSW4RE.png)
35+
36+### 비인쇄 문자 처리
37+
38+`-A`/`--show-all` 옵션을 사용하여 비인쇄 문자를 표시 및 강조할 수 있습니다:
39+
40+![Non-printable character example](https://i.imgur.com/WndGp9H.png)
41+
42+### 자동 페이징
43+
44+`bat`은 기본적으로 한 화면에 비해 출력이 큰 경우 `less`와 같은 페이저(pager)로
45+출력을 연결(pipe)합니다.
46+만약 `bat`을 언제나 `cat`처럼 작동하게 하려면 (출력을 페이지하지 않기),
47+`--paging=never` 옵션을 커맨드 라인이나 설정 파일에 넣을 수 있습니다.
48+셸(shell) 설정에서 `cat`을 `bat`의 alias로 사용하려면,
49+`alias cat='bat --paging=never'`를 써서 기본 행동을 유지할 수 있습니다.
50+
51+### 파일 연결(concatenation)
52+
53+페이저(pager)를 사용하더라도 `bat`은 파일들을 연결(concatenate)할 수 있습니다
54+:wink:.
55+`bat`이 비대화형(non-interactive) 터미널(예를 들어, 다른 프로세스나 파일에
56+연결(pipe)한 경우)을 감지하면, `bat`은 `--pager` 옵션의 값과 상관없이 `cat`과
57+동일하게 파일 내용을 그대로 출력합니다.
58+
59+## 사용법
60+
61+터미널에 하나의 파일 표시하기
62+
63+```bash
64+> bat README.md
65+```
66+
67+여러 파일 한 번에 보여주기
68+
69+```bash
70+> bat src/*.rs
71+```
72+
73+stdin에서 읽고, 자동으로 맞는 문법 결정하기 (참고로, 문법 강조는 파일의 첫
74+줄만으로 문법이 결정될 수 있을 때만 작동합니다.
75+이는 보통 `#!/bin/sh`와 같은 셔뱅(shebang)으로 판단합니다.)
76+
77+```bash
78+> curl -s https://sh.rustup.rs | bat
79+```
80+
81+stdin에서 읽고, 명시적으로 언어 지정하기
82+
83+```bash
84+> yaml2json .travis.yml | json_pp | bat -l json
85+```
86+
87+비인쇄 문자 표시 및 강조하기
88+```bash
89+> bat -A /etc/hosts
90+```
91+
92+`cat` 대신 사용하기:
93+
94+```bash
95+bat > note.md # quickly create a new file
96+
97+bat header.md content.md footer.md > document.md
98+
99+bat -n main.rs # show line numbers (only)
100+
101+bat f - g # output 'f', then stdin, then 'g'.
102+```
103+
104+### 다른 도구들과 통합하기
105+
106+#### `fzf`
107+
108+`bat`을 [`fzf`](https://github.com/junegunn/fzf)의 프리뷰로 쓸 수 있습니다.
109+이를 위해서는 `bat`의 `--color=always` 옵션으로 항상 컬러 출력이 나오게 해야
110+합니다.
111+또한 `--line-range` 옵션으로 긴 파일의 로드 시간을 제한할 수 있습니다:
112+```bash
113+fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'
114+```
115+더 많은 정보는
116+[`fzf`의 `README`](https://github.com/junegunn/fzf#preview-window)를 참고하세요.
117+
118+#### `find`와 `fd`
119+
120+`find`의 `-exec` 옵션을 사용하여 모든 검색 결과를 `bat`로 미리 볼 수 있습니다:
121+```bash
122+find … -exec bat {} +
123+```
124+
125+[`fd`](https://github.com/sharkdp/fd)를 사용하는 경우, `-X`/`--exec-batch`
126+옵션을 이용하여 동일하게 사용할 수 있습니다:
127+```bash
128+fd … -X bat
129+```
130+
131+#### `ripgrep`
132+
133+[`batgrep`](https://github.com/eth-p/bat-extras/blob/master/doc/batgrep.md)을
134+통해 `bat`로 [`ripgrep`](https://github.com/BurntSushi/ripgrep)의 검색 결과를
135+출력할 수 있습니다.
136+
137+```bash
138+batgrep needle src/
139+```
140+
141+#### `tail -f`
142+
143+`bat`와 `tail -f`를 함께 사용하여 주어진 파일을 문법 강조하며 지속적으로
144+모니터할 수 있습니다.
145+```bash
146+tail -f /var/log/pacman.log | bat --paging=never -l log
147+```
148+참고로 이 작업을 하려면 페이징 기능을 꺼야 합니다.
149+또한 이 경우 문법을 자동 감지할 수 없기 때문에, 적용할 문법을 직접 지정해야
150+합니다 (`-l log`).
151+
152+#### `git`
153+
154+`bat`과 `git show`를 함께 사용하여 주어진 파일의 이전 버전을 올바른 문법 강조로
155+볼 수 있습니다:
156+```bash
157+git show v0.6.0:src/main.rs | bat -l rs
158+```
159+
160+#### `git diff`
161+
162+`bat`과 `git diff`를 함께 사용하여 수정된 코드 주위의 줄들을 올바른 문법 강조로
163+볼 수 있습니다:
164+```bash
165+batdiff() {
166+ git diff --name-only --diff-filter=d | xargs bat --diff
167+}
168+```
169+이것을 별도의 도구로 쓰고 싶다면
170+[`bat-extras`](https://github.com/eth-p/bat-extras)의 `batdiff`를 확인해 보세요.
171+
172+Git과 diff의 더 많은 지원을 원한다면
173+[`delta`](https://github.com/dandavison/delta)를 확인해 보세요.
174+
175+#### `xclip`
176+
177+`bat` 출력에 줄 번호와 Git 수정 내역이 포함되어서 파일의 내용을 복사하기
178+어려울 수 있습니다.
179+이 경우에는 `bat`의 `-p`/`--plain` 옵션을 사용하거나 간단히 `xclip`으로 출력을
180+연결(pipe)하면 됩니다:
181+```bash
182+bat main.cpp | xclip
183+```
184+`bat`는 출력이 우회되고 있다는 것을 감지하여 파일 내용 그대로를 출력합니다.
185+
186+#### `man`
187+
188+`MANPAGER` 환경 변수 설정을 통해 `bat`을 `man`의 컬러 페이저(pager)로 쓸 수
189+있습니다.
190+
191+```bash
192+export MANPAGER="sh -c 'col -bx | bat -l man -p'"
193+man 2 select
194+```
195+(Debian이나 Ubuntu를 사용한다면 `bat`을 `batcat`으로 치환하세요.)
196+
197+포팻 문제가 발생한다면, `MANROFFOPT="-c"`을 써야 할 수 있습니다.
198+
199+이 기능을 포함한 새로운 명령어를 선호한다면,
200+[`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md)을 쓸
201+수도 있습니다.
202+
203+참고로 [Manpage 문법](../assets/syntaxes/Manpage.sublime-syntax)은 본 저장소에서
204+개발 중에 있으며, 아직 더 손봐야 합니다.
205+
206+또한, 이는 Mandoc의 `man` 구현에서
207+[작동하지 않습니다](https://github.com/sharkdp/bat/issues/1145).
208+
209+#### `prettier` / `shfmt` / `rustfmt`
210+
211+[`prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md)
212+스크립트는 코드를 포맷하고 `bat`으로 출력하는 래퍼(wrapper)입니다.
213+
214+
215+## 설치
216+
217+[![Packaging status](https://repology.org/badge/vertical-allrepos/bat-cat.svg)](https://repology.org/project/bat-cat/versions)
218+
219+### Ubuntu에서 (`apt` 사용)
220+*... 그리고 다른 Debian 기반의 Linux 배포판들에서.*
221+
222+`bat`은 [Ubuntu](https://packages.ubuntu.com/eoan/bat)와
223+[Debian](https://packages.debian.org/sid/bat) 패키지 배포 과정에 도입되는 중이며,
224+Eoan 19.10 버전의 Ubuntu에서부터 제공됩니다.
225+현재 Debian에서는 불안정한 "Sid" 브랜치에서만 `bat`이 제공됩니다.
226+
227+만약 충분히 최신 버전의 Ubuntu/Debian이 설치되어 있다면 간단히 다음을 실행하세요:
228+
229+```bash
230+apt install bat
231+```
232+
233+**중요**: 만약 `bat`을 이와 같이 설치한다면, ([다른 패키지와의 이름
234+충돌](https://github.com/sharkdp/bat/issues/982)로 인하여) `bat` 대신에
235+`batcat`이라는 이름의 실행 파일로 설치될 수 있음을 참고하세요.
236+이에 따른 문제들과 다른 배포판들과의 일관성을 위하여 `bat -> batcat` symlink
237+혹은 alias를 설정할 수 있습니다:
238+``` bash
239+mkdir -p ~/.local/bin
240+ln -s /usr/bin/batcat ~/.local/bin/bat
241+```
242+
243+### Ubuntu에서 (가장 최신 `.deb` 패키지들 사용)
244+*... 그리고 다른 Debian 기반의 Linux 배포판들에서.*
245+
246+만약 여러분이 설치한 Ubuntu/Debian에 패키지가 배포되지 않거나 가장 최신 릴리즈된
247+`bat`을 원한다면, [릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서
248+다음과 같이 `.deb` 패키지를 받아 설치하세요:
249+
250+```bash
251+sudo dpkg -i bat_0.18.3_amd64.deb # adapt version number and architecture
252+```
253+
254+### Alpine Linux에서
255+
256+적절한 저장소가 활성화되어 있다면, 공식 소스를 통해
257+[`bat` 패키지](https://pkgs.alpinelinux.org/packages?name=bat)를 설치할 수
258+있습니다:
259+
260+```bash
261+apk add bat
262+```
263+
264+### Arch Linux에서
265+
266+공식 소스를 통해
267+[`bat` 패키지](https://www.archlinux.org/packages/community/x86_64/bat/)를
268+설치할 수 있습니다:
269+
270+```bash
271+pacman -S bat
272+```
273+
274+### Fedora에서
275+
276+공식
277+[Fedora 모듈](https://docs.fedoraproject.org/en-US/modularity/using-modules/)
278+저장소에서
279+[`bat` 패키지](https://koji.fedoraproject.org/koji/packageinfo?packageID=27506)를
280+설치할 수 있습니다:
281+
282+```bash
283+dnf install bat
284+```
285+
286+### Funtoo Linux에서
287+
288+dev-kit을 통해 [`bat` 패키지](https://github.com/funtoo/dev-kit/tree/1.4-release/sys-apps/bat)를 설치할 수 있습니다:
289+
290+```bash
291+emerge sys-apps/bat
292+```
293+
294+### Gentoo Linux에서
295+
296+공식 소스를 통해
297+[`bat` 패키지](https://packages.gentoo.org/packages/sys-apps/bat)를 설치할 수
298+있습니다:
299+
300+```bash
301+emerge sys-apps/bat
302+```
303+
304+### Void Linux에서
305+
306+xbps-install을 이용해 `bat`을 설치할 수 있습니다:
307+```bash
308+xbps-install -S bat
309+```
310+
311+### Termux에서
312+
313+pkg를 이용해 `bat`을 설치할 수 있습니다:
314+```bash
315+pkg install bat
316+```
317+
318+### FreeBSD에서
319+
320+pkg를 이용하여 미리 컴파일된
321+[`bat` 패키지](https://www.freshports.org/textproc/bat)를 설치할 수 있습니다:
322+
323+```bash
324+pkg install bat
325+```
326+
327+또는 FreeBSD 포트에서 직접 빌드할 수도 있습니다:
328+
329+```bash
330+cd /usr/ports/textproc/bat
331+make install
332+```
333+
334+### nix를 써서
335+
336+[nix package manager](https://nixos.org/nix)를 이용해 `bat`을 설치할 수
337+있습니다:
338+
339+```bash
340+nix-env -i bat
341+```
342+
343+### openSUSE에서
344+
345+zypper를 이용해 `bat`을 설치할 수 있습니다:
346+
347+```bash
348+zypper install bat
349+```
350+
351+### snap 패키지를 써서
352+
353+지금으로서는 추천하는 snap 패키지가 없습니다.
354+제공되는 패키지들이 존재할 수는 있지만, 공식적으로 지원되지 않으며
355+[문제](https://github.com/sharkdp/bat/issues/1519)가 있을 수 있습니다.
356+
357+
358+### macOS (또는 Linux)에서 Homebrew를 써서
359+
360+[macOS의 Homebrew](https://formulae.brew.sh/formula/bat) 또는
361+[Linux의 Homebrew](https://formulae.brew.sh/formula-linux/bat)를 이용하여
362+`bat`을 설치할 수 있습니다.
363+
364+```bash
365+brew install bat
366+```
367+
368+### macOS에서 MacPorts를 써서
369+
370+[MacPorts](https://ports.macports.org/port/bat/summary)를 이용하여 `bat`을
371+설치할 수 있습니다:
372+
373+```bash
374+port install bat
375+```
376+
377+### Windows에서
378+
379+Windows에서 `bat`을 설치할 수 있는 몇 가지 옵션들이 있습니다.
380+먼저 `bat`을 설치한 후,
381+["Windows에서 `bat` 사용하기"](#windows에서-bat-사용하기) 섹션을 살펴보세요.
382+
383+#### 전제 조건
384+
385+[Visual C++ 재배포 가능](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)
386+패키지를 설치해야 합니다.
387+
388+#### Chocolatey를 써서
389+
390+[Chocolatey](https://chocolatey.org/packages/Bat)를 이용해 `bat`을 설치할 수
391+있습니다:
392+```bash
393+choco install bat
394+```
395+
396+#### Scoop을 써서
397+
398+[scoop](https://scoop.sh/)을 이용해 `bat`을 설치할 수 있습니다:
399+```bash
400+scoop install bat
401+```
402+
403+#### 사전 빌드된 바이너리들로
404+
405+[릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서 사전 빌드된
406+바이너리를 다운받을 수 있습니다.
407+
408+[Visual C++ 재배포 가능](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)
409+패키지를 설치해야 합니다.
410+
411+### 바이너리들로
412+
413+[릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서 다양한 아키텍처를
414+위해 사전 빌드된 버전들을 확인할 수 있습니다.
415+정적 링크 바이너리들은 파일 이름에 `musl` 이 포함된 아카이브들을 확인하세요.
416+
417+### 소스에서
418+
419+`bat`의 소스를 빌드하기 위해서는, Rust 1.51 이상이 필요합니다.
420+`cargo`를 이용해 전부 빌드할 수 있습니다:
421+
422+```bash
423+cargo install --locked bat
424+```
425+
426+참고로 man 페이지나 셸 자동 완성 파일과 같은 부가 파일들은 이 방법으로 설치될 수
427+없습니다.
428+이것들은 `cargo`에 의해 생성이 되고 (`build` 밑의) cargo 타켓 폴더에서 찾을 수
429+있습니다.
430+
431+## 사용자화
432+
433+### 문법 강조 테마
434+
435+`bat --list-themes`을 사용하여 사용 가능한 문법 강조 테마들의 목록을 확인할 수
436+있습니다.
437+`TwoDark` 테마를 선택하려면, `--theme=TwoDark` 옵션과 함께 `bat`을 사용하거나
438+`BAT_THEME` 환경 변수를 `TwoDark`로 설정하세요.
439+셸 시작 파일에 `export BAT_THEME="TwoDark"` 를 정의해 영구적으로 설정할 수
440+있습니다.
441+이 밖에 `bat`의 [설정 파일](#설정-파일)을 이용할 수 있습니다.
442+
443+만약 다른 테마들을 사용하여 특정 파일을 보고 싶다면, 다음 명령어를 쓸 수
444+있습니다(이 경우 [`fzf`](https://github.com/junegunn/fzf)가 필요합니다.)
445+
446+```bash
447+bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file"
448+```
449+
450+`bat`은 기본적으로 어두운 배경에 적합합니다.
451+그러나 밝은 배경의 터미널을 사용한다면 `GitHub`이나 `OneHalfLight`과 같은 테마가
452+더 잘 어울립니다.
453+아래 [새로운 테마 추가하기](#새로운-테마-추가하기) 섹션에 따라 커스텀 테마를
454+사용할 수도 있습니다.
455+
456+### 8비트 테마
457+
458+`bat`은 트루컬러 지원이 되더라도 항상
459+[8비트 색상](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors)을 사용하는
460+세 개의 테마가 있습니다.
461+
462+- `ansi`는 어떤 터미널에서도 무난하게 보입니다. 이는 3비트 색상을 사용합니다:
463+ 검정, 빨강, 녹색, 노랑, 파랑, 마젠타, 시안, 하양.
464+- `base16`은 [base16](https://github.com/chriskempson/base16) 터미널 테마를 위해
465+ 디자인되었습니다.
466+ 이는 [base16 스타일 가이드라인](https://github.com/chriskempson/base16/blob/master/styling.md)에
467+ 따라 4비트 색상(3비트 색상에 밝은 변형 추가)을 사용합니다.
468+- `base16-256`는 [base16-shell](https://github.com/chriskempson/base16-shell)을
469+ 위해 디자인되었습니다.
470+ 이는 16부터 21의 일부 밝은 색상을 8비트 색상으로 대치합니다.
471+ 단지 256-색상 터미널을 쓰지만 base16-shell을 쓰지 않는다고 해서 이것을
472+ 사용하지 **마십시오**.
473+
474+이들 테마는 더 제한적이지만, 트루컬러 테마에 비해 두 장점이 있습니다:
475+
476+- 이들은 3비트 혹은 4비트 색상을 쓰는 다른 터미널 소프트웨어와 더 잘
477+ 어울립니다.
478+- 만약 터미널 테마를 바꾼다면, 이미 화면 상의 `bat`의 출력도 이에 맞추어
479+ 업데이트됩니다.
480+
481+### 출력 스타일
482+
483+`--style` 옵션을 이용하면 `bat`의 출력 모양을 조절할 수 있습니다.
484+예를 들어, `--style=numbers,changes`를 통해 Git 변경분과 줄 번호는 출력하지만
485+격자와 파일 헤더는 출력하지 않을 수 있습니다.
486+`BAT_STYLE` 환경 변수를 정의하여 이러한 수정을 영구적으로 하거나 `bat`의
487+[설정 파일](#설정-파일)을 사용하세요.
488+
489+### 새로운 문법 / 언어 정의 추가하기
490+
491+만약 `bat`에서 특정 문법이 지원되지 않을 경우, 다음의 절차를 통해 현재 `bat`
492+설치본에 새로운 문법을 쉽게 추가할 수 있습니다.
493+
494+`bat`은 문법 강조를 위해 훌륭한
495+[`syntect`](https://github.com/trishume/syntect/) 라이브러리를 사용합니다.
496+`syntect`는 임의의 [Sublime Text의 `.sublime-syntax`
497+파일](https://www.sublimetext.com/docs/3/syntax.html)과 테마를 읽을 수 있습니다.
498+
499+[Package Control](https://packagecontrol.io/)에 Sublime 문법 패키지를 찾는
500+방법이 잘 정리되어 있습니다.
501+일단 문법을 찾았다면:
502+
503+1. 문법 정의 파일들을 넣을 폴더를 만듭니다:
504+
505+ ```bash
506+ mkdir -p "$(bat --config-dir)/syntaxes"
507+ cd "$(bat --config-dir)/syntaxes"
508+
509+ # Put new '.sublime-syntax' language definition files
510+ # in this folder (or its subdirectories), for example:
511+ git clone https://github.com/tellnobody1/sublime-purescript-syntax
512+ ```
513+
514+2. 이제 다음 명령어를 통해 파일들을 파싱(parse)하여 바이너리 캐시를 만듭니다.
515+
516+ ```bash
517+ bat cache --build
518+ ```
519+
520+3. 마지막으로, `bat --list-languages`로 새로 추가한 언어가 사용 가능한지
521+ 확인합니다.
522+
523+ 만약 기본 설정으로 돌아갈 일이 생긴다면, 다음 명령어를 이용합니다:
524+
525+ ```bash
526+ bat cache --clear
527+ ```
528+
529+4. 만약 특정 문법이 `bat`에 기본적으로 포함되어 있어야 한다고 생각한다면, 방침과
530+ 절차를 [여기](../doc/assets.md)서 읽은 후 "문법 요청(syntax request)"을 열어
531+ 주세요: [문법 요청하기](https://github.com/sharkdp/bat/issues/new?labels=syntax-request&template=syntax_request.md).
532+
533+### 새로운 테마 추가하기
534+
535+이 과정은 새로운 문법 정의 추가 방식과 매우 비슷합니다.
536+
537+먼저, 새로운 문법 강조 테마 폴더를 만듭니다.
538+```bash
539+mkdir -p "$(bat --config-dir)/themes"
540+cd "$(bat --config-dir)/themes"
541+
542+# Download a theme in '.tmTheme' format, for example:
543+git clone https://github.com/greggb/sublime-snazzy
544+
545+# Update the binary cache
546+bat cache --build
547+```
548+
549+마지막으로 `bat --list-themes`을 통해 새로 추가한 테마들이 사용 가능한지
550+확인합니다.
551+
552+### 파일 타입 설정을 추가하거나 변경하기
553+
554+새로운 파일 이름 패턴을 추가하려면 (혹은 이미 존재하는 것을 변경하려면)
555+`--map-syntax` 커맨드 라인 옵션을 사용하세요.
556+이 옵션은 `pattern:syntax` 꼴의 인자를 받습니다.
557+이때 `pattern`은 파일 이름과 절대 파일 경로를 매치할 글로브(glob) 패턴입니다.
558+`syntax` 부분은 지원되는 언어의 전체 이름입니다
559+(`bat --list-languages`를 통해 개요를 확인하세요).
560+
561+참고: 이 옵션은 커맨드 라인에 넘겨 주는 것보다는 `bat`의 설정 파일에 넣는 것이
562+좋을 것입니다 (아래를 보세요).
563+
564+예시: "INI" 문법 강조를 `.conf` 파일 확장자의 모든 파일에 적용하려면, 다음을
565+사용하세요:
566+```bash
567+--map-syntax='*.conf:INI'
568+```
569+
570+예시: `.ignore`(완전 일치)이라는 이름의 모든 파일을 "Git Ignore" 문법으로
571+열려면, 다음을 사용하세요:
572+```bash
573+--map-syntax='.ignore:Git Ignore'
574+```
575+
576+예시: `/etc/apache2`의 하위 폴더들에 있는 모든 `.conf` 파일들을 "Apache Conf"
577+문법으로 열려면, 다음을 사용하세요 (이 대응(mapping)은 이미 내장되어 있습니다):
578+```bash
579+--map-syntax='/etc/apache2/**/*.conf:Apache Conf'
580+```
581+
582+### 다른 페이저 사용하기
583+
584+`bat`은 환경 변수 `PAGER`에 명시된 페이저를 사용합니다.
585+이 변수가 정의되어 있지 않다면, `less`가 기본으로 사용됩니다.
586+만약 다른 페이저를 사용하고 싶다면, `PAGER` 변수를 수정하거나 `BAT_PAGER` 환경
587+변수를 설정하여 `PAGER`의 설정을 오버라이드(override)할 수 있습니다.
588+
589+만약 커맨드라인 인수들을 페이저에게 넘겨 주려면, `PAGER`/`BAT_PAGER` 변수로
590+설정할 수 있습니다:
591+
592+```bash
593+export BAT_PAGER="less -RF"
594+```
595+
596+환경 변수를 사용하는 대신, `bat`의 [설정 파일](#설정-파일)로 페이저를 설정할
597+수도 있습니다 (`--pager` 옵션).
598+
599+**참고**: 기본적으로, 페이저가 `less`로 설정되어 있다면 (그리고 커맨드 라인
600+옵션이 지정되어 있지 않다면), `bat`은 다음 옵션들을 페이저로 넘겨줍니다:
601+`-R`/`--RAW-CONTROL-CHARS`, `-F`/`--quit-if-one-screen` 그리고 `-X`/`--no-init`.
602+마지막 옵션(`-X`)은 530 이전 버전의 `less`에만 사용됩니다.
603+
604+`-R` 옵션은 ANSI 색상을 올바르게 해석하기 위해 필요합니다.
605+두 번째 옵션(`-F`)은 출력 크기가 터미널의 세로 크기보다 작을 경우 less가 즉시
606+종료되도록 합니다.
607+이는 작은 파일을 다룰 때 페이저를 종료하기 위해 `q`를 누를 필요 없어서
608+편리합니다.
609+세 번째 옵션(`-X`)는 예전 버전의 `less`에 있는 `--quit-if-one-screen` 기능의
610+버그를 고치기 위해 필요합니다.
611+안타깝게도, 이는 `less`의 마우스 휠 지원과 호환되지 않습니다.
612+
613+`less`의 예전 버전에서 마우스 휠 기능을 활성화하려면, `-R` 옵션을 넘겨주세요
614+(위의 예제처럼, 이 옵션은 quit-if-one-screen 기능을 비활성화합니다).
615+less 530과 이후 버전에서는 그대로 사용할 수 있습니다.
616+
617+### 들여쓰기
618+
619+`bat`은 페이저에 의존하지 않고 탭을 4 스페이스로 확장합니다.
620+이를 변경하려면 간단히 `--tabs` 인자에 표시되기를 원하는 스페이스 개수를
621+추가하세요.
622+
623+**참고**: (`bat`의 `--pager` 인자 혹은 `less`의 `LESS` 환경 변수를 통해)
624+페이저의 탭 길이를 지정하는 것은 효과가 없을 것인데, 이는 페이저가 이미
625+스페이스로 확장된 탭을 받기 때문입니다.
626+이 기능은 사이드바에 의한 들여쓰기 문제를 회피하기 위해 추가되었습니다.
627+`bat`을 `--tabs=0`과 함께 호출하면 이를 오버라이드하여 페이저가 탭을 처리하게
628+합니다.
629+
630+### 다크 모드
631+
632+macOS에서 다크 모드를 사용하고 있다면, `bat`가 OS 테마에 따라 다른 테마를
633+사용하도록 구성할 수 있습니다.
634+아래 스니펫은 _다크 모드_에서는 `default` 테마를, _라이트 모드_에서는 `GitHub`
635+테마를 사용하는 방법입니다.
636+
637+```bash
638+alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
639+```
640+
641+## 설정 파일
642+
643+`bat`는 설정 파일로도 사용자화 할 수 있습니다.
644+설정 파일의 위치는 운영 체제에 따라 다릅니다.
645+아래 커맨드를 통해 시스템의 기본 경로를 확인할 수 있습니다.
646+```
647+bat --config-file
648+```
649+
650+또는, `BAT_CONFIG_PATH` 환경 변수를 사용하여 `bat`가 설정 파일의 기본 경로
651+이외의 위치를 사용하도록 할 수 있습니다.
652+```bash
653+export BAT_CONFIG_PATH="/path/to/bat.conf"
654+```
655+
656+기본 설정 파일은 `--generate-config-file` 옵션으로 생성할 수 있습니다.
657+```bash
658+bat --generate-config-file
659+```
660+
661+### 포맷
662+
663+설정 파일은 단순히 커맨드 라인 인자들의 리스트입니다.
664+`bat --help`로 가능한 모든 옵션과 값들을 확인하세요.
665+추가적으로, 줄 앞에 `#` 문자를 추가해 주석을 넣을 수 있습니다.
666+
667+설정 파일 예시:
668+```bash
669+# "TwoDark" 테마 설정하기
670+--theme="TwoDark"
671+
672+# 줄 번호, Git 변경 내용, 파일 헤더 보이기 (격자 없이)
673+--style="numbers,changes,header"
674+
675+# 터미널에서 이탤릭체 쓰기 (일부 터미널에서 미지원)
676+--italic-text=always
677+
678+# Arduino .ino 파일에 C++ 문법 쓰기
679+--map-syntax "*.ino:C++"
680+```
681+
682+## Windows에서 `bat` 사용하기
683+
684+`bat`는 대부분의 경우 Windows에서 기본적으로 잘 작동하지만, 일부 기능은 추가적인
685+구성이 필요할 수 있습니다.
686+
687+#### 전제 조건
688+
689+[Visual C++ 재배포 가능](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)
690+패키지를 설치해야 합니다.
691+
692+### 페이징
693+
694+Windows는 `more` 형식의 매우 제한된 페이저만 포함합니다.
695+Windows용 `less` 바이너리는
696+[공식 홈페이지](http://www.greenwoodsoftware.com/less/download.html)나
697+[Chocolatey](https://chocolatey.org/packages/Less)를 통해 다운로드 받을 수
698+있습니다.
699+이를 사용하려면 디렉터리 안의 바이너리를 `PATH`에 넣거나
700+[환경 변수로 정의](#using-a-different-pager)하세요.
701+[Chocolatey 패키지](#on-windows)는 `less`를 자동으로 설치합니다.
702+
703+### 색상
704+
705+Windows 10은
706+[v1511](https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1511_(November_Update))부터
707+기본적으로 `conhost.exe`(Command Prompt)와 PowerShell에서 색상을 지원하며,
708+최신 버전의 bash에서도 색상을 지원합니다.
709+이전 버전의 Windows에서는, [ConEmu](https://conemu.github.io/)가 포함된
710+[Cmder](http://cmder.net/)를 사용할 수 있습니다.
711+
712+**참고:** Git과 MSYS 버전의 `less`는 Windows에서 색상을 올바르게 해석하지
713+않습니다.
714+다른 페이저가 설치되어 있지 않은 경우, `--paging=never`을 넘겨주거나
715+`BAT_PAGER`을 빈 문자열로 설정하여 페이징을 완전히 비활성화 할 수 있습니다.
716+
717+### Cygwin
718+
719+Windows에서의 `bat`은 기본적으로 Cygwin의 unix 스타일 경로(`/cygdrive/*`)를
720+지원하지 않습니다.
721+Cygwin 절대 경로를 인자로 받았을 때, `bat`은 다음과 같은 오류를 반환합니다:
722+`The system cannot find the path specified. (os error 3)`
723+
724+이는 wrapper를 만들거나 다음 함수를 `.bash_profile`에 추가하여 해결할 수
725+있습니다:
726+
727+```bash
728+bat() {
729+ local index
730+ local args=("$@")
731+ for index in $(seq 0 ${#args[@]}) ; do
732+ case "${args[index]}" in
733+ -*) continue;;
734+ *) [ -e "${args[index]}" ] && args[index]="$(cygpath --windows "${args[index]}")";;
735+ esac
736+ done
737+ command bat "${args[@]}"
738+}
739+```
740+
741+## 문제 해결
742+
743+### 터미널과 색상
744+
745+`bat`은 터미널의 트루컬러 지원 여부와 상관 없이 동작합니다.
746+그러나 대부분 문법 강조 테마의 색상은 8비트 색상에 최적화되어 있지 않습니다.
747+따라서 24비트 트루컬러 지원이 되는 터미널(`terminator`, `konsole`, `iTerm2`,
748+...)을 사용하는 것을 적극 권장합니다.
749+트루컬러를 지원하는 터미널들과 더 자세한 정보는
750+[이 글](https://gist.github.com/XVilka/8346728)에서 찾아보실 수 있습니다.
751+
752+사용하고 있는 트루컬러 터미널에서 `COLORTERM` 변수를 `truecolor` 혹은
753+`24bit`로 설정되어 있는지 확인하세요.
754+그렇지 않을 경우, `bat`은 24비트 확장열(escape sequence)이 지원되는지 여부를
755+판단할 수 없습니다 (그리고 8비트 색상을 사용합니다).
756+
757+### 줄 번호와 격자가 잘 보이지 않는 경우
758+
759+다른 테마를 사용해 보세요 (`bat --list-themes`에서 목록을 볼 수 있습니다).
760+`OneHalfDark`와 `OneHalfLight` 테마는 더 밝은 눈금과 선의 색상을 사용합니다.
761+
762+### 파일 인코딩
763+
764+`bat`은 기본적으로 UTF-8과 UTF-16을 지원합니다.
765+다른 모든 종류의 파일 인코딩에 대해서는, 일반적으로 인코딩을 자동으로 판별하는
766+방법이 없기 때문에 먼저 UTF-8으로 변환해야 할 수 있습니다.
767+이를 위해 `iconv`를 사용할 수 있습니다.
768+예시: Latin-1(ISO-8859-1)로 인코딩된 PHP 파일은 다음과 같이 처리할 수 있습니다:
769+``` bash
770+iconv -f ISO-8859-1 -t UTF-8 my-file.php | bat
771+```
772+참고: `bat`으로 문법 자동 감지가 되지 않는 경우에는 `-l`/`--language` 옵션을
773+사용할 수 있습니다.
774+
775+## 개발
776+
777+```bash
778+# 모든 서브모듈을 받기 위해 재귀적으로 복제하기
779+git clone --recursive https://github.com/sharkdp/bat
780+
781+# (디버그 버전) 빌드
782+cd bat
783+cargo build --bins
784+
785+# 단위 테스트와 통합 테스트 실행
786+cargo test
787+
788+# (배포 버전) 설치
789+cargo install --locked
790+
791+# 수정된 문법과 테마가 적용된 bat 바이너리 빌드
792+bash assets/create.sh
793+cargo install --locked --force
794+```
795+
796+`bat`의 pretty-printing 기능을 라이브러리로 사용하는 애플리케이션을 만들고
797+싶다면, [API 문서](https://docs.rs/bat/)를 살펴보세요.
798+참고로 `bat`에 라이브러리로써 의존한다면, `regex-onig`나 `regex-fancy`를
799+기능으로 사용해야 합니다.
800+
801+## 기여하기
802+
803+[`CONTRIBUTING.md`](../CONTRIBUTING.md) 가이드를 살펴보세요.
804+
805+## 메인테이너들
806+
807+- [sharkdp](https://github.com/sharkdp)
808+- [eth-p](https://github.com/eth-p)
809+- [keith-hall](https://github.com/keith-hall)
810+- [Enselic](https://github.com/Enselic)
811+
812+## 보안 취약점
813+
814+만약 `bat`의 취약점을 발견하였다면, [David Peter](https://david-peter.de/)에게 메일로 연락주시기 바랍니다.
815+
816+## 프로젝트 목표와 대안들
817+
818+`bat`은 다음과 같은 목표를 달성하려고 합니다:
819+
820+- 아름답고 발전된 문법 강조 기능 제공
821+- Git과의 연동을 통한 파일 변경 내용 확인
822+- (POSIX) `cat`의 대체제
823+- 사용자 친화적인 커맨드 라인 인터페이스 제공
824+
825+비슷한 프로그램들을 찾고 있다면 많은 대안들이 있습니다.
826+비교는 [이 문서](../doc/alternatives.md)를 참조해 주세요.
827+
828+## 라이센스
829+Copyright (c) 2018-2021 [bat-developers](https://github.com/sharkdp/bat).
830+
831+`bat`는 여러분의 선택에 따라 MIT 라이센스 또는 Apache 라이센스 2.0의 조건에 따라
832+배포됩니다.
833+
834+라이센스의 세부사항은 [LICENSE-APACHE](../LICENSE-APACHE)와
835+[LICENSE-MIT](../LICENSE-MIT)를 참조하세요.
doc/README-ru.mdnew file+597
@@ -0,0 +1,597 @@
1+<p align="center">
2+ <img src="logo-header.svg" alt="bat - a cat clone with wings"><br>
3+ <a href="https://github.com/sharkdp/bat/actions?query=workflow%3ACICD"><img src="https://github.com/sharkdp/bat/workflows/CICD/badge.svg" alt="Build Status"></a>
4+ <img src="https://img.shields.io/crates/l/bat.svg" alt="license">
5+ <a href="https://crates.io/crates/bat"><img src="https://img.shields.io/crates/v/bat.svg?colorB=319e8c" alt="Version info"></a><br>
6+ Клон утилиты <i>cat(1)</i> с поддержкой выделения синтаксиса и Git
7+</p>
8+
9+<p align="center">
10+ <a href="#выделение-синтаксиса">Ключевые возможности</a> •
11+ <a href="#как-использовать">Использование</a> •
12+ <a href="#установка">Установка</a> •
13+ <a href="#кастомизация">Кастомизация</a> •
14+ <a href="#цели-и-альтернативы">Цели и альтернативы </a><br>
15+ [<a href="../README.md">English]
16+ [<a href="README-zh.md">中文</a>]
17+ [<a href="README-ja.md">日本語</a>]
18+ [<a href="README-ko.md">한국어</a>]
19+ [Русский]
20+</p>
21+
22+### Выделение синтаксиса
23+
24+`bat` поддерживает выделение синтаксиса для огромного количества языков программирования и разметки:
25+
26+![Пример выделения синтаксиса](https://i.imgur.com/3FGy5tW.png)
27+
28+### Интеграция с Git
29+`bat` использует `git`, чтобы показать изменения в коде
30+(смотрите на левый сайдбар):
31+
32+![Пример интеграции с Git](https://i.imgur.com/azUAzdx.png)
33+
34+### Показать непечатаемые символы
35+
36+Вы можете использовать `-A` / `--show-all` флаг, чтобы показать символы, которые невозможно напечатать:
37+
38+![Строка с неотображемыми символами](https://i.imgur.com/X0orYY9.png)
39+
40+### Автоматическое разделение текста
41+
42+`bat` умеет перенаправлять вывод в `less`, если вывод не помещается на экране полностью.
43+
44+### Объединение файлов
45+
46+О... Вы также можете объединять файлы :wink:. Когда
47+`bat` обнаружит неинтерактивный терминал (например, когда вы перенаправляете вывод в файл или процесс), он будет работать как утилита `cat` и выведет содержимое файлов как обычный текст (без подсветки синтаксиса).
48+
49+## Как использовать
50+
51+Вывести единственный файл в терминале
52+
53+```bash
54+> bat README.md
55+```
56+
57+Отобразить сразу несколько файлов в терминале
58+
59+```bash
60+> bat src/*.rs
61+```
62+
63+Читаем из stdin и определяем синтаксис автоматически (внимание: это делается по заглавной строке файла, например, `#!/bin/sh`)
64+
65+```bash
66+> curl -s https://sh.rustup.rs | bat
67+```
68+
69+Прочитать из stdin с явным указанием языка
70+
71+```bash
72+> yaml2json .travis.yml | json_pp | bat -l json
73+```
74+
75+Вывести и выделить неотображаемые символы
76+```bash
77+> bat -A /etc/hosts
78+```
79+
80+Использование в качестве замены `cat`
81+
82+```bash
83+bat > note.md # мгновенно создаем новый файл
84+
85+bat header.md content.md footer.md > document.md
86+
87+bat -n main.rs # показываем только количество строк
88+
89+bat f - g # выводит 'f' в stdin, а потом 'g'.
90+```
91+
92+### Интеграция с другими утилитами
93+
94+#### `find` или `fd`
95+
96+Вы можете использовать флаг `-exec` в `find`, чтобы посмотреть превью всех файлов в `bat`
97+```bash
98+find … -exec bat {} +
99+```
100+
101+Если вы используете [`fd`](https://github.com/sharkdp/fd), применяйте для этого флаг `-X`/`--exec-batch`:
102+```bash
103+fd … -X bat
104+```
105+
106+#### `ripgrep`
107+
108+С помощью [`batgrep`](https://github.com/eth-p/bat-extras/blob/master/doc/batgrep.md), `bat` может быть использован для вывода результата запроса [`ripgrep`](https://github.com/BurntSushi/ripgrep)
109+
110+```bash
111+batgrep needle src/
112+```
113+
114+#### `tail -f`
115+
116+`bat` может быть использован вместе с `tail -f`, чтобы выводить содержимое файла с подсветкой синтаксиса в реальном времени.
117+```bash
118+tail -f /var/log/pacman.log | bat --paging=never -l log
119+```
120+Заметьте, что мы должны отключить пэйджинг, чтобы это заработало. Мы также явно указали синтаксис (`-l log`), так как он не может быть автоматически определен в данном случае.
121+
122+#### `git`
123+
124+Вы можете использовать `bat` с `git show`, чтобы просмотреть старую версию файла с выделением синтаксиса:
125+```bash
126+git show v0.6.0:src/main.rs | bat -l rs
127+```
128+
129+Обратите внимание, что выделение синтаксиса не работает в `git diff` на данный момент. Если вам это нужно, посмотрите [`delta`](https://github.com/dandavison/delta).
130+
131+#### `xclip`
132+
133+Нумерация стро и отображение изменений затрудняет копирование содержимого файлов в буфер обмена.
134+Чтобы спроваиться с этим, используйте флаг `-p`/`--plain` или просто перенаправьте стандартный вывод в `xclip`:
135+```bash
136+bat main.cpp | xclip
137+```
138+`bat` обнаружит перенаправление вывода и выведет обычный текст без выделения синтаксиса.
139+
140+#### `man`
141+
142+`bat` может быть использован в виде выделения цвета для `man`, для этого установите переменную окружения
143+`MANPAGER`:
144+
145+```bash
146+export MANPAGER="sh -c 'col -bx | bat -l man -p'"
147+man 2 select
148+```
149+
150+Возможно вам понадобится также установить `MANROFFOPT="-c"`, если у вас есть проблемы с форматированием.
151+
152+Если вы хотите сделать этой одной командой, вы можете использовать [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md).
153+
154+Обратите внимание, что [синтаксис manpage](assets/syntaxes/02_Extra/Manpage.sublime-syntax) разрабатывается в этом репозитории и все еще находится в разработке.
155+
156+#### `prettier` / `shfmt` / `rustfmt`
157+
158+[`Prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md) — скрипт, который форматирует код и выводит его с помощью `bat`.
159+
160+
161+## Установка
162+
163+[![Packaging status](https://repology.org/badge/vertical-allrepos/bat-cat.svg)](https://repology.org/project/bat-cat/versions)
164+
165+### Ubuntu (с помощью `apt`)
166+*... и другие дистрибутивы основанные на Debian.*
167+
168+`bat` есть в репозиториях [Ubuntu](https://packages.ubuntu.com/eoan/bat) и
169+[Debian](https://packages.debian.org/sid/bat) и доступен начиная с Ubuntu Eoan 19.10. На Debian `bat` пока что доступен только с нестабильной веткой "Sid".
170+
171+Если ваша версия Ubuntu/Debian достаточно новая, вы можете установить `bat` так:
172+
173+```bash
174+apt install bat
175+```
176+
177+Если вы установили `bat` таким образом, то бинарный файл может быть установлен как `batcat` вместо `bat` (из-за [конфликта имени с другим пакетом](https://github.com/sharkdp/bat/issues/982)). Вы можете сделать симлинк или алиас `bat -> batcat`, чтобы предотвратить подобные проблемы и в других дистрибутивах.
178+
179+``` bash
180+mkdir -p ~/.local/bin
181+ln -s /usr/bin/batcat ~/.local/bin/bat
182+```
183+
184+### Ubuntu (С помощью самого нового `.deb` пакета)
185+*... и другие дистрибутивы Linux основанные на Debian*
186+
187+Если пакет еще недоступен в вашем Ubuntu/Debian дистрибутиве или вы хотите установить самую последнюю версию `bat`, то вы можете скачать самый последний `deb`-пакет отсюда:
188+[release page](https://github.com/sharkdp/bat/releases) и установить так:
189+
190+```bash
191+sudo dpkg -i bat_0.18.3_amd64.deb # измените архитектуру и версию
192+```
193+
194+### Alpine Linux
195+
196+Вы можете установить [`bat`](https://pkgs.alpinelinux.org/packages?name=bat) из официальных источников:
197+
198+```bash
199+apk add bat
200+```
201+
202+### Arch Linux
203+
204+Вы можете установить [`bat`](https://www.archlinux.org/packages/community/x86_64/bat/) из официального источника:
205+
206+```bash
207+pacman -S bat
208+```
209+
210+### Fedora
211+
212+Вы можете установить [`bat`](https://koji.fedoraproject.org/koji/packageinfo?packageID=27506) из официального репозитория [Fedora Modular](https://docs.fedoraproject.org/en-US/modularity/using-modules/).
213+
214+```bash
215+dnf install bat
216+```
217+
218+### Gentoo Linux
219+
220+Вы можете установить [`bat`](https://packages.gentoo.org/packages/sys-apps/bat) из официальных источников:
221+
222+```bash
223+emerge sys-apps/bat
224+```
225+
226+### Void Linux
227+
228+Вы можете установить `bat` с помощью `xbps-install`:
229+```bash
230+xbps-install -S bat
231+```
232+
233+### FreeBSD
234+
235+Вы можете установить [`bat`](https://www.freshports.org/textproc/bat) с помощью `pkg`:
236+
237+```bash
238+pkg install bat
239+```
240+
241+или самому скомпилировать его:
242+
243+```bash
244+cd /usr/ports/textproc/bat
245+make install
246+```
247+
248+### С помощью nix
249+
250+Вы можете установить `bat`, используя [nix package manager](https://nixos.org/nix):
251+
252+```bash
253+nix-env -i bat
254+```
255+
256+### openSUSE
257+
258+Вы можете установить `bat` с помощью `zypper`:
259+
260+```bash
261+zypper install bat
262+```
263+
264+### macOS
265+
266+Вы можете установить `bat` с помощью [Homebrew](http://braumeister.org/formula/bat):
267+
268+```bash
269+brew install bat
270+```
271+
272+Или же установить его с помощью [MacPorts](https://ports.macports.org/port/bat/summary):
273+
274+```bash
275+port install bat
276+```
277+
278+### Windows
279+
280+Есть несколько способов установить `bat`. Как только вы установили его, посмотрите на секцию ["Использование `bat` в Windows"](#using-bat-on-windows).
281+
282+#### С помощью Chocolatey
283+
284+Вы можете установить `bat` с помощью [Chocolatey](https://chocolatey.org/packages/Bat):
285+```bash
286+choco install bat
287+```
288+
289+#### С помощью Scoop
290+
291+Вы можете установить `bat` с помощью [scoop](https://scoop.sh/):
292+```bash
293+scoop install bat
294+```
295+
296+Для этого у вас должен быть установлен [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads).
297+
298+#### Из заранее скомпилированных файлов:
299+
300+Их вы можете скачать на [странице релизов](https://github.com/sharkdp/bat/releases).
301+
302+Для этого у вас должен быть установлен [Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads).
303+
304+### С помощью Docker
305+
306+Вы можете использовать [Docker image](https://hub.docker.com/r/danlynn/bat/), чтобы запустить `bat` в контейнере:
307+```bash
308+docker pull danlynn/bat
309+alias bat='docker run -it --rm -e BAT_THEME -e BAT_STYLE -e BAT_TABS -v "$(pwd):/myapp" danlynn/bat'
310+```
311+
312+### С помощью Ansible
313+
314+Вы можете установить `bat` с [Ansible](https://www.ansible.com/):
315+
316+```bash
317+# Устанавливаем роль на устройстве
318+ansible-galaxy install aeimer.install_bat
319+```
320+
321+```yaml
322+---
323+# Playbook для установки bat
324+- host: all
325+ roles:
326+ - aeimer.install_bat
327+```
328+
329+- [Ansible Galaxy](https://galaxy.ansible.com/aeimer/install_bat)
330+- [GitHub](https://github.com/aeimer/ansible-install-bat)
331+
332+Этот способ должен сработать со следующими дистрибутивами:
333+- Debian/Ubuntu
334+- ARM (например Raspberry PI)
335+- Arch Linux
336+- Void Linux
337+- FreeBSD
338+- macOS
339+
340+### Из скомпилированных файлов
341+
342+Перейдите на [страницу релизов](https://github.com/sharkdp/bat/releases) для
343+скомпилированных файлов `bat` для различных платформ. Бинарные файлы со статической связкой так же доступны: выбирайте архив с `musl` в имени.
344+
345+### Из исходников
346+
347+Если вы желаете установить `bat` из исходников, вам понадобится Rust 1.51 или выше. После этого используйте `cargo`, чтобы все скомпилировать:
348+
349+```bash
350+cargo install --locked bat
351+```
352+
353+## Кастомизация
354+
355+### Темы для выделения текста
356+
357+Используйте `bat --list-themes`, чтобы вывести список всех доступных тем. Для выбора темы `TwoDark` используйте `bat` с флагом
358+`--theme=TwoDark` или выставьте переменную окружения `BAT_THEME` в `TwoDark`. Используйте `export BAT_THEME="TwoDark"` в конфигурационном файле вашей оболочки, чтобы изменить ее навсегда. Или же используйте [конфигурационный файл](https://github.com/sharkdp/bat#configuration-file) `bat`.
359+
360+Если вы хотите просто просмотреть темы, используйте следующую команду (для этого вам понадобится [`fzf`](https://github.com/junegunn/fzf)):
361+```bash
362+bat --list-themes | fzf --preview="bat --theme={} --color=always /путь/к/файлу"
363+```
364+
365+`bat` отлично смотрится на темном фоне. Однако если ваш терминал использует светлую тему, то такие темы как `GitHub` или `OneHalfLight` будут смотреться куда лучше!
366+Вы также можете использовать новую тему, для этого перейдите [в раздел добавления тем](https://github.com/sharkdp/bat#добавление-новых-тем).
367+
368+### Изменение внешнего вывода
369+
370+Вы можете использовать флаг `--style`, чтобы изменять внешний вид вывода в `bat`.
371+Например, вы можете использовать `--style=numbers,changes`, чтобы показать только количество строк и изменений в Git. Установите переменную окружения `BAT_STYLE` чтобы изменить это навсегда, или используйте [конфиг файл](https://github.com/sharkdp/bat#configuration-file) `bat`.
372+
373+### Добавление новых синтаксисов
374+
375+`bat` использует [`syntect`](https://github.com/trishume/syntect/) для выделения синтаксиса. `syntect` может читать
376+[файл `.sublime-syntax`](https://www.sublimetext.com/docs/3/syntax.html)
377+и темы. Чтобы добавить новый синтаксис, сделайте следующее:
378+
379+Создайте каталог с синтаксисом:
380+
381+```bash
382+mkdir -p "$(bat --config-dir)/syntaxes"
383+cd "$(bat --config-dir)/syntaxes"
384+
385+# Разместите файлы '.sublime-syntax'
386+# в каталоге (или субкаталогах), например:
387+git clone https://github.com/tellnobody1/sublime-purescript-syntax
388+```
389+
390+Теперь используйте следующую команду, чтобы превратить эти файлы в бинарный кеш:
391+
392+```bash
393+bat cache --build
394+```
395+
396+Теперь вы можете использовать `bat --list-languages`, чтобы проверить, доступны ли новые языки.
397+
398+Если когда-нибудь вы заходите вернуться к настройкам по умолчанию, введите
399+
400+```bash
401+bat cache --clear
402+```
403+
404+### Добавление новых тем
405+
406+Это работает похожим образом, так же как и добавление новых тем выделения синтаксиса
407+
408+Во-первых, создайте каталог с новыми темами для синтаксиса:
409+```bash
410+mkdir -p "$(bat --config-dir)/themes"
411+cd "$(bat --config-dir)/themes"
412+
413+# Загрузите тему в формате '.tmTheme':
414+git clone https://github.com/greggb/sublime-snazzy
415+
416+# Обновите кеш
417+bat cache --build
418+```
419+
420+Теперь используйте `bat --list-themes`, чтобы проверить доступность новых тем.
421+
422+### Использование другого пейджера.
423+
424+`bat` использует пейджер, указанный в переменной окружения `PAGER`. Если она не задана, то используется `less`.
425+Если вы желаете использовать другой пейджер, вы можете либо изменить переменную `PAGER`, либо `BAT_PAGER` чтобы перезаписать то, что указано в `PAGER`.
426+
427+Чтобы передать дополнительные аргументы вашему пейджеру, перечислите их в этой переменной:
428+
429+```bash
430+export BAT_PAGER="less -RF"
431+```
432+
433+Так же вы можете использовать [файл конфигурации](https://github.com/sharkdp/bat#configuration-file) `bat` (флаг `--pager`).
434+
435+**Внимание**: По умолчанию пейджером является`less` (без каких-либо аргументов),
436+`bat` задаст следующие флаги для пейджера:
437+ `-R`/`--RAW-CONTROL-CHARS`,
438+`-F`/`--quit-if-one-screen` и `-X`/`--no-init`. Последний флаг(`-X`) используется только для `less`, чья версия раньше 530.
439+
440+Флаг `-R` нужен чтобы корректно воспроизвести ANSI цвета. Второй флаг (`-F`) говорит
441+`less` чтобы тот сразу же завершился, если размер вывода меньше чем вертикальный размер терминала.
442+Это удобно для небольших файлов, так как вам не надо каждый раз нажимать `q`, чтобы выйти из пейджера. Третий флаг (`-X`) нужен для того, чтобы исправить баг с `--quit-if-one-screen` в старых версиях `less`. К сожалению, это блокирует возможность использования колеса мышки.
443+
444+Если вы хотите все же его включить, вы можете добавить флаг `-R`.
445+Для `less` новее чем 530 оно должно работать из коробки.
446+
447+### Темная тема
448+
449+Если вы используете темный режим в macOS, возможно вы захотите чтобы `bat` использовал другую тему, основанную на теме вашей ОС. Следующий сниппет использует тему `default`, когда у вас включен темный режим, и тему `GitHub`, когда включен светлый.
450+
451+```bash
452+alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
453+```
454+
455+## Файл конфигурации
456+
457+`bat` также может быть кастомизирован с помощью файла конфигурации. Его местоположение зависит от вашей ОС: чтобы посмотреть его путь, введите
458+```
459+bat --config-file
460+```
461+
462+Также вы можете установить переменную окружения `BAT_CONFIG_PATH`, чтобы изменить путь к файлу конфигурации.
463+```bash
464+export BAT_CONFIG_PATH="/path/to/bat.conf"
465+```
466+
467+Файл конфигурации «по умолчанию» может быть создан с помощью флага `--generate-config-file`.
468+```bash
469+bat --generate-config-file
470+```
471+
472+### Формат
473+
474+Файл конфигурации - это всего лишь набор аргументов. Введите `bat --help`, чтобы просмотреть список всех возможных флагов и аргументов. Также вы можете закомментировать строку с помощью `#`.
475+
476+Пример файла конфигурации:
477+```bash
478+# Установить тему "TwoDark"
479+--theme="TwoDark"
480+
481+# Показывать количество строк, изменений в Git и заголовок файла
482+--style="numbers,changes,header"
483+
484+# Использовать курсив (поддерживается не всеми терминалами)
485+--italic-text=always
486+
487+# Использовать синтаксис C++ для всех Arduino .ino файлов
488+--map-syntax "*.ino:C++"
489+
490+# Использовать синтаксик Git Ignore для всех файлов .ignore
491+--map-syntax ".ignore:Git Ignore"
492+```
493+
494+## Использование `bat` в Windows
495+
496+`bat` полностью работоспособен "из коробки", но для некоторых возможностей могут понадобиться дополнительные настройки.
497+
498+### Пейджинг
499+
500+Windows поддерживает только очень простой пейджер `more`. Вы можете скачать установщик для `less` [с его сайта](http://www.greenwoodsoftware.com/less/download.html) или [через Chocolatey](https://chocolatey.org/packages/Less). Чтобы его использовать, скопируйте исполняемый файл в ваш `PATH` или [используйте переменную окружения](#Использование-другого-пейджера). [Пакет из Chocolatey](#windows) установит все автоматически.
501+
502+### Цвета
503+
504+Windows 10 поддерживает цвета и в `conhost.exe` (Command Prompt), и в PowerShell начиная с версии Windows
505+[v1511](https://ru.wikipedia.org/wiki/Windows_10#Обновления и поддержка), так же как и в bash. На ранних версиях Windows вы можете использовать
506+[Cmder](http://cmder.net/), в котором есть [ConEmu](https://conemu.github.io/).
507+
508+**Внимание:** Версия `less` в Git и MSYS2 воспроизводит цвета некорректно. Если у вас нет других пейджеров, мы можете отключить использование пейджеров с помощью флага `--paging=never`
509+или установить `BAT_PAGER` равным пустой строке.
510+
511+### Cygwin
512+
513+Из коробки `bat` не поддерживает пути в стиле Unix (`/cygdrive/*`). Когда указан абсолютный путь cygwin, `bat` выдаст следующую ошибку: `The system cannot find the path specified. (os error 3)`
514+
515+Она может быть решена добавлением следующей функции в `.bash_profile`:
516+
517+```bash
518+bat() {
519+ local index
520+ local args=("$@")
521+ for index in $(seq 0 ${#args[@]}) ; do
522+ case "${args[index]}" in
523+ -*) continue;;
524+ *) [ -e "${args[index]}" ] && args[index]="$(cygpath --windows "${args[index]}")";;
525+ esac
526+ done
527+ command bat "${args[@]}"
528+}
529+```
530+
531+## Проблемы и их решение
532+
533+### Терминалы и цвета
534+
535+`bat` поддерживает терминалы *с* и *без* поддержки truecolor. Однако подсветка синтаксиса не оптимизирована для терминалов с 8-битными цветами, и рекомендуется использовать терминалы с поддержкой 24-битных цветов (`terminator`, `konsole`, `iTerm2`, ...).
536+Смотрите [эту статью](https://gist.github.com/XVilka/8346728) для полного списка терминалов.
537+
538+Удостовертесь, что переменная `COLORTERM` равна `truecolor` или
539+`24bit`. Иначе `bat` не сможет определить поддержку 24-битных цветов (и будет использовать 8-битные).
540+
541+### Текст и номера строк плохо видны
542+
543+Используйте другую тему (`bat --list-themes` выведет список всех установленных тем). Темы `OneHalfDark` и
544+`OneHalfLight` имеют более яркие номера строк и тексты.
545+
546+### Кодировки файлов
547+
548+`bat` поддерживает UTF-8 и UTF-16. Файлы в других кодировках, возможно, придётся перекодировать, так как кодировка может быть распознана неверно. Используйте `iconv`.
549+Пример: у вас есть PHP файл в кодировке Latin-1 (ISO-8859-1):
550+``` bash
551+iconv -f ISO-8859-1 -t UTF-8 my-file.php | bat
552+```
553+Внимание: вам может понадобится флаг `-l`/`--language`, если `bat` не сможет автоматически определить синтаксис.
554+
555+## Разработка
556+
557+```bash
558+# Рекурсивно клонирует все модули
559+git clone --recursive https://github.com/sharkdp/bat
560+
561+# Компиляции в режиме разработки
562+cd bat
563+cargo build --bins
564+
565+# Запуск тестов
566+cargo test
567+
568+# Установка (релизная версия)
569+cargo install --locked
570+
571+# Компилирование исполняего файла bat с другим синтаксисом и темами
572+bash assets/create.sh
573+cargo install --locked --force
574+```
575+
576+## Разработчики
577+
578+- [sharkdp](https://github.com/sharkdp)
579+- [eth-p](https://github.com/eth-p)
580+
581+## Цели и альтернативы
582+
583+Цели проекта `bat`:
584+
585+- Красивая и продвинутая подсветка синтаксиса.
586+- Интеграция с Git.
587+- Полноценная замена `cat`.
588+- Дружелюбный интерфейс и аргументы.
589+
590+Есть очень много альтернатив `bat`. Смотрите [этот документ](doc/alternatives.md) для сравнения.
591+
592+## Лицензия
593+Copyright (c) 2018-2021 [Разработчики bat](https://github.com/sharkdp/bat).
594+
595+`bat` распостраняется под лицензями MIT License и Apache License 2.0 (на выбор пользователя).
596+
597+Смотрите [LICENSE-APACHE](LICENSE-APACHE) и [LICENSE-MIT](LICENSE-MIT) для более подробного ознакомления.
doc/README-zh.mdnew file+678

This diff is too big to show here.

doc/alternatives.md+40−1

This diff is too big to show here.

doc/assets.mdnew file+100

This diff is too big to show here.

doc/logo-header.svg+1−1

This diff is too big to show here.

doc/release-checklist.mdnew file+73

This diff is too big to show here.

doc/sponsors.mdnew file+14

This diff is too big to show here.

doc/sponsors/workos-logo-white-bg.svgnew file+11

This diff is too big to show here.

examples/advanced.rsnew file+18

This diff is too big to show here.

examples/cat.rsnew file+13

This diff is too big to show here.

examples/inputs.rsnew file+19

This diff is too big to show here.

examples/list_syntaxes_and_themes.rsnew file+18

This diff is too big to show here.

examples/simple.rs+3−32

This diff is too big to show here.

examples/yaml.rsnew file+35

This diff is too big to show here.

rustfmt.tomlnew file+1

This diff is too big to show here.

src/assets.rs+639−172

This diff is too big to show here.

src/assets/assets_metadata.rsnew file+82

This diff is too big to show here.

src/assets/build_assets.rsnew file+176

This diff is too big to show here.

src/assets/build_assets/acknowledgements.rsnew file+222

This diff is too big to show here.

src/assets/lazy_theme_set.rsnew file+104

This diff is too big to show here.

src/assets/serialized_syntax_set.rsnew file+27

This diff is too big to show here.

src/bin/bat/app.rs+141−85

This diff is too big to show here.

src/bin/bat/assets.rsnew file+65

This diff is too big to show here.

src/bin/bat/clap_app.rs+213−51

This diff is too big to show here.

src/bin/bat/config.rs+77−6

This diff is too big to show here.

src/bin/bat/directories.rsnew file+72

This diff is too big to show here.

src/bin/bat/input.rsnew file+20

This diff is too big to show here.

src/bin/bat/main.rs+210−58

This diff is too big to show here.

src/config.rsnew file+114

This diff is too big to show here.

src/controller.rs+169−59

This diff is too big to show here.

src/decorations.rs+12−8

This diff is too big to show here.

src/diff.rs+3−2

This diff is too big to show here.

src/dirs.rsdeleted−57

This diff is too big to show here.

src/error.rsnew file+65

This diff is too big to show here.

src/input.rsnew file+352

This diff is too big to show here.

src/inputfile.rsdeleted−136

This diff is too big to show here.

src/less.rs+81−12

This diff is too big to show here.

src/lib.rs+44−119

This diff is too big to show here.

src/line_range.rs+139−29

This diff is too big to show here.

src/macros.rsnew file+7

This diff is too big to show here.

src/output.rs+113−87

This diff is too big to show here.

src/pager.rsnew file+123

This diff is too big to show here.

src/paging.rsnew file+12

This diff is too big to show here.

src/preprocessor.rs+20−13

This diff is too big to show here.

src/pretty_printer.rsnew file+357

This diff is too big to show here.

src/printer.rs+310−203

This diff is too big to show here.

src/style.rs+77−51

This diff is too big to show here.

src/syntax_mapping.rs+235−18

This diff is too big to show here.

src/syntax_mapping/ignored_suffixes.rsnew file+107

This diff is too big to show here.

src/terminal.rs+49−19

This diff is too big to show here.

src/vscreen.rsnew file+212

This diff is too big to show here.

src/wrapping.rsnew file+12

This diff is too big to show here.

tests/.gitattributes+12−4

This diff is too big to show here.

tests/assets.rsnew file+42

This diff is too big to show here.

tests/benchmarks/.gitignorenew file+1

This diff is too big to show here.

tests/benchmarks/comparison.shdeleted−31

This diff is too big to show here.

tests/benchmarks/highlighting-speed-src/grep-output-ansi-sequences.txtnew file+2272

This diff is too big to show here.

tests/benchmarks/test-src/jquery-3.3.1.js → tests/benchmarks/highlighting-speed-src/jquery.jsrenamed

The content is the same.

tests/benchmarks/test-src/miniz.c → tests/benchmarks/highlighting-speed-src/miniz.crenamed

The content is the same.

tests/benchmarks/highlighting-speed-src/numpy_test_multiarray.pynew file+8471

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-0.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-1.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-10.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-100.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-11.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-12.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-13.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-14.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-15.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-16.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-17.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-18.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-19.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-2.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-20.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-21.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-22.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-23.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-24.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-25.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-26.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-27.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-28.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-29.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-3.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-30.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-31.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-32.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-33.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-34.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-35.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-36.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-37.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-38.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-39.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-4.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-40.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-41.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-42.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-43.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-44.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-45.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-46.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-47.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-48.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-49.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-5.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-50.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-51.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-52.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-53.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-54.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-55.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-56.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-57.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-58.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-59.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-6.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-60.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-61.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-62.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-63.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-64.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-65.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-66.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-67.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-68.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-69.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-7.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-70.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-71.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-72.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-73.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-74.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-75.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-76.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-77.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-78.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-79.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-8.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-80.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-81.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-82.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-83.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-84.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-85.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-86.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-87.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-88.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-89.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-9.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-90.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-91.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-92.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-93.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-94.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-95.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-96.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-97.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-98.txtnew file+1

This diff is too big to show here.

tests/benchmarks/many-small-files/small-file-99.txtnew file+1

This diff is too big to show here.

tests/benchmarks/run-benchmarks.shmode 100644 → 100755+139−17

This diff is too big to show here.

tests/benchmarks/startup-time-src/small-CpuInfo-file.cpuinfonew file+1

This diff is too big to show here.

tests/benchmarks/startup-time-src/small-Markdown-file.mdnew file+3

This diff is too big to show here.

tests/benchmarks/test-src/jquery-3.3.1.min.jsdeleted−2

This diff is too big to show here.

tests/examples/git/.config/git/confignew file+3

This diff is too big to show here.

tests/examples/git/.gitconfignew file+3

This diff is too big to show here.

tests/examples/longline.jsonnew file+3

This diff is too big to show here.

tests/examples/nonprintable.txtnew file

Binary file not shown.

tests/examples/regression_tests/first_line_fallback.invalid-syntaxnew file+2

This diff is too big to show here.

tests/examples/regression_tests/issue_190.mdnew file+3

This diff is too big to show here.

tests/examples/regression_tests/issue_28.mdnew file+4

This diff is too big to show here.

tests/examples/regression_tests/issue_314.hsnew file+4

This diff is too big to show here.

tests/examples/regression_tests/issue_914.rbnew file+3

This diff is too big to show here.

tests/examples/regression_tests/issue_915.vuenew file+2

This diff is too big to show here.

tests/examples/regression_tests/issue_985.jsnew file+5

This diff is too big to show here.

tests/examples/test.binarynew file

Binary file not shown.

tests/examples/test.json.suffixnew file+1

This diff is too big to show here.

tests/examples/test.json~new file+1

This diff is too big to show here.

tests/integration_tests.rs+1033−30

This diff is too big to show here.

tests/mocked-pagers/morenew file+2

This diff is too big to show here.

tests/mocked-pagers/more.batnew file+1

This diff is too big to show here.

tests/mocked-pagers/mostnew file+2

This diff is too big to show here.

tests/mocked-pagers/most.batnew file+1

This diff is too big to show here.

tests/no_duplicate_extensions.rsnew file+38

This diff is too big to show here.

tests/scripts/find-slow-to-highlight-files.pynew file+125

This diff is too big to show here.

tests/scripts/license-checks.shnew file+24

This diff is too big to show here.

tests/snapshot_tests.rs+11−1

This diff is too big to show here.

tests/snapshots/generate_snapshots.py+1−1

This diff is too big to show here.

tests/snapshots/output/changes.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/changes_grid.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/changes_grid_header.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/changes_grid_header_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/changes_grid_header_numbers_rule.snapshot.txtnew file+27

This diff is too big to show here.

tests/snapshots/output/changes_grid_header_rule.snapshot.txtnew file+27

This diff is too big to show here.

tests/snapshots/output/changes_grid_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/changes_grid_numbers_rule.snapshot.txtnew file+25

This diff is too big to show here.

tests/snapshots/output/changes_grid_rule.snapshot.txtnew file+25

This diff is too big to show here.

tests/snapshots/output/changes_header.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/changes_header_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/changes_header_numbers_rule.snapshot.txtnew file+24

This diff is too big to show here.

tests/snapshots/output/changes_header_rule.snapshot.txtnew file+24

This diff is too big to show here.

tests/snapshots/output/changes_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/changes_numbers_rule.snapshot.txtnew file+23

This diff is too big to show here.

tests/snapshots/output/changes_rule.snapshot.txtnew file+23

This diff is too big to show here.

tests/snapshots/output/full.snapshot.txt+24−22

This diff is too big to show here.

tests/snapshots/output/grid.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/grid_header.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/grid_header_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/grid_header_numbers_rule.snapshot.txtnew file+27

This diff is too big to show here.

tests/snapshots/output/grid_header_rule.snapshot.txtnew file+27

This diff is too big to show here.

tests/snapshots/output/grid_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/grid_numbers_rule.snapshot.txtnew file+25

This diff is too big to show here.

tests/snapshots/output/grid_rule.snapshot.txtnew file+25

This diff is too big to show here.

tests/snapshots/output/header.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/header_numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/header_numbers_rule.snapshot.txtnew file+24

This diff is too big to show here.

tests/snapshots/output/header_rule.snapshot.txtnew file+24

This diff is too big to show here.

tests/snapshots/output/numbers.snapshot.txt+23−22

This diff is too big to show here.

tests/snapshots/output/numbers_rule.snapshot.txtnew file+23

This diff is too big to show here.

tests/snapshots/output/plain.snapshot.txt+1

This diff is too big to show here.

tests/snapshots/output/rule.snapshot.txtnew file+23

This diff is too big to show here.

tests/snapshots/sample.modified.rs+1

This diff is too big to show here.

tests/syntax-tests/BatTestCustomAssets.sublime-syntaxnew file+21

This diff is too big to show here.

tests/syntax-tests/compare_highlighted_versions.pynew file+65

This diff is too big to show here.

tests/syntax-tests/create_highlighted_versions.pynew file+133

This diff is too big to show here.

tests/syntax-tests/highlighted/ARM Assembly/test.Snew file+55

This diff is too big to show here.

tests/syntax-tests/highlighted/ASP/test.aspnew file+36

This diff is too big to show here.

tests/syntax-tests/highlighted/AWK/quicksort.awknew file+35

This diff is too big to show here.

tests/syntax-tests/highlighted/ActionScript/test.asnew file+75

This diff is too big to show here.

tests/syntax-tests/highlighted/Apache/httpd.confnew file+42

This diff is too big to show here.

tests/syntax-tests/highlighted/AppleScript/test.applescriptnew file+25

This diff is too big to show here.

tests/syntax-tests/highlighted/AsciiDoc/test.adocnew file+173

This diff is too big to show here.

tests/syntax-tests/highlighted/Assembly (x86_64)/test.nasmnew file+86

This diff is too big to show here.

tests/syntax-tests/highlighted/Bash/batgrep.shnew file+511

This diff is too big to show here.

tests/syntax-tests/highlighted/Bash/simple.shnew file+72

This diff is too big to show here.

tests/syntax-tests/highlighted/BatTestCustomAssets/NoColorsUnlessCustomAssetsAreUsed.battestcustomassetsnew file+2

This diff is too big to show here.

tests/syntax-tests/highlighted/Batch/build.batnew file+59

This diff is too big to show here.

tests/syntax-tests/highlighted/BibTeX/test.bibnew file+18

This diff is too big to show here.

tests/syntax-tests/highlighted/C-Sharp/Stack.csnew file+64

This diff is too big to show here.

tests/syntax-tests/highlighted/C/test.cnew file+62

This diff is too big to show here.

tests/syntax-tests/highlighted/CMake/CMakeLists.txtnew file+16

This diff is too big to show here.

tests/syntax-tests/highlighted/CSS/style.cssnew file+115

This diff is too big to show here.

tests/syntax-tests/highlighted/CSV/comma_in_quotes.csvnew file+7

This diff is too big to show here.

tests/syntax-tests/highlighted/Cabal/semantic.cabalnew file+247

This diff is too big to show here.

tests/syntax-tests/highlighted/Clojure/test.cljnew file+58

This diff is too big to show here.

tests/syntax-tests/highlighted/CoffeeScript/coffeescript.coffeenew file+391

This diff is too big to show here.

tests/syntax-tests/highlighted/Cpp/test.cppnew file+79

This diff is too big to show here.

tests/syntax-tests/highlighted/CpuInfo/test.cpuinfonew file+45

This diff is too big to show here.

tests/syntax-tests/highlighted/Crystal/test.crnew file+117

This diff is too big to show here.

tests/syntax-tests/highlighted/D/test.dnew file+44

This diff is too big to show here.

tests/syntax-tests/highlighted/Dart/inner_comment.dartnew file+5

This diff is too big to show here.

tests/syntax-tests/highlighted/Dart/test.dartnew file+133

This diff is too big to show here.

tests/syntax-tests/highlighted/Diff/82e7786e747b1fcfac1f963ae6415a22ec9caae1.diffnew file+353

This diff is too big to show here.

tests/syntax-tests/highlighted/Dockerfile/Dockerfilenew file+19

This diff is too big to show here.

tests/syntax-tests/highlighted/DotENV/.envnew file+57

This diff is too big to show here.

tests/syntax-tests/highlighted/Elixir/command.exnew file+31

This diff is too big to show here.

tests/syntax-tests/highlighted/Elm/test.elmnew file+137

This diff is too big to show here.

tests/syntax-tests/highlighted/Email/test.emlnew file+16

This diff is too big to show here.

tests/syntax-tests/highlighted/Erlang/bat_erlang.erlnew file+72

This diff is too big to show here.

tests/syntax-tests/highlighted/EtcGroup/test.groupnew file+67

This diff is too big to show here.

tests/syntax-tests/highlighted/F#/string.fsnew file+182

This diff is too big to show here.

tests/syntax-tests/highlighted/Fish/test.fishnew file+77

This diff is too big to show here.

tests/syntax-tests/highlighted/Fortran (Fixed Form)/quicksort_real_F77.Fnew file+323

This diff is too big to show here.

tests/syntax-tests/highlighted/Fortran (Modern)/test_savetxt.f90new file+119

This diff is too big to show here.

tests/syntax-tests/highlighted/Fortran Namelist/test.namelistnew file+5

This diff is too big to show here.

tests/syntax-tests/highlighted/Fstab/fstabnew file+7

This diff is too big to show here.

tests/syntax-tests/highlighted/GLSL/test.glslnew file+42

This diff is too big to show here.

tests/syntax-tests/highlighted/Git Attributes/example.gitattributesnew file+16

This diff is too big to show here.

tests/syntax-tests/highlighted/Git Config/text.gitconfignew file+107

This diff is too big to show here.

tests/syntax-tests/highlighted/Git Ignore/test.gitignorenew file+43

This diff is too big to show here.

tests/syntax-tests/highlighted/Go/main.gonew file+81

This diff is too big to show here.

tests/syntax-tests/highlighted/GraphQL/test.graphqlnew file+145

This diff is too big to show here.

tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dotnew file+41

This diff is too big to show here.

tests/syntax-tests/highlighted/Graphviz DOT/test_graph.dotnew file+3

This diff is too big to show here.

tests/syntax-tests/highlighted/Groff/rustdoc.1new file+126

This diff is too big to show here.

tests/syntax-tests/highlighted/Groovy/test.groovynew file+77

This diff is too big to show here.

tests/syntax-tests/highlighted/HTML/test.htmlnew file+115

This diff is too big to show here.

tests/syntax-tests/highlighted/Haskell/test.hsnew file+86

This diff is too big to show here.

tests/syntax-tests/highlighted/Hosts/hostsnew file+8

This diff is too big to show here.

tests/syntax-tests/highlighted/INI/test.infnew file+5

This diff is too big to show here.

tests/syntax-tests/highlighted/INI/test.ininew file+18

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.baknew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-distnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-oldnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.innew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.innew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.oldnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orignew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~new file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnewnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorignew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsavenew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-distnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-newnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-oldnew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.rs~new file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~new file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/JQ/sample.jqnew file+60

This diff is too big to show here.

tests/syntax-tests/highlighted/JSON/test.jsonnew file+29

This diff is too big to show here.

tests/syntax-tests/highlighted/Java Server Page (JSP)/sessionDetail.jspnew file+197

This diff is too big to show here.

tests/syntax-tests/highlighted/Java/test.javanew file+39

This diff is too big to show here.

tests/syntax-tests/highlighted/JavaScript/test.jsnew file+114

This diff is too big to show here.

tests/syntax-tests/highlighted/Jinja2/template.jinja2new file+30

This diff is too big to show here.

tests/syntax-tests/highlighted/Julia/test.jlnew file+71

This diff is too big to show here.

tests/syntax-tests/highlighted/Kotlin/test.ktnew file+85

This diff is too big to show here.

tests/syntax-tests/highlighted/LLVM/test.llnew file+29

This diff is too big to show here.

tests/syntax-tests/highlighted/Lean/test.leannew file+68

This diff is too big to show here.

tests/syntax-tests/highlighted/Less/example.lessnew file+43

This diff is too big to show here.

tests/syntax-tests/highlighted/Lisp/utils.lispnew file+80

This diff is too big to show here.

tests/syntax-tests/highlighted/Literate Haskell/Main.lhsnew file+47

This diff is too big to show here.

tests/syntax-tests/highlighted/LiveScript/livescript-demo.lsnew file+83

This diff is too big to show here.

tests/syntax-tests/highlighted/Log/example.lognew file+3

This diff is too big to show here.

tests/syntax-tests/highlighted/Lua/test.luanew file+34

This diff is too big to show here.

tests/syntax-tests/highlighted/MATLAB/test.matlabnew file+34

This diff is too big to show here.

tests/syntax-tests/highlighted/Makefile/Makefilenew file+385

This diff is too big to show here.

tests/syntax-tests/highlighted/Manpage/bat-0.16.mannew file+243

This diff is too big to show here.

tests/syntax-tests/highlighted/Manpage/select-2.mannew file+330

This diff is too big to show here.

tests/syntax-tests/highlighted/Markdown/example.mdnew file+39

This diff is too big to show here.

tests/syntax-tests/highlighted/MediaWiki/test.mediawikinew file+37

This diff is too big to show here.

tests/syntax-tests/highlighted/MemInfo/test.meminfonew file+53

This diff is too big to show here.

tests/syntax-tests/highlighted/NAnt Build File/Default.buildnew file+167

This diff is too big to show here.

tests/syntax-tests/highlighted/Ninja/test.ninjanew file+6

This diff is too big to show here.

tests/syntax-tests/highlighted/OCaml/syntax-test.mlnew file+83

This diff is too big to show here.

tests/syntax-tests/highlighted/Objective-C++/test.mmnew file+68

This diff is too big to show here.

tests/syntax-tests/highlighted/Objective-C/test.mnew file+32

This diff is too big to show here.

tests/syntax-tests/highlighted/PHP/test.phpnew file+111

This diff is too big to show here.

tests/syntax-tests/highlighted/Pascal/test.pasnew file+42

This diff is too big to show here.

tests/syntax-tests/highlighted/Passwd/passwdnew file+7

This diff is too big to show here.

tests/syntax-tests/highlighted/Perl/test.plnew file+157

This diff is too big to show here.

tests/syntax-tests/highlighted/Plaintext/plaintext.txtnew file+178

This diff is too big to show here.

tests/syntax-tests/highlighted/PowerShell/test.ps1new file+25

This diff is too big to show here.

tests/syntax-tests/highlighted/Protocol Buffer/vyconf.protonew file+158

This diff is too big to show here.

tests/syntax-tests/highlighted/Puppet/manifest_large_exported_classes_node.ppnew file+65

This diff is too big to show here.

tests/syntax-tests/highlighted/PureScript/test.pursnew file+89

This diff is too big to show here.

tests/syntax-tests/highlighted/Python/battest.pynew file+100

This diff is too big to show here.

tests/syntax-tests/highlighted/QML/BatSyntaxTest.qmlnew file+219

This diff is too big to show here.

tests/syntax-tests/highlighted/R/test.rnew file+170

This diff is too big to show here.

tests/syntax-tests/highlighted/Racket/test.rktnew file+56

This diff is too big to show here.

tests/syntax-tests/highlighted/Rego/src_test.regonew file+181

This diff is too big to show here.

tests/syntax-tests/highlighted/Regular Expression/test.renew file+1

This diff is too big to show here.

tests/syntax-tests/highlighted/Robot Framework/recipe141_aws_simple_storage_service.robotnew file+31

This diff is too big to show here.

tests/syntax-tests/highlighted/Ruby Haml/test.html.hamlnew file+15

This diff is too big to show here.

tests/syntax-tests/highlighted/Ruby On Rails/test.rbnew file+22

This diff is too big to show here.

tests/syntax-tests/highlighted/Ruby/output.rbnew file+56

This diff is too big to show here.

tests/syntax-tests/highlighted/Rust/output.rsnew file+161

This diff is too big to show here.

tests/syntax-tests/highlighted/SCSS/example.scssnew file+82

This diff is too big to show here.

tests/syntax-tests/highlighted/SLS/test.slsnew file+57

This diff is too big to show here.

tests/syntax-tests/highlighted/SML/sample.smlnew file+47

This diff is too big to show here.

tests/syntax-tests/highlighted/SQL/ims.sqlnew file+266

This diff is too big to show here.

tests/syntax-tests/highlighted/SSH Config/ssh_confignew file+9

This diff is too big to show here.

tests/syntax-tests/highlighted/SSHD Config/sshd_confignew file+36

This diff is too big to show here.

tests/syntax-tests/highlighted/Sass/example.sassnew file+76

This diff is too big to show here.

tests/syntax-tests/highlighted/Scala/ConcurrentEffectLaws.scalanew file+98

This diff is too big to show here.

tests/syntax-tests/highlighted/Slim/test.slimnew file+20

This diff is too big to show here.

tests/syntax-tests/highlighted/Solidity/ERC721.solnew file+376

This diff is too big to show here.

tests/syntax-tests/highlighted/Strace/ls.stracenew file+94

This diff is too big to show here.

tests/syntax-tests/highlighted/Stylus/gradients.stylnew file+90

This diff is too big to show here.

tests/syntax-tests/highlighted/Svelte/App.sveltenew file+65

This diff is too big to show here.

tests/syntax-tests/highlighted/Swift/test.swiftnew file+268

This diff is too big to show here.

tests/syntax-tests/highlighted/Syslog/example.syslognew file+16

This diff is too big to show here.

tests/syntax-tests/highlighted/SystemVerilog/output.svnew file+103

This diff is too big to show here.

tests/syntax-tests/highlighted/TOML/Cargo.tomlnew file+87

This diff is too big to show here.

tests/syntax-tests/highlighted/Tcl/test.tclnew file+22

This diff is too big to show here.

tests/syntax-tests/highlighted/TeX/main.texnew file+84

This diff is too big to show here.

tests/syntax-tests/highlighted/Terraform/main.tfnew file+48

This diff is too big to show here.

tests/syntax-tests/highlighted/Textile/test.textilenew file+40

This diff is too big to show here.

tests/syntax-tests/highlighted/TypeScript/example.tsnew file+110

This diff is too big to show here.

tests/syntax-tests/highlighted/TypeScriptReact/app.tsxnew file+35

This diff is too big to show here.

tests/syntax-tests/highlighted/Verilog/div_pipelined.vnew file+172

This diff is too big to show here.

tests/syntax-tests/highlighted/VimL/source.vimnew file+92

This diff is too big to show here.

tests/syntax-tests/highlighted/Vue/example.vuenew file+60

This diff is too big to show here.

tests/syntax-tests/highlighted/Vyper/crowdsale.vynew file+89

This diff is too big to show here.

tests/syntax-tests/highlighted/XAML/ItemPage.xamlnew file+264

This diff is too big to show here.

tests/syntax-tests/highlighted/XML/example.xmlnew file+22

This diff is too big to show here.

tests/syntax-tests/highlighted/YAML/example.yamlnew file+34

This diff is too big to show here.

tests/syntax-tests/highlighted/Zig/example.zignew file+107

This diff is too big to show here.

tests/syntax-tests/highlighted/cmd-help/test.cmd-helpnew file+54

This diff is too big to show here.

tests/syntax-tests/highlighted/dash/shfmnew file+425

This diff is too big to show here.

tests/syntax-tests/highlighted/gnuplot/test.gpnew file+19

This diff is too big to show here.

tests/syntax-tests/highlighted/http-request-response/example.httpnew file+44

This diff is too big to show here.

tests/syntax-tests/highlighted/jsonnet/stdlib.jsonnetnew file+88

This diff is too big to show here.

tests/syntax-tests/highlighted/nginx/nginx.confnew file+140

This diff is too big to show here.

tests/syntax-tests/highlighted/nim/main.nimnew file+41

This diff is too big to show here.

tests/syntax-tests/highlighted/nim/test.nimblenew file+23

This diff is too big to show here.

tests/syntax-tests/highlighted/nix/test.nixnew file+15

This diff is too big to show here.

tests/syntax-tests/highlighted/orgmode/test.orgnew file+38

This diff is too big to show here.

tests/syntax-tests/highlighted/reStructuredText/reference.rstnew file+320

This diff is too big to show here.

tests/syntax-tests/highlighted/resolv.conf/resolv.confnew file+4

This diff is too big to show here.

tests/syntax-tests/highlighted/varlink/org.varlink.certification.varlinknew file+86

This diff is too big to show here.

tests/syntax-tests/regression_test.shnew file+15

This diff is too big to show here.

tests/syntax-tests/source/ARM Assembly/test.Snew file+55

This diff is too big to show here.

tests/syntax-tests/source/ASP/test.aspnew file+36

This diff is too big to show here.

tests/syntax-tests/source/AWK/quicksort.awknew file+35

This diff is too big to show here.

tests/syntax-tests/source/ActionScript/test.asnew file+75

This diff is too big to show here.

tests/syntax-tests/source/Apache/httpd.confnew file+42

This diff is too big to show here.

tests/syntax-tests/source/AppleScript/test.applescriptnew file+25

This diff is too big to show here.

tests/syntax-tests/source/AsciiDoc/test.adocnew file+173

This diff is too big to show here.

tests/syntax-tests/source/Assembly (x86_64)/test.nasmnew file+86

This diff is too big to show here.

tests/syntax-tests/source/Bash/batgrep.shnew file+511

This diff is too big to show here.

tests/syntax-tests/source/Bash/simple.shnew file+72

This diff is too big to show here.

tests/syntax-tests/source/BatTestCustomAssets/NoColorsUnlessCustomAssetsAreUsed.battestcustomassetsnew file+2

This diff is too big to show here.

tests/syntax-tests/source/Batch/LICENSE.mdnew file+26

This diff is too big to show here.

tests/syntax-tests/source/Batch/build.batnew file+59

This diff is too big to show here.

tests/syntax-tests/source/BibTeX/test.bibnew file+18

This diff is too big to show here.

tests/syntax-tests/source/C-Sharp/Stack.csnew file+64

This diff is too big to show here.

tests/syntax-tests/source/C/test.cnew file+62

This diff is too big to show here.

tests/syntax-tests/source/CMake/CMakeLists.txtnew file+16

This diff is too big to show here.

tests/syntax-tests/source/CSS/style.cssnew file+115

This diff is too big to show here.

tests/syntax-tests/source/CSV/LICENSE.mdnew file+27

This diff is too big to show here.

tests/syntax-tests/source/CSV/comma_in_quotes.csvnew file+7

This diff is too big to show here.

tests/syntax-tests/source/Cabal/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/Cabal/semantic.cabalnew file+247

This diff is too big to show here.

tests/syntax-tests/source/Clojure/test.cljnew file+58

This diff is too big to show here.

tests/syntax-tests/source/CoffeeScript/LICENSE.mdnew file+26

This diff is too big to show here.

tests/syntax-tests/source/CoffeeScript/coffeescript.coffeenew file+391

This diff is too big to show here.

tests/syntax-tests/source/Cpp/test.cppnew file+79

This diff is too big to show here.

tests/syntax-tests/source/CpuInfo/test.cpuinfonew file+45

This diff is too big to show here.

tests/syntax-tests/source/Crystal/test.crnew file+117

This diff is too big to show here.

tests/syntax-tests/source/D/test.dnew file+44

This diff is too big to show here.

tests/syntax-tests/source/Dart/inner_comment.dartnew file+5

This diff is too big to show here.

tests/syntax-tests/source/Dart/test.dartnew file+133

This diff is too big to show here.

tests/syntax-tests/source/Diff/82e7786e747b1fcfac1f963ae6415a22ec9caae1.diffnew file+353

This diff is too big to show here.

tests/syntax-tests/source/Dockerfile/Dockerfilenew file+19

This diff is too big to show here.

tests/syntax-tests/source/DotENV/.envnew file+57

This diff is too big to show here.

tests/syntax-tests/source/DotENV/LICENSE.mdnew file+23

This diff is too big to show here.

tests/syntax-tests/source/Elixir/LICENSE.mdnew file+21

This diff is too big to show here.

tests/syntax-tests/source/Elixir/command.exnew file+31

This diff is too big to show here.

tests/syntax-tests/source/Elm/LICENSE.mdnew file+32

This diff is too big to show here.

tests/syntax-tests/source/Elm/test.elmnew file+137

This diff is too big to show here.

tests/syntax-tests/source/Email/test.emlnew file+16

This diff is too big to show here.

tests/syntax-tests/source/Erlang/bat_erlang.erlnew file+72

This diff is too big to show here.

tests/syntax-tests/source/EtcGroup/test.groupnew file+67

This diff is too big to show here.

tests/syntax-tests/source/F#/LICENSE.mdnew file+27

This diff is too big to show here.

tests/syntax-tests/source/F#/string.fsnew file+182

This diff is too big to show here.

tests/syntax-tests/source/Fish/test.fishnew file+77

This diff is too big to show here.

tests/syntax-tests/source/Fortran (Fixed Form)/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/Fortran (Fixed Form)/quicksort_real_F77.Fnew file+323

This diff is too big to show here.

tests/syntax-tests/source/Fortran (Modern)/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/Fortran (Modern)/test_savetxt.f90new file+119

This diff is too big to show here.

tests/syntax-tests/source/Fortran Namelist/test.namelistnew file+5

This diff is too big to show here.

tests/syntax-tests/source/Fstab/fstabnew file+7

This diff is too big to show here.

tests/syntax-tests/source/GLSL/test.glslnew file+42

This diff is too big to show here.

tests/syntax-tests/source/Git Attributes/example.gitattributesnew file+16

This diff is too big to show here.

tests/syntax-tests/source/Git Config/LICENSE.mdnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Git Config/text.gitconfignew file+107

This diff is too big to show here.

tests/syntax-tests/source/Git Ignore/LICENSE.mdnew file+234

This diff is too big to show here.

tests/syntax-tests/source/Git Ignore/test.gitignorenew file+43

This diff is too big to show here.

tests/syntax-tests/source/Go/LICENSE.mdnew file+205

This diff is too big to show here.

tests/syntax-tests/source/Go/main.gonew file+81

This diff is too big to show here.

tests/syntax-tests/source/GraphQL/test.graphqlnew file+145

This diff is too big to show here.

tests/syntax-tests/source/Graphviz DOT/LICENSE.mdnew file+22

This diff is too big to show here.

tests/syntax-tests/source/Graphviz DOT/test_digraph.dotnew file+41

This diff is too big to show here.

tests/syntax-tests/source/Graphviz DOT/test_graph.dotnew file+3

This diff is too big to show here.

tests/syntax-tests/source/Groff/LICENSE.mdnew file+235

This diff is too big to show here.

tests/syntax-tests/source/Groff/rustdoc.1new file+126

This diff is too big to show here.

tests/syntax-tests/source/Groovy/test.groovynew file+77

This diff is too big to show here.

tests/syntax-tests/source/HTML/test.htmlnew file+115

This diff is too big to show here.

tests/syntax-tests/source/Haskell/test.hsnew file+86

This diff is too big to show here.

tests/syntax-tests/source/Hosts/hostsnew file+8

This diff is too big to show here.

tests/syntax-tests/source/INI/test.infnew file+5

This diff is too big to show here.

tests/syntax-tests/source/INI/test.ininew file+18

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.baknew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-distnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-oldnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.innew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.in.innew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.oldnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.orignew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.orig~new file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnewnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorignew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsavenew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-distnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-newnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-oldnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.rs~new file+1

This diff is too big to show here.

tests/syntax-tests/source/Ignored suffixes/test.unknown~new file+1

This diff is too big to show here.

tests/syntax-tests/source/JQ/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/JQ/sample.jqnew file+60

This diff is too big to show here.

tests/syntax-tests/source/JSON/test.jsonnew file+29

This diff is too big to show here.

tests/syntax-tests/source/Java Server Page (JSP)/LICENSE.mdnew file+1141

This diff is too big to show here.

tests/syntax-tests/source/Java Server Page (JSP)/NOTICEnew file+68

This diff is too big to show here.

tests/syntax-tests/source/Java Server Page (JSP)/sessionDetail.jspnew file+197

This diff is too big to show here.

tests/syntax-tests/source/Java/test.javanew file+39

This diff is too big to show here.

tests/syntax-tests/source/JavaScript/test.jsnew file+114

This diff is too big to show here.

tests/syntax-tests/source/Jinja2/template.jinja2new file+30

This diff is too big to show here.

tests/syntax-tests/source/Julia/test.jlnew file+71

This diff is too big to show here.

tests/syntax-tests/source/Kotlin/test.ktnew file+85

This diff is too big to show here.

tests/syntax-tests/source/LLVM/test.llnew file+29

This diff is too big to show here.

tests/syntax-tests/source/Lean/test.leannew file+68

This diff is too big to show here.

tests/syntax-tests/source/Less/example.lessnew file+43

This diff is too big to show here.

tests/syntax-tests/source/Lisp/LICENSE.mdnew file+24

This diff is too big to show here.

tests/syntax-tests/source/Lisp/utils.lispnew file+80

This diff is too big to show here.

tests/syntax-tests/source/Literate Haskell/Main.lhsnew file+47

This diff is too big to show here.

tests/syntax-tests/source/LiveScript/LICENSE.mdnew file+23

This diff is too big to show here.

tests/syntax-tests/source/LiveScript/livescript-demo.lsnew file+83

This diff is too big to show here.

tests/syntax-tests/source/Log/example.lognew file+3

This diff is too big to show here.

tests/syntax-tests/source/Lua/test.luanew file+34

This diff is too big to show here.

tests/syntax-tests/source/MATLAB/LICENSE.mdnew file+27

This diff is too big to show here.

tests/syntax-tests/source/MATLAB/test.matlabnew file+34

This diff is too big to show here.

tests/syntax-tests/source/Makefile/LICENSE.mdnew file+12

This diff is too big to show here.

tests/syntax-tests/source/Makefile/Makefilenew file+385

This diff is too big to show here.

tests/syntax-tests/source/Manpage/bat-0.16.mannew file+243

This diff is too big to show here.

tests/syntax-tests/source/Manpage/select-2.mannew file+330

This diff is too big to show here.

tests/syntax-tests/source/Markdown/example.mdnew file+39

This diff is too big to show here.

tests/syntax-tests/source/MediaWiki/test.mediawikinew file+37

This diff is too big to show here.

tests/syntax-tests/source/MemInfo/test.meminfonew file+53

This diff is too big to show here.

tests/syntax-tests/source/NAnt Build File/Default.buildnew file+167

This diff is too big to show here.

tests/syntax-tests/source/NAnt Build File/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/Ninja/LICENSE.mdnew file+204

This diff is too big to show here.

tests/syntax-tests/source/Ninja/test.ninjanew file+6

This diff is too big to show here.

tests/syntax-tests/source/OCaml/syntax-test.mlnew file+83

This diff is too big to show here.

tests/syntax-tests/source/Objective-C++/test.mmnew file+68

This diff is too big to show here.

tests/syntax-tests/source/Objective-C/test.mnew file+32

This diff is too big to show here.

tests/syntax-tests/source/PHP/test.phpnew file+111

This diff is too big to show here.

tests/syntax-tests/source/Pascal/test.pasnew file+42

This diff is too big to show here.

tests/syntax-tests/source/Passwd/passwdnew file+7

This diff is too big to show here.

tests/syntax-tests/source/Perl/test.plnew file+157

This diff is too big to show here.

tests/syntax-tests/source/Plaintext/README.mdnew file+12

This diff is too big to show here.

tests/syntax-tests/source/Plaintext/bat_optionsnew file+1

This diff is too big to show here.

tests/syntax-tests/source/Plaintext/plaintext.txtnew file

Binary file not shown.

tests/syntax-tests/source/PowerShell/test.ps1new file

Binary file not shown.

tests/syntax-tests/source/Protocol Buffer/vyconf.protonew file+158

This diff is too big to show here.

tests/syntax-tests/source/Puppet/LICENSE.mdnew file+206

This diff is too big to show here.

tests/syntax-tests/source/Puppet/manifest_large_exported_classes_node.ppnew file+65

This diff is too big to show here.

tests/syntax-tests/source/PureScript/test.pursnew file+89

This diff is too big to show here.

tests/syntax-tests/source/Python/battest.pynew file+100

This diff is too big to show here.

tests/syntax-tests/source/QML/BatSyntaxTest.qmlnew file+219

This diff is too big to show here.

tests/syntax-tests/source/R/test.rnew file+170

This diff is too big to show here.

tests/syntax-tests/source/Racket/test.rktnew file+56

This diff is too big to show here.

tests/syntax-tests/source/Rego/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/Rego/src_test.regonew file+181

This diff is too big to show here.

tests/syntax-tests/source/Regular Expression/test.renew file+1

This diff is too big to show here.

tests/syntax-tests/source/Robot Framework/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/Robot Framework/recipe141_aws_simple_storage_service.robotnew file+31

This diff is too big to show here.

tests/syntax-tests/source/Ruby Haml/test.html.hamlnew file+15

This diff is too big to show here.

tests/syntax-tests/source/Ruby On Rails/test.rbnew file+22

This diff is too big to show here.

tests/syntax-tests/source/Ruby/output.rbnew file+56

This diff is too big to show here.

tests/syntax-tests/source/Rust/output.rsnew file+161

This diff is too big to show here.

tests/syntax-tests/source/SCSS/example.scssnew file+82

This diff is too big to show here.

tests/syntax-tests/source/SLS/test.slsnew file+57

This diff is too big to show here.

tests/syntax-tests/source/SML/sample.smlnew file+47

This diff is too big to show here.

tests/syntax-tests/source/SQL/ims.sqlnew file+266

This diff is too big to show here.

tests/syntax-tests/source/SSH Config/ssh_confignew file+9

This diff is too big to show here.

tests/syntax-tests/source/SSHD Config/sshd_confignew file+36

This diff is too big to show here.

tests/syntax-tests/source/Sass/example.sassnew file+76

This diff is too big to show here.

tests/syntax-tests/source/Scala/ConcurrentEffectLaws.scalanew file+98

This diff is too big to show here.

tests/syntax-tests/source/Scala/LICENSE.mdnew file+179

This diff is too big to show here.

tests/syntax-tests/source/Slim/test.slimnew file+20

This diff is too big to show here.

tests/syntax-tests/source/Solidity/ERC721.solnew file+376

This diff is too big to show here.

tests/syntax-tests/source/Solidity/LICENSE.mdnew file+27

This diff is too big to show here.

tests/syntax-tests/source/Strace/ls.stracenew file+94

This diff is too big to show here.

tests/syntax-tests/source/Stylus/LICENSE.mdnew file+24

This diff is too big to show here.

tests/syntax-tests/source/Stylus/gradients.stylnew file+90

This diff is too big to show here.

tests/syntax-tests/source/Svelte/App.sveltenew file+65

This diff is too big to show here.

tests/syntax-tests/source/Svelte/LICENSE.mdnew file+14

This diff is too big to show here.

tests/syntax-tests/source/Swift/test.swiftnew file+268

This diff is too big to show here.

tests/syntax-tests/source/Syslog/example.syslognew file+16

This diff is too big to show here.

tests/syntax-tests/source/SystemVerilog/output.svnew file+103

This diff is too big to show here.

tests/syntax-tests/source/TOML/Cargo.tomlnew file+87

This diff is too big to show here.

tests/syntax-tests/source/Tcl/test.tclnew file+22

This diff is too big to show here.

tests/syntax-tests/source/TeX/main.texnew file+84

This diff is too big to show here.

tests/syntax-tests/source/Terraform/main.tfnew file+48

This diff is too big to show here.

tests/syntax-tests/source/Textile/test.textilenew file+40

This diff is too big to show here.

tests/syntax-tests/source/TypeScript/LICENSE.mdnew file+19

This diff is too big to show here.

tests/syntax-tests/source/TypeScript/example.tsnew file+110

This diff is too big to show here.

tests/syntax-tests/source/TypeScriptReact/LICENSE.mdnew file+25

This diff is too big to show here.

tests/syntax-tests/source/TypeScriptReact/app.tsxnew file+35

This diff is too big to show here.

tests/syntax-tests/source/Verilog/LICENSE.mdnew file+205

This diff is too big to show here.

tests/syntax-tests/source/Verilog/div_pipelined.vnew file+172

This diff is too big to show here.

tests/syntax-tests/source/VimL/source.vimnew file+92

This diff is too big to show here.

tests/syntax-tests/source/Vue/example.vuenew file+60

This diff is too big to show here.

tests/syntax-tests/source/Vyper/LICENSE.mdnew file+205

This diff is too big to show here.

tests/syntax-tests/source/Vyper/crowdsale.vynew file+89

This diff is too big to show here.

tests/syntax-tests/source/XAML/ItemPage.xamlnew file+264

This diff is too big to show here.

tests/syntax-tests/source/XAML/LICENSE.mdnew file+23

This diff is too big to show here.

tests/syntax-tests/source/XML/example.xmlnew file+22

This diff is too big to show here.

tests/syntax-tests/source/YAML/example.yamlnew file+34

This diff is too big to show here.

tests/syntax-tests/source/Zig/example.zignew file+107

This diff is too big to show here.

tests/syntax-tests/source/cmd-help/test.cmd-helpnew file+54

This diff is too big to show here.

tests/syntax-tests/source/dash/LICENSE.mdnew file+23

This diff is too big to show here.

tests/syntax-tests/source/dash/shfmnew file+425

This diff is too big to show here.

tests/syntax-tests/source/gnuplot/test.gpnew file+19

This diff is too big to show here.

tests/syntax-tests/source/http-request-response/example.httpnew file+44

This diff is too big to show here.

tests/syntax-tests/source/jsonnet/LICENSE.mdnew file+206

This diff is too big to show here.

tests/syntax-tests/source/jsonnet/stdlib.jsonnetnew file+88

This diff is too big to show here.

tests/syntax-tests/source/nginx/nginx.confnew file+140

This diff is too big to show here.

tests/syntax-tests/source/nim/main.nimnew file+41

This diff is too big to show here.

tests/syntax-tests/source/nim/test.nimblenew file+23

This diff is too big to show here.

tests/syntax-tests/source/nix/test.nixnew file+15

This diff is too big to show here.

tests/syntax-tests/source/orgmode/test.orgnew file+38

This diff is too big to show here.

tests/syntax-tests/source/reStructuredText/reference.rstnew file+320

This diff is too big to show here.

tests/syntax-tests/source/resolv.conf/resolv.confnew file+4

This diff is too big to show here.

tests/syntax-tests/source/varlink/LICENSE.mdnew file+229

This diff is too big to show here.

tests/syntax-tests/source/varlink/org.varlink.certification.varlinknew file+86

This diff is too big to show here.

tests/syntax-tests/test_custom_assets.shnew file+74

This diff is too big to show here.

tests/syntax-tests/update.shnew file+7

This diff is too big to show here.

tests/tester.rs+24−24

This diff is too big to show here.

tests/utils/mocked_pagers.rsnew file+69

This diff is too big to show here.

tests/utils/mod.rsnew file+1

This diff is too big to show here.