├── .envrc ├── .github └── workflows │ ├── ci.yml │ └── master.yml ├── .gitignore ├── ChangeLog.md ├── LICENSE ├── PyF.cabal ├── Readme.md ├── Setup.hs ├── error_example.png ├── flake.lock ├── flake.nix ├── hie.yaml ├── nixpkgs.nix ├── src ├── PyF.hs └── PyF │ ├── Class.hs │ ├── Formatters.hs │ └── Internal │ ├── Meta.hs │ ├── Parser.hs │ ├── ParserEx.hs │ ├── PythonSyntax.hs │ └── QQ.hs ├── stack.yaml ├── test ├── Spec.hs ├── SpecCustomDelimiters.hs ├── SpecFail.hs ├── SpecOverloaded.hs ├── golden │ ├── Hello {length name}.16675806454852491955.golden │ ├── Hello {name}.16618004304593959603.golden │ ├── Hello {piCL.{precision}}.9628757040831863475.golden │ ├── Hello {piCL.{truncate number + precision}}.18094049741103110835.golden │ ├── Hello {piCL{width}}.15463239215289408179.golden │ ├── fooBSPbar.17645057532673886893.golden │ ├── fooNLbliBSPbar.16759496276764189145.golden │ ├── hello { world.10778336899993839283.golden │ ├── hello } world.5295037443422799539.golden │ ├── helloNL {NLlet a = 5NL b = 10NLin 1 + - SL lalalal}.3018767237106994099.golden │ ├── helloNLNLNL{piCLl}.13123157148160021427.golden │ ├── {1 + - SL lalalal}.14923086665437293731.golden │ ├── {TrueCLd}.12627313193367841398.golden │ ├── {TrueCLf}.18281408089045870326.golden │ ├── {True}.16254223077612353942.golden │ ├── {helloCL s}.13047921915648718386.golden │ ├── {helloCL%}.1257653362598537778.golden │ ├── {helloCL+s}.1657517030647448626.golden │ ├── {helloCL,s}.14139635988852178482.golden │ ├── {helloCL-s}.12627805606214404146.golden │ ├── {helloCL=100s}.14374776122070431282.golden │ ├── {helloCL=100}.9444838110946424370.golden │ ├── {helloCLE}.15676531368138664498.golden │ ├── {helloCLG}.17442699390234010162.golden │ ├── {helloCLX}.8447528333473699378.golden │ ├── {helloCL_s}.1094067961907256370.golden │ ├── {helloCLb}.14869862508711808562.golden │ ├── {helloCLd}.1892681375540151858.golden │ ├── {helloCLe}.13933826712837941810.golden │ ├── {helloCLf}.14332487603622862386.golden │ ├── {helloCLg}.9607247906229690930.golden │ ├── {helloCLo}.9389880575827657266.golden │ ├── {helloCLx}.14710080644372944434.golden │ ├── {numberCLX}.4609648040604121432.golden │ ├── {numberCLb}.8801685868342243288.golden │ ├── {numberCLd}.13336740346716692056.golden │ ├── {numberCLo}.12467189151987896600.golden │ ├── {numberCLx}.14457861675063419224.golden │ ├── {piCL.{SL}}.6840925804160914882.golden │ ├── {piCL.{}}.9894464503607709506.golden │ ├── {truncate numberCL.3b}.11608798523190422838.golden │ ├── {truncate numberCL.3d}.9142976352287206710.golden │ ├── {truncate numberCL.3o}.1443712191031422262.golden │ ├── {truncate numberCL.3x}.12613302271643495734.golden │ └── {}.14986928820806517861.golden └── golden96 │ ├── Hello {length name}.16675806454852491955.golden │ ├── Hello {name}.16618004304593959603.golden │ ├── Hello {piCL.{precision}}.9628757040831863475.golden │ ├── Hello {piCL.{truncate number + precision}}.18094049741103110835.golden │ ├── Hello {piCL{width}}.15463239215289408179.golden │ ├── fooBSPbar.17645057532673886893.golden │ ├── fooNLbliBSPbar.16759496276764189145.golden │ ├── hello { world.10778336899993839283.golden │ ├── hello } world.5295037443422799539.golden │ ├── helloNL {NLlet a = 5NL b = 10NLin 1 + - SL lalalal}.3018767237106994099.golden │ ├── helloNLNLNL{piCLl}.13123157148160021427.golden │ ├── {1 + - SL lalalal}.14923086665437293731.golden │ ├── {TrueCLd}.12627313193367841398.golden │ ├── {TrueCLf}.18281408089045870326.golden │ ├── {True}.16254223077612353942.golden │ ├── {helloCL s}.13047921915648718386.golden │ ├── {helloCL%}.1257653362598537778.golden │ ├── {helloCL+s}.1657517030647448626.golden │ ├── {helloCL,s}.14139635988852178482.golden │ ├── {helloCL-s}.12627805606214404146.golden │ ├── {helloCL=100s}.14374776122070431282.golden │ ├── {helloCL=100}.9444838110946424370.golden │ ├── {helloCLE}.15676531368138664498.golden │ ├── {helloCLG}.17442699390234010162.golden │ ├── {helloCLX}.8447528333473699378.golden │ ├── {helloCL_s}.1094067961907256370.golden │ ├── {helloCLb}.14869862508711808562.golden │ ├── {helloCLd}.1892681375540151858.golden │ ├── {helloCLe}.13933826712837941810.golden │ ├── {helloCLf}.14332487603622862386.golden │ ├── {helloCLg}.9607247906229690930.golden │ ├── {helloCLo}.9389880575827657266.golden │ ├── {helloCLx}.14710080644372944434.golden │ ├── {numberCLX}.4609648040604121432.golden │ ├── {numberCLb}.8801685868342243288.golden │ ├── {numberCLd}.13336740346716692056.golden │ ├── {numberCLo}.12467189151987896600.golden │ ├── {numberCLx}.14457861675063419224.golden │ ├── {piCL.{SL}}.6840925804160914882.golden │ ├── {piCL.{}}.9894464503607709506.golden │ ├── {truncate numberCL.3b}.11608798523190422838.golden │ ├── {truncate numberCL.3d}.9142976352287206710.golden │ ├── {truncate numberCL.3o}.1443712191031422262.golden │ ├── {truncate numberCL.3x}.12613302271643495734.golden │ └── {}.14986928820806517861.golden ├── tree-sitter-pyf ├── .envrc ├── Readme.md ├── example-file ├── grammar.js ├── nvim_ts_highlight.png ├── package.json ├── tree-sitter.json └── vim-plugin │ └── after │ └── queries │ ├── haskell │ ├── highlights.scm │ └── injections.scm │ └── pyf │ ├── highlights.scm │ └── injections.scm └── treefmt.nix /.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/master.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/.github/workflows/master.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/.gitignore -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/ChangeLog.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/LICENSE -------------------------------------------------------------------------------- /PyF.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/PyF.cabal -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/Readme.md -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | 3 | main = defaultMain 4 | -------------------------------------------------------------------------------- /error_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/error_example.png -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/flake.nix -------------------------------------------------------------------------------- /hie.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/hie.yaml -------------------------------------------------------------------------------- /nixpkgs.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/nixpkgs.nix -------------------------------------------------------------------------------- /src/PyF.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF.hs -------------------------------------------------------------------------------- /src/PyF/Class.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Class.hs -------------------------------------------------------------------------------- /src/PyF/Formatters.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Formatters.hs -------------------------------------------------------------------------------- /src/PyF/Internal/Meta.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Internal/Meta.hs -------------------------------------------------------------------------------- /src/PyF/Internal/Parser.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Internal/Parser.hs -------------------------------------------------------------------------------- /src/PyF/Internal/ParserEx.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Internal/ParserEx.hs -------------------------------------------------------------------------------- /src/PyF/Internal/PythonSyntax.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Internal/PythonSyntax.hs -------------------------------------------------------------------------------- /src/PyF/Internal/QQ.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/src/PyF/Internal/QQ.hs -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/stack.yaml -------------------------------------------------------------------------------- /test/Spec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/Spec.hs -------------------------------------------------------------------------------- /test/SpecCustomDelimiters.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/SpecCustomDelimiters.hs -------------------------------------------------------------------------------- /test/SpecFail.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/SpecFail.hs -------------------------------------------------------------------------------- /test/SpecOverloaded.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/SpecOverloaded.hs -------------------------------------------------------------------------------- /test/golden/Hello {length name}.16675806454852491955.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/Hello {length name}.16675806454852491955.golden -------------------------------------------------------------------------------- /test/golden/Hello {name}.16618004304593959603.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/Hello {name}.16618004304593959603.golden -------------------------------------------------------------------------------- /test/golden/Hello {piCL.{precision}}.9628757040831863475.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/Hello {piCL.{precision}}.9628757040831863475.golden -------------------------------------------------------------------------------- /test/golden/Hello {piCL.{truncate number + precision}}.18094049741103110835.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/Hello {piCL.{truncate number + precision}}.18094049741103110835.golden -------------------------------------------------------------------------------- /test/golden/Hello {piCL{width}}.15463239215289408179.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/Hello {piCL{width}}.15463239215289408179.golden -------------------------------------------------------------------------------- /test/golden/fooBSPbar.17645057532673886893.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/fooBSPbar.17645057532673886893.golden -------------------------------------------------------------------------------- /test/golden/fooNLbliBSPbar.16759496276764189145.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/fooNLbliBSPbar.16759496276764189145.golden -------------------------------------------------------------------------------- /test/golden/hello { world.10778336899993839283.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/hello { world.10778336899993839283.golden -------------------------------------------------------------------------------- /test/golden/hello } world.5295037443422799539.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/hello } world.5295037443422799539.golden -------------------------------------------------------------------------------- /test/golden/helloNL {NLlet a = 5NL b = 10NLin 1 + - SL lalalal}.3018767237106994099.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/helloNL {NLlet a = 5NL b = 10NLin 1 + - SL lalalal}.3018767237106994099.golden -------------------------------------------------------------------------------- /test/golden/helloNLNLNL{piCLl}.13123157148160021427.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/helloNLNLNL{piCLl}.13123157148160021427.golden -------------------------------------------------------------------------------- /test/golden/{1 + - SL lalalal}.14923086665437293731.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{1 + - SL lalalal}.14923086665437293731.golden -------------------------------------------------------------------------------- /test/golden/{TrueCLd}.12627313193367841398.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{TrueCLd}.12627313193367841398.golden -------------------------------------------------------------------------------- /test/golden/{TrueCLf}.18281408089045870326.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{TrueCLf}.18281408089045870326.golden -------------------------------------------------------------------------------- /test/golden/{True}.16254223077612353942.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{True}.16254223077612353942.golden -------------------------------------------------------------------------------- /test/golden/{helloCL s}.13047921915648718386.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL s}.13047921915648718386.golden -------------------------------------------------------------------------------- /test/golden/{helloCL%}.1257653362598537778.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL%}.1257653362598537778.golden -------------------------------------------------------------------------------- /test/golden/{helloCL+s}.1657517030647448626.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL+s}.1657517030647448626.golden -------------------------------------------------------------------------------- /test/golden/{helloCL,s}.14139635988852178482.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL,s}.14139635988852178482.golden -------------------------------------------------------------------------------- /test/golden/{helloCL-s}.12627805606214404146.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL-s}.12627805606214404146.golden -------------------------------------------------------------------------------- /test/golden/{helloCL=100s}.14374776122070431282.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL=100s}.14374776122070431282.golden -------------------------------------------------------------------------------- /test/golden/{helloCL=100}.9444838110946424370.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL=100}.9444838110946424370.golden -------------------------------------------------------------------------------- /test/golden/{helloCLE}.15676531368138664498.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLE}.15676531368138664498.golden -------------------------------------------------------------------------------- /test/golden/{helloCLG}.17442699390234010162.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLG}.17442699390234010162.golden -------------------------------------------------------------------------------- /test/golden/{helloCLX}.8447528333473699378.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLX}.8447528333473699378.golden -------------------------------------------------------------------------------- /test/golden/{helloCL_s}.1094067961907256370.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCL_s}.1094067961907256370.golden -------------------------------------------------------------------------------- /test/golden/{helloCLb}.14869862508711808562.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLb}.14869862508711808562.golden -------------------------------------------------------------------------------- /test/golden/{helloCLd}.1892681375540151858.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLd}.1892681375540151858.golden -------------------------------------------------------------------------------- /test/golden/{helloCLe}.13933826712837941810.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLe}.13933826712837941810.golden -------------------------------------------------------------------------------- /test/golden/{helloCLf}.14332487603622862386.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLf}.14332487603622862386.golden -------------------------------------------------------------------------------- /test/golden/{helloCLg}.9607247906229690930.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLg}.9607247906229690930.golden -------------------------------------------------------------------------------- /test/golden/{helloCLo}.9389880575827657266.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLo}.9389880575827657266.golden -------------------------------------------------------------------------------- /test/golden/{helloCLx}.14710080644372944434.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{helloCLx}.14710080644372944434.golden -------------------------------------------------------------------------------- /test/golden/{numberCLX}.4609648040604121432.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{numberCLX}.4609648040604121432.golden -------------------------------------------------------------------------------- /test/golden/{numberCLb}.8801685868342243288.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{numberCLb}.8801685868342243288.golden -------------------------------------------------------------------------------- /test/golden/{numberCLd}.13336740346716692056.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{numberCLd}.13336740346716692056.golden -------------------------------------------------------------------------------- /test/golden/{numberCLo}.12467189151987896600.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{numberCLo}.12467189151987896600.golden -------------------------------------------------------------------------------- /test/golden/{numberCLx}.14457861675063419224.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{numberCLx}.14457861675063419224.golden -------------------------------------------------------------------------------- /test/golden/{piCL.{SL}}.6840925804160914882.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{piCL.{SL}}.6840925804160914882.golden -------------------------------------------------------------------------------- /test/golden/{piCL.{}}.9894464503607709506.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{piCL.{}}.9894464503607709506.golden -------------------------------------------------------------------------------- /test/golden/{truncate numberCL.3b}.11608798523190422838.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{truncate numberCL.3b}.11608798523190422838.golden -------------------------------------------------------------------------------- /test/golden/{truncate numberCL.3d}.9142976352287206710.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{truncate numberCL.3d}.9142976352287206710.golden -------------------------------------------------------------------------------- /test/golden/{truncate numberCL.3o}.1443712191031422262.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{truncate numberCL.3o}.1443712191031422262.golden -------------------------------------------------------------------------------- /test/golden/{truncate numberCL.3x}.12613302271643495734.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{truncate numberCL.3x}.12613302271643495734.golden -------------------------------------------------------------------------------- /test/golden/{}.14986928820806517861.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden/{}.14986928820806517861.golden -------------------------------------------------------------------------------- /test/golden96/Hello {length name}.16675806454852491955.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/Hello {length name}.16675806454852491955.golden -------------------------------------------------------------------------------- /test/golden96/Hello {name}.16618004304593959603.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/Hello {name}.16618004304593959603.golden -------------------------------------------------------------------------------- /test/golden96/Hello {piCL.{precision}}.9628757040831863475.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/Hello {piCL.{precision}}.9628757040831863475.golden -------------------------------------------------------------------------------- /test/golden96/Hello {piCL.{truncate number + precision}}.18094049741103110835.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/Hello {piCL.{truncate number + precision}}.18094049741103110835.golden -------------------------------------------------------------------------------- /test/golden96/Hello {piCL{width}}.15463239215289408179.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/Hello {piCL{width}}.15463239215289408179.golden -------------------------------------------------------------------------------- /test/golden96/fooBSPbar.17645057532673886893.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/fooBSPbar.17645057532673886893.golden -------------------------------------------------------------------------------- /test/golden96/fooNLbliBSPbar.16759496276764189145.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/fooNLbliBSPbar.16759496276764189145.golden -------------------------------------------------------------------------------- /test/golden96/hello { world.10778336899993839283.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/hello { world.10778336899993839283.golden -------------------------------------------------------------------------------- /test/golden96/hello } world.5295037443422799539.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/hello } world.5295037443422799539.golden -------------------------------------------------------------------------------- /test/golden96/helloNL {NLlet a = 5NL b = 10NLin 1 + - SL lalalal}.3018767237106994099.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/helloNL {NLlet a = 5NL b = 10NLin 1 + - SL lalalal}.3018767237106994099.golden -------------------------------------------------------------------------------- /test/golden96/helloNLNLNL{piCLl}.13123157148160021427.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/helloNLNLNL{piCLl}.13123157148160021427.golden -------------------------------------------------------------------------------- /test/golden96/{1 + - SL lalalal}.14923086665437293731.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{1 + - SL lalalal}.14923086665437293731.golden -------------------------------------------------------------------------------- /test/golden96/{TrueCLd}.12627313193367841398.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{TrueCLd}.12627313193367841398.golden -------------------------------------------------------------------------------- /test/golden96/{TrueCLf}.18281408089045870326.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{TrueCLf}.18281408089045870326.golden -------------------------------------------------------------------------------- /test/golden96/{True}.16254223077612353942.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{True}.16254223077612353942.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL s}.13047921915648718386.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL s}.13047921915648718386.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL%}.1257653362598537778.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL%}.1257653362598537778.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL+s}.1657517030647448626.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL+s}.1657517030647448626.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL,s}.14139635988852178482.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL,s}.14139635988852178482.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL-s}.12627805606214404146.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL-s}.12627805606214404146.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL=100s}.14374776122070431282.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL=100s}.14374776122070431282.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL=100}.9444838110946424370.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL=100}.9444838110946424370.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLE}.15676531368138664498.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLE}.15676531368138664498.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLG}.17442699390234010162.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLG}.17442699390234010162.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLX}.8447528333473699378.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLX}.8447528333473699378.golden -------------------------------------------------------------------------------- /test/golden96/{helloCL_s}.1094067961907256370.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCL_s}.1094067961907256370.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLb}.14869862508711808562.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLb}.14869862508711808562.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLd}.1892681375540151858.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLd}.1892681375540151858.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLe}.13933826712837941810.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLe}.13933826712837941810.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLf}.14332487603622862386.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLf}.14332487603622862386.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLg}.9607247906229690930.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLg}.9607247906229690930.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLo}.9389880575827657266.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLo}.9389880575827657266.golden -------------------------------------------------------------------------------- /test/golden96/{helloCLx}.14710080644372944434.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{helloCLx}.14710080644372944434.golden -------------------------------------------------------------------------------- /test/golden96/{numberCLX}.4609648040604121432.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{numberCLX}.4609648040604121432.golden -------------------------------------------------------------------------------- /test/golden96/{numberCLb}.8801685868342243288.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{numberCLb}.8801685868342243288.golden -------------------------------------------------------------------------------- /test/golden96/{numberCLd}.13336740346716692056.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{numberCLd}.13336740346716692056.golden -------------------------------------------------------------------------------- /test/golden96/{numberCLo}.12467189151987896600.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{numberCLo}.12467189151987896600.golden -------------------------------------------------------------------------------- /test/golden96/{numberCLx}.14457861675063419224.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{numberCLx}.14457861675063419224.golden -------------------------------------------------------------------------------- /test/golden96/{piCL.{SL}}.6840925804160914882.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{piCL.{SL}}.6840925804160914882.golden -------------------------------------------------------------------------------- /test/golden96/{piCL.{}}.9894464503607709506.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{piCL.{}}.9894464503607709506.golden -------------------------------------------------------------------------------- /test/golden96/{truncate numberCL.3b}.11608798523190422838.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{truncate numberCL.3b}.11608798523190422838.golden -------------------------------------------------------------------------------- /test/golden96/{truncate numberCL.3d}.9142976352287206710.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{truncate numberCL.3d}.9142976352287206710.golden -------------------------------------------------------------------------------- /test/golden96/{truncate numberCL.3o}.1443712191031422262.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{truncate numberCL.3o}.1443712191031422262.golden -------------------------------------------------------------------------------- /test/golden96/{truncate numberCL.3x}.12613302271643495734.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{truncate numberCL.3x}.12613302271643495734.golden -------------------------------------------------------------------------------- /test/golden96/{}.14986928820806517861.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/test/golden96/{}.14986928820806517861.golden -------------------------------------------------------------------------------- /tree-sitter-pyf/.envrc: -------------------------------------------------------------------------------- 1 | use flake .#treesitter 2 | -------------------------------------------------------------------------------- /tree-sitter-pyf/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/Readme.md -------------------------------------------------------------------------------- /tree-sitter-pyf/example-file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/example-file -------------------------------------------------------------------------------- /tree-sitter-pyf/grammar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/grammar.js -------------------------------------------------------------------------------- /tree-sitter-pyf/nvim_ts_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/nvim_ts_highlight.png -------------------------------------------------------------------------------- /tree-sitter-pyf/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/package.json -------------------------------------------------------------------------------- /tree-sitter-pyf/tree-sitter.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/tree-sitter.json -------------------------------------------------------------------------------- /tree-sitter-pyf/vim-plugin/after/queries/haskell/highlights.scm: -------------------------------------------------------------------------------- 1 | (quasiquote_body) @string 2 | -------------------------------------------------------------------------------- /tree-sitter-pyf/vim-plugin/after/queries/haskell/injections.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/vim-plugin/after/queries/haskell/injections.scm -------------------------------------------------------------------------------- /tree-sitter-pyf/vim-plugin/after/queries/pyf/highlights.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/vim-plugin/after/queries/pyf/highlights.scm -------------------------------------------------------------------------------- /tree-sitter-pyf/vim-plugin/after/queries/pyf/injections.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/tree-sitter-pyf/vim-plugin/after/queries/pyf/injections.scm -------------------------------------------------------------------------------- /treefmt.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guibou/PyF/HEAD/treefmt.nix --------------------------------------------------------------------------------