diffx-cli 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/cli.mjs +394 -0
- package/dist/client/assets/abap-CkQ0tsz-.js +1 -0
- package/dist/client/assets/actionscript-3-DHm0ZfF4.js +1 -0
- package/dist/client/assets/ada-DK_ua92Z.js +1 -0
- package/dist/client/assets/andromeeda-D2ccw8v4.js +1 -0
- package/dist/client/assets/angular-html-C5z8X7WM.js +1 -0
- package/dist/client/assets/angular-ts-up6XGFrx.js +1 -0
- package/dist/client/assets/apache-DXtpFu7o.js +1 -0
- package/dist/client/assets/apex-DlnRRWpl.js +1 -0
- package/dist/client/assets/apl-CXDAq4wt.js +1 -0
- package/dist/client/assets/applescript-CShk62ad.js +1 -0
- package/dist/client/assets/ara-CWN-FDkm.js +1 -0
- package/dist/client/assets/asciidoc-Bg-PM9Vn.js +1 -0
- package/dist/client/assets/asm-DKOhR24S.js +1 -0
- package/dist/client/assets/astro-DGdFeY2v.js +1 -0
- package/dist/client/assets/aurora-x-DpaEirL8.js +1 -0
- package/dist/client/assets/awk-3ibKHffv.js +1 -0
- package/dist/client/assets/ayu-dark-ursiSH5k.js +1 -0
- package/dist/client/assets/ayu-light-DMjlrKmx.js +1 -0
- package/dist/client/assets/ayu-mirage-DZEMb75h.js +1 -0
- package/dist/client/assets/ballerina-xx7VNGxs.js +1 -0
- package/dist/client/assets/bat-DGYsZ5wR.js +1 -0
- package/dist/client/assets/beancount-D_ATR1UV.js +1 -0
- package/dist/client/assets/berry-BqYMORfH.js +1 -0
- package/dist/client/assets/bibtex-CQTBDajW.js +1 -0
- package/dist/client/assets/bicep-CfNtxPrK.js +1 -0
- package/dist/client/assets/bird2-C0dUPe3I.js +1 -0
- package/dist/client/assets/blade-qiPgcCLk.js +1 -0
- package/dist/client/assets/bsl-Dx5tFn3i.js +1 -0
- package/dist/client/assets/c-BbyjIz53.js +1 -0
- package/dist/client/assets/c3-BUwZ5e3k.js +1 -0
- package/dist/client/assets/cadence-C3OKDYrr.js +1 -0
- package/dist/client/assets/cairo-wCCQTdA9.js +1 -0
- package/dist/client/assets/catppuccin-frappe-CMnRXVZP.js +1 -0
- package/dist/client/assets/catppuccin-latte-CqhXSjCC.js +1 -0
- package/dist/client/assets/catppuccin-macchiato-B6kneE0C.js +1 -0
- package/dist/client/assets/catppuccin-mocha-CP8YZpvj.js +1 -0
- package/dist/client/assets/clarity-Crxe8gSr.js +1 -0
- package/dist/client/assets/clojure-BuzOUPMr.js +1 -0
- package/dist/client/assets/cmake-CCpZLdLI.js +1 -0
- package/dist/client/assets/cobol-J3RmleFg.js +1 -0
- package/dist/client/assets/codeowners-Bo1VYpHz.js +1 -0
- package/dist/client/assets/codeql-Db01hzHE.js +1 -0
- package/dist/client/assets/coffee-Ds0qvwRw.js +1 -0
- package/dist/client/assets/common-lisp-CMlJIc6Y.js +1 -0
- package/dist/client/assets/coq-BlzBYp3f.js +1 -0
- package/dist/client/assets/cpp-BZTJo7uW.js +1 -0
- package/dist/client/assets/crystal-LCgMtffM.js +1 -0
- package/dist/client/assets/csharp-kfNshAa7.js +1 -0
- package/dist/client/assets/css-DgcYa0tN.js +1 -0
- package/dist/client/assets/csv-Dr8ri5Nd.js +1 -0
- package/dist/client/assets/cue-jXfhyOwY.js +1 -0
- package/dist/client/assets/cypher-CayLeiaR.js +1 -0
- package/dist/client/assets/d-BMZQ0mAy.js +1 -0
- package/dist/client/assets/dark-plus-B__q47Nr.js +1 -0
- package/dist/client/assets/dart-gMOEMyuz.js +1 -0
- package/dist/client/assets/dax-C3t5LadU.js +1 -0
- package/dist/client/assets/desktop-DmhXLwLR.js +1 -0
- package/dist/client/assets/diff-togOXQX6.js +1 -0
- package/dist/client/assets/docker--6N01olR.js +1 -0
- package/dist/client/assets/dotenv-Bq930Yx8.js +1 -0
- package/dist/client/assets/dracula-CBkSghcw.js +1 -0
- package/dist/client/assets/dracula-soft-CCSYeoxL.js +1 -0
- package/dist/client/assets/dream-maker-BiMf3DHl.js +1 -0
- package/dist/client/assets/edge-BMwPfoYR.js +1 -0
- package/dist/client/assets/elixir-PMhuNwou.js +1 -0
- package/dist/client/assets/elm-BzCRW_1X.js +1 -0
- package/dist/client/assets/emacs-lisp-Dhht7he2.js +1 -0
- package/dist/client/assets/erb-CySNgV7D.js +1 -0
- package/dist/client/assets/erlang-CtK0kQ6z.js +1 -0
- package/dist/client/assets/everforest-dark-NqSz4oHS.js +1 -0
- package/dist/client/assets/everforest-light-a3Yzs_lT.js +1 -0
- package/dist/client/assets/fennel-BExc9TZf.js +1 -0
- package/dist/client/assets/fish-C2p-AJmZ.js +1 -0
- package/dist/client/assets/fluent-CeYzs8Qy.js +1 -0
- package/dist/client/assets/fortran-fixed-form-DBM4e0_k.js +1 -0
- package/dist/client/assets/fortran-free-form-BIQEK2Jw.js +1 -0
- package/dist/client/assets/fsharp-CmzzGQLe.js +1 -0
- package/dist/client/assets/gdresource-B_wbPqHd.js +1 -0
- package/dist/client/assets/gdscript-B5JQPh_-.js +1 -0
- package/dist/client/assets/gdshader-vVjJ_Qr8.js +1 -0
- package/dist/client/assets/genie-DGl5rqC8.js +1 -0
- package/dist/client/assets/gherkin-CY_VLUnD.js +1 -0
- package/dist/client/assets/git-commit-1z4D6NzL.js +1 -0
- package/dist/client/assets/git-rebase-CR4yeFId.js +1 -0
- package/dist/client/assets/github-dark-ClO4AStc.js +1 -0
- package/dist/client/assets/github-dark-default-CM0dPco8.js +1 -0
- package/dist/client/assets/github-dark-dimmed-Cb6xxpXY.js +1 -0
- package/dist/client/assets/github-dark-high-contrast-BpYtx2-M.js +1 -0
- package/dist/client/assets/github-light-CeOVFgf_.js +1 -0
- package/dist/client/assets/github-light-default-BmnCWL6x.js +1 -0
- package/dist/client/assets/github-light-high-contrast-rpagNF5O.js +1 -0
- package/dist/client/assets/gleam-BarIG9kQ.js +1 -0
- package/dist/client/assets/glimmer-js-Ca2bbW2y.js +1 -0
- package/dist/client/assets/glimmer-ts-RXTe2WpH.js +1 -0
- package/dist/client/assets/glsl-DxvmxctL.js +1 -0
- package/dist/client/assets/gn-DhYsTPYc.js +1 -0
- package/dist/client/assets/gnuplot-CucLlTBc.js +1 -0
- package/dist/client/assets/go-toi-uWvg.js +1 -0
- package/dist/client/assets/graphql-BOrhCbnD.js +1 -0
- package/dist/client/assets/groovy-Ds4dis_k.js +1 -0
- package/dist/client/assets/gruvbox-dark-hard-aPiW8pQh.js +1 -0
- package/dist/client/assets/gruvbox-dark-medium-2HJCvzsS.js +1 -0
- package/dist/client/assets/gruvbox-dark-soft-Da97ODX9.js +1 -0
- package/dist/client/assets/gruvbox-light-hard-BXlEipFe.js +1 -0
- package/dist/client/assets/gruvbox-light-medium-Cun-GjGk.js +1 -0
- package/dist/client/assets/gruvbox-light-soft-Bd3qiiSw.js +1 -0
- package/dist/client/assets/hack-DqBnUe5E.js +1 -0
- package/dist/client/assets/haml-BMiGtx1S.js +1 -0
- package/dist/client/assets/handlebars-B6_g4p_E.js +1 -0
- package/dist/client/assets/haskell-B_jvz5Po.js +1 -0
- package/dist/client/assets/haxe-BRbuo5UO.js +1 -0
- package/dist/client/assets/hcl-BzNUCtsK.js +1 -0
- package/dist/client/assets/hjson-BxVo3sS2.js +1 -0
- package/dist/client/assets/hlsl-C8Wes1nf.js +1 -0
- package/dist/client/assets/horizon-D54PjLAY.js +1 -0
- package/dist/client/assets/horizon-bright-D9RccdIr.js +1 -0
- package/dist/client/assets/houston-CMu1N_4K.js +1 -0
- package/dist/client/assets/html-derivative-B0DZZ4ax.js +1 -0
- package/dist/client/assets/html-mN_HQ7bQ.js +1 -0
- package/dist/client/assets/http-OuFe3nVZ.js +1 -0
- package/dist/client/assets/hurl-CdMerh3M.js +1 -0
- package/dist/client/assets/hxml-DC4KwKt2.js +1 -0
- package/dist/client/assets/hy-dMrJKKU_.js +1 -0
- package/dist/client/assets/imba-DG_oO8tg.js +1 -0
- package/dist/client/assets/index-BPXuWVds.js +1876 -0
- package/dist/client/assets/index-DQfPhFq6.css +1 -0
- package/dist/client/assets/ini-geHw79Aj.js +1 -0
- package/dist/client/assets/java-DAz-Eluq.js +1 -0
- package/dist/client/assets/javascript-C8NaxFlQ.js +1 -0
- package/dist/client/assets/jinja-qYohZk3i.js +1 -0
- package/dist/client/assets/jison-wTiGn-c4.js +1 -0
- package/dist/client/assets/json-9fGxtN8L.js +1 -0
- package/dist/client/assets/json5-CDUsNqz6.js +1 -0
- package/dist/client/assets/jsonc-D48xcwyD.js +1 -0
- package/dist/client/assets/jsonl-cpIYDXEe.js +1 -0
- package/dist/client/assets/jsonnet-Da1lhszN.js +1 -0
- package/dist/client/assets/jssm-B8BLrEGL.js +1 -0
- package/dist/client/assets/jsx-ZRXi76O8.js +1 -0
- package/dist/client/assets/julia-Xi6fmX_v.js +1 -0
- package/dist/client/assets/just-oc5S_p7O.js +1 -0
- package/dist/client/assets/kanagawa-dragon-2Sk8Rx83.js +1 -0
- package/dist/client/assets/kanagawa-lotus-CQVSWfJp.js +1 -0
- package/dist/client/assets/kanagawa-wave-BKWNioLX.js +1 -0
- package/dist/client/assets/kdl-B-2tSRmp.js +1 -0
- package/dist/client/assets/kotlin-DepsEzh3.js +1 -0
- package/dist/client/assets/kusto-BcCtXIb8.js +1 -0
- package/dist/client/assets/laserwave-BUqkO46F.js +1 -0
- package/dist/client/assets/latex-Dr4rkFnJ.js +1 -0
- package/dist/client/assets/lean-CNO9ffpX.js +1 -0
- package/dist/client/assets/less-Dj0T9pWC.js +1 -0
- package/dist/client/assets/light-plus-C9Hnuc1T.js +1 -0
- package/dist/client/assets/liquid-CScpfz4P.js +1 -0
- package/dist/client/assets/llvm-DbV9b66l.js +1 -0
- package/dist/client/assets/log-BMblmPyH.js +1 -0
- package/dist/client/assets/logo-B78qMxws.js +1 -0
- package/dist/client/assets/lua-I7tJqIJ3.js +1 -0
- package/dist/client/assets/luau-BUd8xsdE.js +1 -0
- package/dist/client/assets/make-Ev-6cJrd.js +1 -0
- package/dist/client/assets/markdown-CS4LI6sN.js +1 -0
- package/dist/client/assets/marko-C8AJPFXy.js +1 -0
- package/dist/client/assets/material-theme-5rA1zn0D.js +1 -0
- package/dist/client/assets/material-theme-darker-DGOEiL65.js +1 -0
- package/dist/client/assets/material-theme-lighter-CULfFRX0.js +1 -0
- package/dist/client/assets/material-theme-ocean-LQZ9CleP.js +1 -0
- package/dist/client/assets/material-theme-palenight-Di_f5oks.js +1 -0
- package/dist/client/assets/matlab-C0qEtAx9.js +1 -0
- package/dist/client/assets/mdc-CplcRczn.js +1 -0
- package/dist/client/assets/mdx-CzvnbLXb.js +1 -0
- package/dist/client/assets/mermaid-BPquZaKt.js +1 -0
- package/dist/client/assets/min-dark-rkuIbtJV.js +1 -0
- package/dist/client/assets/min-light-Dj_HOGsr.js +1 -0
- package/dist/client/assets/mipsasm-k5DQoS6j.js +1 -0
- package/dist/client/assets/mojo-sTTDuNnR.js +1 -0
- package/dist/client/assets/monokai-D5p-u2ij.js +1 -0
- package/dist/client/assets/moonbit-j5ChFtBC.js +1 -0
- package/dist/client/assets/move-Dj0Gmn6R.js +1 -0
- package/dist/client/assets/narrat-DJgMz2oW.js +1 -0
- package/dist/client/assets/nextflow-CApkvBGW.js +1 -0
- package/dist/client/assets/nextflow-groovy-eDLuZ_oi.js +1 -0
- package/dist/client/assets/nginx-BYUunX_l.js +1 -0
- package/dist/client/assets/night-owl-CEdtPl3A.js +1 -0
- package/dist/client/assets/night-owl-light-GdSldewm.js +1 -0
- package/dist/client/assets/nim-D1vkgASE.js +1 -0
- package/dist/client/assets/nix-CxIPS3pb.js +1 -0
- package/dist/client/assets/nord-3WFAz5H9.js +1 -0
- package/dist/client/assets/nushell-GDfBmoBU.js +1 -0
- package/dist/client/assets/objective-c-MFQ_MGUa.js +1 -0
- package/dist/client/assets/objective-cpp-Y83LcBE7.js +1 -0
- package/dist/client/assets/ocaml-FxYfaJxu.js +1 -0
- package/dist/client/assets/odin-CprihY3z.js +1 -0
- package/dist/client/assets/one-dark-pro-BB6mpmmA.js +1 -0
- package/dist/client/assets/one-light-BYLoxNtg.js +1 -0
- package/dist/client/assets/openscad-Bc1FbpOi.js +1 -0
- package/dist/client/assets/pascal-Bb4d8cUL.js +1 -0
- package/dist/client/assets/perl-CGNEM6fI.js +1 -0
- package/dist/client/assets/php-Cwq_wGEV.js +1 -0
- package/dist/client/assets/pierre-dark-DbQedTMH.js +1 -0
- package/dist/client/assets/pierre-light-DxtrzyCi.js +1 -0
- package/dist/client/assets/pkl-tM25Sq0w.js +1 -0
- package/dist/client/assets/plastic-D3k2Xp_5.js +1 -0
- package/dist/client/assets/plsql-CLEfFhSj.js +1 -0
- package/dist/client/assets/po-CaAzdrrh.js +1 -0
- package/dist/client/assets/poimandres-bPTvT4Da.js +1 -0
- package/dist/client/assets/polar-TG7aTGdK.js +1 -0
- package/dist/client/assets/postcss-8kqfa9f0.js +1 -0
- package/dist/client/assets/powerquery-CtSu1Nfd.js +1 -0
- package/dist/client/assets/powershell-87lLBHMy.js +1 -0
- package/dist/client/assets/prisma-Dnf694DZ.js +1 -0
- package/dist/client/assets/prolog-C0XbHTWa.js +1 -0
- package/dist/client/assets/proto-BZP-HLIb.js +1 -0
- package/dist/client/assets/pug-CGNxmzE6.js +1 -0
- package/dist/client/assets/puppet-CJYWgYC5.js +1 -0
- package/dist/client/assets/purescript-B95Q6BAd.js +1 -0
- package/dist/client/assets/python-CqTCsi7P.js +1 -0
- package/dist/client/assets/qml-CaZh031r.js +1 -0
- package/dist/client/assets/qmldir-DlIL4hls.js +1 -0
- package/dist/client/assets/qss-BW72E0q_.js +1 -0
- package/dist/client/assets/r-D-MGvxfd.js +1 -0
- package/dist/client/assets/racket-CCAimEsC.js +1 -0
- package/dist/client/assets/raku-mSuqElkM.js +1 -0
- package/dist/client/assets/razor-8f6GJnj6.js +1 -0
- package/dist/client/assets/red-C-DA4yBI.js +1 -0
- package/dist/client/assets/reg-CGwMBJ2c.js +1 -0
- package/dist/client/assets/regexp-BcBQ78li.js +1 -0
- package/dist/client/assets/rel-JwrbYgX4.js +1 -0
- package/dist/client/assets/riscv-CoYyE75b.js +1 -0
- package/dist/client/assets/ron-C5wrhnmJ.js +1 -0
- package/dist/client/assets/rose-pine-DlrMPYYd.js +1 -0
- package/dist/client/assets/rose-pine-dawn-DBHFtZD2.js +1 -0
- package/dist/client/assets/rose-pine-moon-BBfrpe5q.js +1 -0
- package/dist/client/assets/rosmsg-DlimTR9t.js +1 -0
- package/dist/client/assets/rst-DnzZRC_M.js +1 -0
- package/dist/client/assets/ruby-CT2w0cDt.js +1 -0
- package/dist/client/assets/rust-Cxnkxx3h.js +1 -0
- package/dist/client/assets/sas-BVcXMxoZ.js +1 -0
- package/dist/client/assets/sass-DEyqUIpU.js +1 -0
- package/dist/client/assets/scala-i3RN3yAN.js +1 -0
- package/dist/client/assets/scheme-BcKdjYkO.js +1 -0
- package/dist/client/assets/scss-BOOt4n64.js +1 -0
- package/dist/client/assets/sdbl-Be_XWc3n.js +1 -0
- package/dist/client/assets/shaderlab-DXAhMdPo.js +1 -0
- package/dist/client/assets/shellscript-CI7DEHRv.js +1 -0
- package/dist/client/assets/shellsession-BWPsT_Yn.js +1 -0
- package/dist/client/assets/slack-dark-3PDtm74m.js +1 -0
- package/dist/client/assets/slack-ochin-CwiuFRJD.js +1 -0
- package/dist/client/assets/smalltalk-BdBlL6ks.js +1 -0
- package/dist/client/assets/snazzy-light-Dyqc8Is2.js +1 -0
- package/dist/client/assets/solarized-dark-DZiTscIX.js +1 -0
- package/dist/client/assets/solarized-light-DBcfxrfG.js +1 -0
- package/dist/client/assets/solidity-DH-yUSWc.js +1 -0
- package/dist/client/assets/soy-_vP8kD1F.js +1 -0
- package/dist/client/assets/sparql-BdcL8cbr.js +1 -0
- package/dist/client/assets/splunk-CIjc4kxs.js +1 -0
- package/dist/client/assets/sql-EzopbYAY.js +1 -0
- package/dist/client/assets/ssh-config-BKVd4drG.js +1 -0
- package/dist/client/assets/stata-knf-1L4e.js +1 -0
- package/dist/client/assets/stylus-tqAsmugv.js +1 -0
- package/dist/client/assets/surrealql-FWzxdKu6.js +1 -0
- package/dist/client/assets/svelte-INNbw37n.js +1 -0
- package/dist/client/assets/swift-CdDBQ3_Z.js +1 -0
- package/dist/client/assets/synthwave-84-CbbRs73K.js +1 -0
- package/dist/client/assets/system-verilog-CBqEY-9v.js +1 -0
- package/dist/client/assets/systemd-khRP5zwK.js +1 -0
- package/dist/client/assets/talonscript-D_lneH-6.js +1 -0
- package/dist/client/assets/tasl-CLymawGe.js +1 -0
- package/dist/client/assets/tcl-BRY1S87U.js +1 -0
- package/dist/client/assets/templ-BIgcNlN-.js +1 -0
- package/dist/client/assets/terraform-BqohMo2f.js +1 -0
- package/dist/client/assets/tex-DccjImKf.js +1 -0
- package/dist/client/assets/tokyo-night-BWUONxad.js +1 -0
- package/dist/client/assets/toml-C4c85Lwg.js +1 -0
- package/dist/client/assets/ts-tags-DK9qDFTJ.js +1 -0
- package/dist/client/assets/tsv-DsZq9HBQ.js +1 -0
- package/dist/client/assets/tsx-YVbghAVe.js +1 -0
- package/dist/client/assets/turtle-Dpr8zLlw.js +1 -0
- package/dist/client/assets/twig-DaYrufDD.js +1 -0
- package/dist/client/assets/typescript-B77o-Smj.js +1 -0
- package/dist/client/assets/typespec-DcqgATB-.js +1 -0
- package/dist/client/assets/typst-CeVxmuPg.js +1 -0
- package/dist/client/assets/v-C2Qsh2-1.js +1 -0
- package/dist/client/assets/vala-CvZ3yL7c.js +1 -0
- package/dist/client/assets/vb-B_p4qDw4.js +1 -0
- package/dist/client/assets/verilog-D8MGjxD7.js +1 -0
- package/dist/client/assets/vesper-DossXiE1.js +1 -0
- package/dist/client/assets/vhdl-MLyYh_Gz.js +1 -0
- package/dist/client/assets/viml-BuYIArcz.js +1 -0
- package/dist/client/assets/vitesse-black-C3kc1227.js +1 -0
- package/dist/client/assets/vitesse-dark-kWOu5V36.js +1 -0
- package/dist/client/assets/vitesse-light-DMtiL8bK.js +1 -0
- package/dist/client/assets/vue-BV2TMqpC.js +1 -0
- package/dist/client/assets/vue-html-9R2OnQ_y.js +1 -0
- package/dist/client/assets/vue-vine-Sfd_kSIT.js +1 -0
- package/dist/client/assets/vyper-CNqG09-_.js +1 -0
- package/dist/client/assets/wasm-BsQDV7Y0.js +1 -0
- package/dist/client/assets/wasm-DFVlQlgd.js +1 -0
- package/dist/client/assets/wenyan-BmOQge13.js +1 -0
- package/dist/client/assets/wgsl-CgWrmvIg.js +1 -0
- package/dist/client/assets/wikitext-DkwckXCk.js +1 -0
- package/dist/client/assets/wit-CtyVFGe7.js +1 -0
- package/dist/client/assets/wolfram-CXE4FrKz.js +1 -0
- package/dist/client/assets/xml-BN0OwSJY.js +1 -0
- package/dist/client/assets/xsl-BMDDDdU9.js +1 -0
- package/dist/client/assets/yaml-CHVyzUS7.js +1 -0
- package/dist/client/assets/zenscript-DH15wJt0.js +1 -0
- package/dist/client/assets/zig-CqXN9brD.js +1 -0
- package/dist/client/index.html +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,15 +70,18 @@ This null check removal may cause a bug when `input` is undefined.
|
|
|
70
70
|
|
|
71
71
|
Each comment includes the commented code line with a `+`/`-` prefix indicating whether it's an added or removed line.
|
|
72
72
|
|
|
73
|
-
## Agent
|
|
73
|
+
## Agent Skills
|
|
74
74
|
|
|
75
|
-
Install the
|
|
75
|
+
Install the diffx skills to use diffx directly from your AI coding agent:
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
npx skills add wong2/diffx
|
|
78
|
+
npx skills add wong2/diffx
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
The review workflow uses two commands:
|
|
82
|
+
|
|
83
|
+
1. **`/diffx-start-review`** — Launches the diffx server and opens the browser. Review your changes and leave inline comments.
|
|
84
|
+
2. **`/diffx-finish-review`** — The agent fetches all comments from the running diffx server via API, applies the requested changes, and marks each comment as resolved. The browser UI updates in real time as comments are resolved.
|
|
82
85
|
|
|
83
86
|
## License
|
|
84
87
|
|
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { parseArgs } from "node:util";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { basename, dirname, extname, join, resolve } from "node:path";
|
|
5
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
6
|
+
import getPort from "get-port";
|
|
7
|
+
import { execSync } from "node:child_process";
|
|
8
|
+
import { readFile } from "node:fs/promises";
|
|
9
|
+
import { Hono } from "hono";
|
|
10
|
+
import { serve } from "@hono/node-server";
|
|
11
|
+
import { homedir } from "node:os";
|
|
12
|
+
//#region src/git.ts
|
|
13
|
+
function isBinaryFile(absolutePath) {
|
|
14
|
+
try {
|
|
15
|
+
const buffer = readFileSync(absolutePath);
|
|
16
|
+
const bytesToCheck = Math.min(buffer.length, 8192);
|
|
17
|
+
for (let i = 0; i < bytesToCheck; i++) if (buffer[i] === 0) return true;
|
|
18
|
+
return false;
|
|
19
|
+
} catch {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function getFileContent(filePath, version) {
|
|
24
|
+
const root = getRepoRoot();
|
|
25
|
+
if (version === "new") try {
|
|
26
|
+
return readFileSync(join(root, filePath));
|
|
27
|
+
} catch {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
return execSync(`git show HEAD:${filePath}`, { maxBuffer: 50 * 1024 * 1024 });
|
|
32
|
+
} catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function isGitRepo() {
|
|
37
|
+
try {
|
|
38
|
+
execSync("git rev-parse --is-inside-work-tree", { stdio: "pipe" });
|
|
39
|
+
return true;
|
|
40
|
+
} catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function getRepoRoot() {
|
|
45
|
+
return execSync("git rev-parse --show-toplevel", { encoding: "utf-8" }).trim();
|
|
46
|
+
}
|
|
47
|
+
function getRepoName() {
|
|
48
|
+
return basename(getRepoRoot());
|
|
49
|
+
}
|
|
50
|
+
function getBranchName() {
|
|
51
|
+
try {
|
|
52
|
+
return execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf-8" }).trim();
|
|
53
|
+
} catch {
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function getCustomGitDiff(args) {
|
|
58
|
+
return execSync([
|
|
59
|
+
"git",
|
|
60
|
+
"diff",
|
|
61
|
+
...args
|
|
62
|
+
].join(" "), {
|
|
63
|
+
encoding: "utf-8",
|
|
64
|
+
maxBuffer: 50 * 1024 * 1024
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function getGitDiff(options = {}) {
|
|
68
|
+
const parts = [];
|
|
69
|
+
const unstaged = execSync("git diff", {
|
|
70
|
+
encoding: "utf-8",
|
|
71
|
+
maxBuffer: 50 * 1024 * 1024
|
|
72
|
+
});
|
|
73
|
+
if (unstaged) parts.push(unstaged);
|
|
74
|
+
if (options.staged) {
|
|
75
|
+
const staged = execSync("git diff --staged", {
|
|
76
|
+
encoding: "utf-8",
|
|
77
|
+
maxBuffer: 50 * 1024 * 1024
|
|
78
|
+
});
|
|
79
|
+
if (staged) parts.push(staged);
|
|
80
|
+
}
|
|
81
|
+
if (options.untracked) {
|
|
82
|
+
const untrackedPatch = getUntrackedFilesDiff();
|
|
83
|
+
if (untrackedPatch) parts.push(untrackedPatch);
|
|
84
|
+
}
|
|
85
|
+
return parts.join("\n");
|
|
86
|
+
}
|
|
87
|
+
function getUntrackedFilesDiff() {
|
|
88
|
+
const root = getRepoRoot();
|
|
89
|
+
const output = execSync("git ls-files --others --exclude-standard", {
|
|
90
|
+
encoding: "utf-8",
|
|
91
|
+
maxBuffer: 50 * 1024 * 1024
|
|
92
|
+
}).trim();
|
|
93
|
+
if (!output) return "";
|
|
94
|
+
const files = output.split("\n");
|
|
95
|
+
const patches = [];
|
|
96
|
+
for (const file of files) {
|
|
97
|
+
const absolutePath = join(root, file);
|
|
98
|
+
if (isBinaryFile(absolutePath)) {
|
|
99
|
+
const patch = [
|
|
100
|
+
`diff --git a/${file} b/${file}`,
|
|
101
|
+
"new file mode 100644",
|
|
102
|
+
"index 0000000..0000001",
|
|
103
|
+
`Binary files /dev/null and b/${file} differ`
|
|
104
|
+
].join("\n");
|
|
105
|
+
patches.push(patch);
|
|
106
|
+
} else try {
|
|
107
|
+
const lines = readFileSync(absolutePath, "utf-8").split("\n");
|
|
108
|
+
const diffLines = lines.map((line) => `+${line}`);
|
|
109
|
+
const patch = [
|
|
110
|
+
`diff --git a/${file} b/${file}`,
|
|
111
|
+
"new file mode 100644",
|
|
112
|
+
"index 0000000..0000001",
|
|
113
|
+
"--- /dev/null",
|
|
114
|
+
`+++ b/${file}`,
|
|
115
|
+
`@@ -0,0 +1,${lines.length} @@`,
|
|
116
|
+
...diffLines
|
|
117
|
+
].join("\n");
|
|
118
|
+
patches.push(patch);
|
|
119
|
+
} catch {}
|
|
120
|
+
}
|
|
121
|
+
return patches.length > 0 ? "\n" + patches.join("\n") : "";
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/settings.ts
|
|
125
|
+
const CONFIG_DIR = join(homedir(), ".config", "diffx");
|
|
126
|
+
const SETTINGS_FILE = join(CONFIG_DIR, "settings.json");
|
|
127
|
+
const DEFAULTS = {
|
|
128
|
+
staged: true,
|
|
129
|
+
untracked: true,
|
|
130
|
+
diffStyle: "split"
|
|
131
|
+
};
|
|
132
|
+
function loadSettings() {
|
|
133
|
+
try {
|
|
134
|
+
const data = readFileSync(SETTINGS_FILE, "utf-8");
|
|
135
|
+
return {
|
|
136
|
+
...DEFAULTS,
|
|
137
|
+
...JSON.parse(data)
|
|
138
|
+
};
|
|
139
|
+
} catch {
|
|
140
|
+
return { ...DEFAULTS };
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function saveSettings(settings) {
|
|
144
|
+
const merged = {
|
|
145
|
+
...loadSettings(),
|
|
146
|
+
...settings
|
|
147
|
+
};
|
|
148
|
+
mkdirSync(CONFIG_DIR, { recursive: true });
|
|
149
|
+
writeFileSync(SETTINGS_FILE, JSON.stringify(merged, null, 2));
|
|
150
|
+
return merged;
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/comments.ts
|
|
154
|
+
var InMemoryCommentStore = class {
|
|
155
|
+
comments = [];
|
|
156
|
+
async getAll() {
|
|
157
|
+
return this.comments;
|
|
158
|
+
}
|
|
159
|
+
async add(comment) {
|
|
160
|
+
this.comments.push(comment);
|
|
161
|
+
return comment;
|
|
162
|
+
}
|
|
163
|
+
async update(id, fields) {
|
|
164
|
+
const comment = this.comments.find((c) => c.id === id);
|
|
165
|
+
if (!comment) return null;
|
|
166
|
+
if (fields.body !== void 0) comment.body = fields.body;
|
|
167
|
+
if (fields.status !== void 0) comment.status = fields.status;
|
|
168
|
+
return comment;
|
|
169
|
+
}
|
|
170
|
+
async remove(id) {
|
|
171
|
+
const index = this.comments.findIndex((c) => c.id === id);
|
|
172
|
+
if (index === -1) return false;
|
|
173
|
+
this.comments.splice(index, 1);
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/server.ts
|
|
179
|
+
const MIME_TYPES = {
|
|
180
|
+
".html": "text/html",
|
|
181
|
+
".js": "application/javascript",
|
|
182
|
+
".css": "text/css",
|
|
183
|
+
".json": "application/json",
|
|
184
|
+
".svg": "image/svg+xml",
|
|
185
|
+
".png": "image/png",
|
|
186
|
+
".ico": "image/x-icon",
|
|
187
|
+
".jpg": "image/jpeg",
|
|
188
|
+
".jpeg": "image/jpeg",
|
|
189
|
+
".gif": "image/gif",
|
|
190
|
+
".webp": "image/webp",
|
|
191
|
+
".bmp": "image/bmp",
|
|
192
|
+
".avif": "image/avif"
|
|
193
|
+
};
|
|
194
|
+
function parseBinaryFiles(patch) {
|
|
195
|
+
const binaryFiles = [];
|
|
196
|
+
const lines = patch.split("\n");
|
|
197
|
+
for (let i = 0; i < lines.length; i++) {
|
|
198
|
+
const line = lines[i];
|
|
199
|
+
if (!line.startsWith("Binary files ") || !line.includes(" differ")) continue;
|
|
200
|
+
let filePath = "";
|
|
201
|
+
for (let j = i - 1; j >= 0; j--) {
|
|
202
|
+
const match = lines[j].match(/^diff --git a\/.+ b\/(.+)$/);
|
|
203
|
+
if (match) {
|
|
204
|
+
filePath = match[1];
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (!filePath) continue;
|
|
209
|
+
let changeType = "changed";
|
|
210
|
+
for (let j = i - 1; j >= 0; j--) {
|
|
211
|
+
if (lines[j].startsWith("diff --git")) break;
|
|
212
|
+
if (lines[j].startsWith("new file mode")) {
|
|
213
|
+
changeType = "added";
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
if (lines[j].startsWith("deleted file mode")) {
|
|
217
|
+
changeType = "deleted";
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
binaryFiles.push({
|
|
222
|
+
path: filePath,
|
|
223
|
+
type: changeType
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
return binaryFiles;
|
|
227
|
+
}
|
|
228
|
+
function createApp(clientDir, customDiffArgs, commentStore) {
|
|
229
|
+
const app = new Hono();
|
|
230
|
+
const isCustomMode = !!customDiffArgs;
|
|
231
|
+
const store = commentStore ?? new InMemoryCommentStore();
|
|
232
|
+
app.get("/api/diff", (c) => {
|
|
233
|
+
let patch;
|
|
234
|
+
if (isCustomMode) patch = getCustomGitDiff(customDiffArgs);
|
|
235
|
+
else patch = getGitDiff({
|
|
236
|
+
staged: c.req.query("staged") === "true",
|
|
237
|
+
untracked: c.req.query("untracked") === "true"
|
|
238
|
+
});
|
|
239
|
+
const repoName = getRepoName();
|
|
240
|
+
const branch = getBranchName();
|
|
241
|
+
const binaryFiles = parseBinaryFiles(patch);
|
|
242
|
+
return c.json({
|
|
243
|
+
patch,
|
|
244
|
+
repoName,
|
|
245
|
+
branch,
|
|
246
|
+
customMode: isCustomMode,
|
|
247
|
+
binaryFiles
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
app.get("/api/file-content", (c) => {
|
|
251
|
+
const path = c.req.query("path");
|
|
252
|
+
const version = c.req.query("version");
|
|
253
|
+
if (!path || !version) return c.json({ error: "Missing path or version" }, 400);
|
|
254
|
+
const content = getFileContent(path, version);
|
|
255
|
+
if (!content) return c.json({ error: "File not found" }, 404);
|
|
256
|
+
const contentType = MIME_TYPES[extname(path)] || "application/octet-stream";
|
|
257
|
+
return new Response(content, { headers: { "Content-Type": contentType } });
|
|
258
|
+
});
|
|
259
|
+
app.get("/api/settings", (c) => {
|
|
260
|
+
return c.json(loadSettings());
|
|
261
|
+
});
|
|
262
|
+
app.put("/api/settings", async (c) => {
|
|
263
|
+
const settings = saveSettings(await c.req.json());
|
|
264
|
+
return c.json(settings);
|
|
265
|
+
});
|
|
266
|
+
app.get("/api/comments", async (c) => {
|
|
267
|
+
const comments = await store.getAll();
|
|
268
|
+
return c.json(comments);
|
|
269
|
+
});
|
|
270
|
+
app.post("/api/comments", async (c) => {
|
|
271
|
+
const body = await c.req.json();
|
|
272
|
+
const comment = {
|
|
273
|
+
id: crypto.randomUUID(),
|
|
274
|
+
filePath: body.filePath,
|
|
275
|
+
side: body.side,
|
|
276
|
+
lineNumber: body.lineNumber,
|
|
277
|
+
lineContent: body.lineContent,
|
|
278
|
+
body: body.body,
|
|
279
|
+
status: "open",
|
|
280
|
+
createdAt: Date.now()
|
|
281
|
+
};
|
|
282
|
+
const created = await store.add(comment);
|
|
283
|
+
return c.json(created, 201);
|
|
284
|
+
});
|
|
285
|
+
app.put("/api/comments/:id", async (c) => {
|
|
286
|
+
const id = c.req.param("id");
|
|
287
|
+
const { body, status } = await c.req.json();
|
|
288
|
+
const updated = await store.update(id, {
|
|
289
|
+
body,
|
|
290
|
+
status
|
|
291
|
+
});
|
|
292
|
+
if (!updated) return c.json({ error: "Comment not found" }, 404);
|
|
293
|
+
return c.json(updated);
|
|
294
|
+
});
|
|
295
|
+
app.delete("/api/comments/:id", async (c) => {
|
|
296
|
+
const id = c.req.param("id");
|
|
297
|
+
if (!await store.remove(id)) return c.json({ error: "Comment not found" }, 404);
|
|
298
|
+
return c.json({ ok: true });
|
|
299
|
+
});
|
|
300
|
+
app.get("/*", async (c) => {
|
|
301
|
+
let filePath = c.req.path;
|
|
302
|
+
if (filePath === "/") filePath = "/index.html";
|
|
303
|
+
const fullPath = join(clientDir, filePath);
|
|
304
|
+
try {
|
|
305
|
+
const content = await readFile(fullPath);
|
|
306
|
+
const contentType = MIME_TYPES[extname(fullPath)] || "application/octet-stream";
|
|
307
|
+
return new Response(content, { headers: { "Content-Type": contentType } });
|
|
308
|
+
} catch {
|
|
309
|
+
const indexContent = await readFile(join(clientDir, "index.html"));
|
|
310
|
+
return new Response(indexContent, { headers: { "Content-Type": "text/html" } });
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
return app;
|
|
314
|
+
}
|
|
315
|
+
function startServer(options) {
|
|
316
|
+
const app = createApp(options.clientDir, options.customDiffArgs);
|
|
317
|
+
return new Promise((resolve) => {
|
|
318
|
+
serve({
|
|
319
|
+
fetch: app.fetch,
|
|
320
|
+
port: options.port
|
|
321
|
+
}, (info) => {
|
|
322
|
+
resolve({ port: info.port });
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/cli.ts
|
|
328
|
+
const { values, positionals } = parseArgs({
|
|
329
|
+
options: {
|
|
330
|
+
port: {
|
|
331
|
+
type: "string",
|
|
332
|
+
short: "p"
|
|
333
|
+
},
|
|
334
|
+
"no-open": {
|
|
335
|
+
type: "boolean",
|
|
336
|
+
default: false
|
|
337
|
+
},
|
|
338
|
+
help: { type: "boolean" },
|
|
339
|
+
version: {
|
|
340
|
+
type: "boolean",
|
|
341
|
+
short: "v"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
allowPositionals: true
|
|
345
|
+
});
|
|
346
|
+
if (values.help) {
|
|
347
|
+
console.log(`diffx - Local code review tool for git diffs
|
|
348
|
+
|
|
349
|
+
Usage: diffx [options] [-- <git diff args>]
|
|
350
|
+
|
|
351
|
+
Options:
|
|
352
|
+
-p, --port <port> Port to run the server on (default: 3433)
|
|
353
|
+
--no-open Don't open the browser automatically
|
|
354
|
+
-v, --version Show version number
|
|
355
|
+
-h, --help Show this help message
|
|
356
|
+
|
|
357
|
+
Examples:
|
|
358
|
+
diffx Review uncommitted changes
|
|
359
|
+
diffx -- --staged Review staged changes
|
|
360
|
+
diffx -- HEAD~3 Review last 3 commits
|
|
361
|
+
diffx -- main..feature Compare branches`);
|
|
362
|
+
process.exit(0);
|
|
363
|
+
}
|
|
364
|
+
if (values.version) {
|
|
365
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
366
|
+
const pkg = JSON.parse(readFileSync(resolve(__dirname, "..", "package.json"), "utf-8"));
|
|
367
|
+
console.log(pkg.version);
|
|
368
|
+
process.exit(0);
|
|
369
|
+
}
|
|
370
|
+
const customDiffArgs = positionals.length > 0 ? positionals : void 0;
|
|
371
|
+
if (!isGitRepo()) {
|
|
372
|
+
console.error("Error: not inside a git repository");
|
|
373
|
+
process.exit(1);
|
|
374
|
+
}
|
|
375
|
+
const port = await getPort({ port: values.port ? parseInt(values.port, 10) : 3433 });
|
|
376
|
+
const clientDir = resolve(dirname(fileURLToPath(import.meta.url)), "client");
|
|
377
|
+
const { existsSync } = await import("node:fs");
|
|
378
|
+
const { port: actualPort } = await startServer({
|
|
379
|
+
port,
|
|
380
|
+
clientDir: existsSync(clientDir) ? clientDir : resolve(process.cwd(), "dist/client"),
|
|
381
|
+
customDiffArgs
|
|
382
|
+
});
|
|
383
|
+
console.log(`diffx server running at http://localhost:${actualPort}`);
|
|
384
|
+
if (!values["no-open"]) {
|
|
385
|
+
const openModule = await import("open");
|
|
386
|
+
const url = `http://localhost:${actualPort}`;
|
|
387
|
+
openModule.default(url);
|
|
388
|
+
}
|
|
389
|
+
process.on("SIGINT", () => {
|
|
390
|
+
console.log("\nShutting down...");
|
|
391
|
+
process.exit(0);
|
|
392
|
+
});
|
|
393
|
+
//#endregion
|
|
394
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[Object.freeze(JSON.parse(`{"displayName":"ABAP","fileTypes":["abap","ABAP"],"foldingStartMarker":"/\\\\*\\\\*|\\\\{\\\\s*$","foldingStopMarker":"\\\\*\\\\*/|^\\\\s*}","name":"abap","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"^\\\\*.*\\\\n?","name":"comment.line.full.abap"},{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"\\".*\\\\n?","name":"comment.line.partial.abap"},{"match":"(?<!\\\\S)##.*?(?=([,.:\\\\s]))","name":"comment.line.pragma.abap"},{"match":"(?i)(?<=[-~\\\\s])(?<=[-=]>)([/_a-z][/-9_a-z]*)(?=\\\\s+(?:|[-*+/]|&&?)=\\\\s+)","name":"variable.other.abap"},{"match":"\\\\b[0-9]+(\\\\b|[,.])","name":"constant.numeric.abap"},{"match":"(?i)(^|\\\\s+)((P(?:UBLIC|RIVATE|ROTECTED))\\\\sSECTION)(?=\\\\s+|[.:])","name":"storage.modifier.class.abap"},{"begin":"(?<!\\\\\\\\)(\\\\|)(.*?)","beginCaptures":{"1":{"name":"constant.character.escape.abap"}},"end":"(?<!\\\\\\\\)(\\\\||(\\\\\\\\\\\\\\\\\\\\|))","endCaptures":{"1":{"name":"constant.character.escape.abap"}},"name":"string.interpolated.abap","patterns":[{"match":"(\\\\{ )|( })","name":"constant.character.escape"},{"match":"\\\\\\\\\\\\|","name":"constant.character.escape.abap"},{"match":"(?i)(?<=\\\\s)(align|alpha|case|country|currency|date|decimals|exponent|number|pad|sign|style|time|timestamp|timezone|width|xsd|zero)(?=\\\\s=)","name":"entity.name.property.stringtemplate.abap"},{"match":"(?i)(?<==\\\\s)(center|engineering|environment|in|iso|left|leftplus|leftspace|lower|no|out|raw|right|rightplus|rightspace|scale_preserving|scale_preserving_scientific|scientific|scientific_with_leading_zero|sign_as_postfix|simple|space|upper|user|yes)(?=\\\\s)","name":"entity.value.property.stringtemplate.abap"}]},{"begin":"'","end":"'","name":"string.quoted.single.abap","patterns":[{"match":"''","name":"constant.character.escape.abap"}]},{"begin":"\`","end":"\`","name":"string.quoted.single.abap","patterns":[{"match":"\`\`","name":"constant.character.escape.abap"}]},{"begin":"(?i)^\\\\s*(class)\\\\s([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.block.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","name":"meta.block.begin.implementation.abap","patterns":[{"match":"(?i)(^|\\\\s+)(definition|implementation|public|inheriting\\\\s+from|final|deferred|abstract|shared\\\\s+memory\\\\s+enabled|(global|local)*\\\\s*friends|(create\\\\s+(p(?:ublic|rotected|rivate)))|for\\\\s+behavior\\\\s+of|for\\\\s+testing|risk\\\\s+level\\\\s+(critical|dangerous|harmless))|duration\\\\s(short|medium|long)(?=\\\\s+|\\\\.)","name":"storage.modifier.class.abap"},{"begin":"(?=[A-Z_a-z][0-9A-Z_a-z]*)","contentName":"entity.name.type.block.abap","end":"(?![0-9A-Z_a-z])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(method)\\\\s(?:([/_a-z][/-9_a-z]*)~)?([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"},"3":{"name":"entity.name.function.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(BY(?:\\\\s+DATABASE(\\\\s+PROCEDURE|\\\\s+FUNCTION|\\\\s+GRAPH\\\\s+WORKSPACE)|\\\\s+KERNEL\\\\s+MODULE))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=^|\\\\s)(FOR\\\\s+(HDB|LLANG))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=\\\\s)(OPTIONS\\\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\\\s+SYNTAX\\\\s+ERRORS))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=^|\\\\s)(LANGUAGE\\\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"captures":{"1":{"name":"storage.modifier.method.abap"}},"match":"(?i)(?<=\\\\s)(USING)\\\\s+([/_a-z][/-9=>_a-z]*)+(?=\\\\s+|\\\\.)"},{"begin":"(?=[A-Z_a-z][0-9A-Z_a-z]*)","end":"(?![0-9A-Z_a-z])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(INTERFACE)\\\\s([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(DEFERRED|PUBLIC)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"}]},{"begin":"(?i)^\\\\s*(FORM)\\\\s([/_a-z][-/-9?_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\\\s+|\\\\.)","name":"storage.modifier.form.abap"},{"include":"#abaptypes"},{"include":"#keywords_followed_by_braces"}]},{"match":"(?i)(end(?:class|method|form|interface))","name":"storage.type.block.end.abap"},{"match":"(?i)(<[A-Z_a-z][0-9A-Z_a-z]*>)","name":"variable.other.field.symbol.abap"},{"include":"#keywords"},{"include":"#abap_constants"},{"include":"#reserved_names"},{"include":"#operators"},{"include":"#builtin_functions"},{"include":"#abaptypes"},{"include":"#system_fields"},{"include":"#sql_functions"},{"include":"#sql_types"}],"repository":{"abap_constants":{"match":"(?i)(?<=\\\\s)(initial|null|@?space|@?abap_true|@?abap_false|@?abap_undefined|table_line|%_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|adabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=[,.\\\\s])","name":"constant.language.abap"},"abaptypes":{"patterns":[{"match":"(?i)\\\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|[cdfinptx])(?=[,.\\\\s])","name":"support.type.abap"},{"match":"(?i)\\\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=[,.\\\\s])","name":"keyword.control.simple.abap"}]},"arithmetic_operator":{"match":"(?i)(?<=\\\\s)([-*+]|\\\\*\\\\*|[%/]|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\\\s)","name":"keyword.control.simple.abap"},"builtin_functions":{"match":"(?i)(?<=\\\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\\\()","name":"entity.name.function.builtin.abap"},"comparison_operator":{"match":"(?i)(?<=\\\\s)([<>]|<=|>=|=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|[moz])(?=\\\\s)","name":"keyword.control.simple.abap"},"control_keywords":{"match":"(?i)(^|\\\\s)(at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=[.:\\\\s])","name":"keyword.control.flow.abap"},"generic_names":{"match":"[A-Z_a-z][0-9A-Z_a-z]*"},"keywords":{"patterns":[{"include":"#main_keywords"},{"include":"#text_symbols"},{"include":"#control_keywords"},{"include":"#keywords_followed_by_braces"}]},"keywords_followed_by_braces":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"variable.other.abap"}},"match":"(?i)\\\\b(data|value|field-symbol|final|reference|resumable)\\\\((<?[/_a-z][/-9_a-z]*>?)\\\\)"},"logical_operator":{"match":"(?i)(?<=\\\\s)(not|or|and)(?=\\\\s)","name":"keyword.control.simple.abap"},"main_keywords":{"match":"(?i)(?<=^|\\\\s)(abap-source|abstract|accept|accepting|access|according|action|activation|actual|add|add-corresponding|adjacent|after|alias|aliases|all|allocate|amdp|analysis|analyzer|append|appending|application|archive|area|arithmetic|as|ascending|assert|assign|assigned|assigning|association|asynchronous|at|attributes|authority|authority-check|authorization|auto|back|background|backward|badi|base|before|begin|behavior|between|binary|bit|blanks??|blocks??|bound|boundaries|bounds|boxed|break|break-point|buffer|by|bypassing|byte|byte-order|call|calling|cast|casting|cds|centered|change|changing|channels|char-to-hex|character|check|checkbox|cid|circular|class|class-data|class-events|class-methods??|class-pool|cleanup|clear|clients??|clock|clone|close|cnt|code|collect|color|column|comments??|commit|common|communication|comparing|components??|compression|compute|concatenate|cond|condense|condition|connection|constants??|contexts??|controls??|conv|conversion|convert|copy|corresponding|count|country|cover|create|currency|current|cursor|customer-function|data|database|datainfo|dataset|date|daylight|ddl|deallocate|decimals|declarations|deep|default|deferred|define|delete|deleting|demand|descending|describe|destination|detail|determine|dialog|did|directory|discarding|display|display-mode|distance|distinct|divide|divide-corresponding|dummy|duplicates??|duration|during|dynpro|edit|editor-call|empty|enabled|enabling|encoding|end|end-enhancement-section|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|endenhancement|endexec|endfunction|endian|ending|endmodule|endprovide|endselect|endwith|enhancement|enhancement-point|enhancement-section|enhancements|entities|entity|entries|entry|enum|equiv|errors|escape|escaping|events??|exact|except|exception|exception-table|exceptions|excluding|exec|execute|exists|exit|exit-command|expanding|explicit|exponent|export|exporting|extended|extension|extract|fail|failed|features|fetch|field|field-groups|field-symbols|fields|file|fill|filters??|final|find|first|first-line|fixed-point|flush|following|for|format|forward|found|frames??|free|from|full|function|function-pool|generate|get|giving|graph|groups??|handler??|hashed|having|headers??|heading|help-id|help-request|hide|hint|hold|hotspot|icon|id|identification|identifier|ignore|ignoring|immediately|implemented|implicit|import|importing|in|inactive|incl|includes??|including|increment|index|index-line|indicators|infotypes|inheriting|init|initial|initialization|inner|input|insert|instances??|intensified|interface|interface-pool|interfaces|internal|intervals|into|inverse|inverted-date|is|job|join|keep|keeping|kernel|keys??|keywords|kind|language|last|late|layout|leading|leave|left|left-justified|legacy|length|let|levels??|like|line|line-count|line-selection|line-size|linefeed|lines|link|list|list-processing|listbox|load|load-of-program|locale??|locks??|log-point|logical|lower|mapped|mapping|margin|mark|mask|match|matchcode|maximum|members|memory|mesh|message|message-id|messages|messaging|methods??|mode|modif|modifier|modify|module|move|move-corresponding|multiply|multiply-corresponding|name|nametab|native|nested|nesting|new|new-line|new-page|new-section|next|no-display|no-extension|no-gaps??|no-grouping|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unicode|non-unique|number|objects??|objmgr|obligatory|occurences??|occurrences??|occurs|of|offset|on|only|open|optional|options??|order|others|out|outer|output|output-length|overflow|overlay|pack|package|padding|page|parameter|parameter-table|parameters|part|partially|pcre|perform|performing|permissions|pf-status|places|pool|position|pragmas|preceding|precompiled|preferred|preserving|primary|print|print-control|private|privileged|procedure|process|program|property|protected|provide|push|pushbutton|put|query|queue-only|queueonly|quickinfo|radiobutton|raising|ranges??|read|read-only|received??|receiving|redefinition|reduce|ref|reference|refresh|regex|reject|renaming|replace|replacement|replacing|report|reported|request|requested|required|reserve|reset|resolution|respecting|response|restore|results??|resumable|resume|retry|return|returning|right|right-justified|rollback|rows|rp-provide-from-last|run|sap|sap-spool|save|saving|scan|screen|scroll|scroll-boundary|scrolling|search|seconds|section|select|select-options|selection|selection-screen|selection-sets??|selection-table|selections|send|separated??|session|set|shared|shift|shortdump|shortdump-id|sign|simple|simulation|single|size|skip|skipping|smart|some|sort|sortable|sorted|source|specified|split|spool|spots|sql|stable|stamp|standard|start-of-selection|starting|state|statements??|statics??|statusinfo|step|step-loop|stop|structures??|style|subkey|submatches|submit|subroutine|subscreen|substring|subtract|subtract-corresponding|suffix|sum|summary|supplied|supply|suppress|switch|symbol|syntax-check|syntax-trace|system-call|system-exceptions|tab|tabbed|tables??|tableview|tabstrip|target|tasks??|test|test-injection|test-seam|testing|text|textpool|then|throw|times??|title|titlebar|to|tokens|top-lines|top-of-page|trace-file|trace-table|trailing|transaction|transfer|transformation|translate|transporting|trmac|truncate|truncation|type|type-pools??|types|uline|unassign|unbounded|under|unicode|union|unique|unit|unix|unpack|until|unwind|up|update|upper|user|user-command|using|utf-8|uuid|valid|validate|value|value-request|values|vary|varying|version|via|visible|wait|when|where|windows??|with|with-heading|with-title|without|word|work|workspace|write|xml|zone)(?=[,.:\\\\s])","name":"keyword.control.simple.abap"},"operators":{"patterns":[{"include":"#other_operator"},{"include":"#arithmetic_operator"},{"include":"#comparison_operator"},{"include":"#logical_operator"}]},"other_operator":{"match":"(?<=\\\\s)(&&?|\\\\?=|\\\\+=|-=|/=|\\\\*=|&&=|&=)(?=\\\\s)","name":"keyword.control.simple.abap"},"reserved_names":{"match":"(?i)(?<=\\\\s)(me|super)(?=[,.\\\\s]|->)","name":"constant.language.abap"},"sql_functions":{"match":"(?i)(?<=\\\\s)(abap_system_timezone|abap_user_timezone|abs|add_days|add_months|allow_precision_loss|as_geo_json|avg|bintohex|cast|ceil|coalesce|concat_with_space|concat|corr_spearman|corr|count|currency_conversion|datn_add_days|datn_add_months|datn_days_between|dats_add_days|dats_add_months|dats_days_between|dats_from_datn|dats_is_valid|dats_tims_to_tstmp|dats_to_datn|dayname|days_between|dense_rank|division|div|extract_day|extract_hour|extract_minute|extract_month|extract_second|extract_year|first_value|floor|grouping|hextobin|initcap|instr|is_valid|lag|last_value|lead|left|length|like_regexpr|locate_regexpr_after|locate_regexpr|locate|lower|lpad|ltrim|max|median|min|mod|monthname|ntile|occurrences_regexpr|over|product|rank|replace_regexpr|replace|rigth|round|row_number|rpad|rtrim|stddev|string_agg|substring_regexpr|substring|sum|tims_from_timn|tims_is_valid|tims_to_timn|to_blob|to_clob|tstmp_add_seconds|tstmp_current_utctimestamp|tstmp_is_valid|tstmp_seconds_between|tstmp_to_dats|tstmp_to_dst|tstmp_to_tims|tstmpl_from_utcl|tstmpl_to_utcl|unit_conversion|upper|utcl_add_seconds|utcl_current|utcl_seconds_between|uuid|var|weekday)(?=\\\\()","name":"entity.name.function.sql.abap"},"sql_types":{"match":"(?i)(?<=\\\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=[()\\\\s])","name":"entity.name.type.sql.abap"},"system_fields":{"captures":{"1":{"name":"variable.language.abap"},"2":{"name":"variable.language.abap"}},"match":"(?i)\\\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=[.\\\\s])"},"text_symbols":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"constant.numeric.abap"}},"match":"(?i)(?<=^|\\\\s)(text)-([0-9A-Z]{1,3})(?=[,.:\\\\s])"}},"scopeName":"source.abap"}`))];export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[Object.freeze(JSON.parse(`{"displayName":"ActionScript","fileTypes":["as"],"name":"actionscript-3","patterns":[{"include":"#comments"},{"include":"#package"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"},{"include":"#import"},{"include":"#mxml"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"}],"repository":{"arithmetic_operators":{"match":"([-%+/]|(?<!:)\\\\*)","name":"keyword.operator.actionscript.3"},"array_access_operators":{"match":"([]\\\\[])","name":"keyword.operator.actionscript.3"},"class":{"begin":"(^|\\\\s+|;)(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(\\\\b(internal|public)\\\\b\\\\s+)?(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(?=\\\\bclass\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"}},"end":"}","name":"meta.class.actionscript.3","patterns":[{"include":"#class_declaration"},{"include":"#declaration_code_block"},{"include":"#metadata"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_operators"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"},{"include":"#object_literal"},{"include":"#conditional_compilation"}]},"class_declaration":{"begin":"\\\\b(class)\\\\b\\\\s+([$.0-9A-Z_a-z]+|\\\\*)","beginCaptures":{"1":{"name":"storage.type.class.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#implements"},{"include":"#comments"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","end":"\\\\*/","name":"comment.block.documentation.actionscript.3","patterns":[{"match":"@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\\\b","name":"keyword.other.documentation.actionscript.3.asdoc"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.actionscript.3"},{"match":"//.*","name":"comment.line.actionscript.3"}]},"conditional_compilation":{"captures":{"2":{"name":"constant.other.actionscript.3"},"3":{"name":"constant.other.actionscript.3"}},"match":"(^|\\\\s+|;)\\\\b(\\\\w+)\\\\b::\\\\b(\\\\w+)\\\\b","name":"meta.conditional.actionscript.3"},"control_keywords":{"match":"\\\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\\\b","name":"keyword.control.actionscript.3"},"declaration_code_block":{"begin":"\\\\{","end":"}","name":"meta.code_block.actionscript.3","patterns":[{"include":"#method"},{"include":"#variable_declaration"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"},{"include":"#import"}]},"dynamic_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"match":"(?<=:)\\\\s*(\\\\*)"},"escapes":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.actionscript.3"},"extends":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(extends)\\\\b\\\\s+([$.0-9A-Z_a-z]+)\\\\s*(?:,\\\\s*([$.0-9A-Z_a-z]+))*\\\\s*","name":"meta.extends.actionscript.3"},"function_arguments":{"begin":"\\\\(","end":"\\\\)","name":"meta.function_arguments.actionscript.3","patterns":[{"include":"#parameters"},{"include":"#comments"}]},"functions":{"begin":"\\\\b(function)\\\\b(?:\\\\s+\\\\b([gs]et)\\\\b\\\\s+)?\\\\s*([$0-9A-Z_a-z]+\\\\b)?","beginCaptures":{"1":{"name":"storage.type.function.actionscript.3"},"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"entity.name.function.actionscript.3"}},"end":"($|;|(?=\\\\{))","name":"meta.function.actionscript.3","patterns":[{"include":"#function_arguments"},{"include":"#return_type"},{"include":"#comments"}]},"guess_constant":{"captures":{"1":{"name":"constant.other.actionscript.3"}},"match":"\\\\b([$A-Z][0-9A-Z_]+)\\\\b"},"guess_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"match":"\\\\b((?:[$0-9A-Z_a-z]+\\\\.)*[A-Z][0-9A-Z]*[a-z]+[$0-9A-Z_a-z]*)\\\\b"},"implements":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(implements)\\\\b\\\\s+([$.0-9A-Z_a-z]+)\\\\s*(?:,\\\\s*([$.0-9A-Z_a-z]+))*\\\\s*","name":"meta.implements.actionscript.3"},"import":{"captures":{"2":{"name":"keyword.control.import.actionscript.3"},"3":{"name":"support.type.actionscript.3"}},"match":"(^|\\\\s+|;)\\\\b(import)\\\\b\\\\s+([$.0-9A-Z_a-z]+(?:\\\\.\\\\*)?)\\\\s*(?=;|$)","name":"meta.import.actionscript.3"},"interface":{"begin":"(^|\\\\s+|;)(\\\\b(internal|public)\\\\b\\\\s+)?(?=\\\\binterface\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"}},"end":"}","name":"meta.interface.actionscript.3","patterns":[{"include":"#interface_declaration"},{"include":"#metadata"},{"include":"#functions"},{"include":"#comments"}]},"interface_declaration":{"begin":"\\\\b(interface)\\\\b\\\\s+([$.0-9A-Z_a-z]+)","beginCaptures":{"1":{"name":"storage.type.interface.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#comments"}]},"language_constants":{"match":"\\\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\\\b","name":"constant.language.actionscript.3"},"language_variables":{"match":"\\\\b(super|this|arguments)\\\\b","name":"variable.language.actionscript.3"},"local_code_block":{"begin":"\\\\{","end":"}","name":"meta.code_block.actionscript.3","patterns":[{"include":"#local_code_block"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"},{"include":"#import"}]},"logical_operators":{"match":"([!\\\\&<>?^|~])","name":"keyword.operator.actionscript.3"},"metadata":{"begin":"(?<=(?:^|[;{}]|\\\\*/)\\\\s*)\\\\[\\\\s*\\\\b([$A-Z_a-z][$0-9A-Z_a-z]+)\\\\b","beginCaptures":{"1":{"name":"keyword.other.actionscript.3"}},"end":"]","name":"meta.metadata_info.actionscript.3","patterns":[{"include":"#metadata_info"}]},"metadata_info":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"variable.parameter.actionscript.3"},"2":{"name":"keyword.operator.actionscript.3"}},"match":"(\\\\w+)\\\\s*(=)"}]},"method":{"begin":"(^|\\\\s+)((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?(?=\\\\bfunction\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"storage.modifier.actionscript.3"}},"end":"(?<=([;}]))","name":"meta.method.actionscript.3","patterns":[{"include":"#functions"},{"include":"#local_code_block"}]},"mxml":{"begin":"<!\\\\[CDATA\\\\[","end":"]]>","name":"meta.cdata.actionscript.3","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#metadata"},{"include":"#class"},{"include":"#namespace_declaration"},{"include":"#use_namespace"},{"include":"#class_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_keywords"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"}]},"namespace_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"storage.modifier.actionscript.3"}},"match":"((\\\\w+)\\\\s+)?(namespace)\\\\s+[$0-9A-Z_a-z]+","name":"meta.namespace_declaration.actionscript.3"},"numbers":{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([Ll]|UL|ul|[FUfu])?\\\\b","name":"constant.numeric.actionscript.3"},"object_literal":{"begin":"\\\\{","end":"}","name":"meta.object_literal.actionscript.3","patterns":[{"include":"#object_literal"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#functions"}]},"other_keywords":{"match":"\\\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\\\b","name":"keyword.other.actionscript.3"},"other_operators":{"match":"([.=])","name":"keyword.operator.actionscript.3"},"package":{"begin":"(^|\\\\s+)(package)\\\\b","beginCaptures":{"2":{"name":"keyword.other.actionscript.3"}},"end":"}","name":"meta.package.actionscript.3","patterns":[{"include":"#package_name"},{"include":"#variable_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#return_type"},{"include":"#import"},{"include":"#use_namespace"},{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#metadata"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"}]},"package_name":{"begin":"(?<=package)\\\\s+([._\\\\w]*)\\\\b","end":"\\\\{","name":"meta.package_name.actionscript.3"},"parameters":{"begin":"(\\\\.\\\\.\\\\.)?\\\\s*([$A-Z_a-z][$0-9A-Z_a-z]*)(?:\\\\s*(:)\\\\s*(?:([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)(?:\\\\.<([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)>)?|(\\\\*)))?(?:\\\\s*(=))?","beginCaptures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"variable.parameter.actionscript.3"},"3":{"name":"keyword.operator.actionscript.3"},"4":{"name":"support.type.actionscript.3"},"5":{"name":"support.type.actionscript.3"},"6":{"name":"support.type.actionscript.3"},"7":{"name":"keyword.operator.actionscript.3"}},"end":",|(?=\\\\))","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#comments"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#guess_type"},{"include":"#guess_constant"}]},"primitive_error_types":{"captures":{"1":{"name":"support.class.error.actionscript.3"}},"match":"\\\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\\\b"},"primitive_functions":{"captures":{"1":{"name":"support.function.actionscript.3"}},"match":"\\\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\\\s*\\\\()"},"primitive_types":{"captures":{"1":{"name":"support.class.builtin.actionscript.3"}},"match":"\\\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\\\*(?<=a))\\\\b"},"regexp":{"begin":"(?<=[(,:=\\\\[]|^|return|&&|\\\\|\\\\||!)\\\\s*(/)(?![*+/?{}])","end":"$|(/)[gim]*","name":"string.regex.actionscript.3","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.actionscript.3"},{"match":"\\\\[(\\\\\\\\]|[^]])*]","name":"constant.character.class.actionscript.3"}]},"return_type":{"captures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"support.type.actionscript.3"},"3":{"name":"support.type.actionscript.3"},"4":{"name":"support.type.actionscript.3"}},"match":"(:)\\\\s*([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)(?:\\\\.<([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)>)?|(\\\\*)"},"strings":{"patterns":[{"begin":"@\\"","end":"\\"","name":"string.quoted.verbatim.actionscript.3"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.actionscript.3","patterns":[{"include":"#escapes"}]},{"begin":"'","end":"'","name":"string.quoted.single.actionscript.3","patterns":[{"include":"#escapes"}]}]},"use_namespace":{"captures":{"2":{"name":"keyword.other.actionscript.3"},"3":{"name":"keyword.other.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"}},"match":"(^|\\\\s+|;)(use\\\\s+)?(namespace)\\\\s+(\\\\w+)\\\\s*(;|$)"},"variable_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"},"6":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"keyword.operator.actionscript.3"}},"match":"((static)\\\\s+)?((\\\\w+)\\\\s+)?((static)\\\\s+)?(const|var)\\\\s+[$0-9A-Z_a-z]+(?:\\\\s*(:))?","name":"meta.variable_declaration.actionscript.3"},"vector_creation_operators":{"match":"([<>])","name":"keyword.operator.actionscript.3"}},"scopeName":"source.actionscript.3"}`))];export{e as default};
|