chore(build): repair vendored baseline
- commit
- d4952b41d17da47c4f9870c27e97820adf5202e5
- author
- brice · · 2026-07-14 05:44 UTC
- parent
- ae333bf
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3316 files · +1391338 -4
M Makefile +2 -2
| @@ -239,13 +239,13 @@ flatpak-deps: ## Install Flatpak build dependencies (Arch) | |||
| 239 | 239 | ||
| 240 | 240 | flatpak-build: ## Build Flatpak bundle locally | |
| 241 | 241 | @echo "Building Flatpak bundle..." | |
| 242 | - | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build dev.bnema.Dumber.yml | |
| 242 | + | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build flatpak/dev.bnema.Dumber.yml | |
| 243 | 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | |
| 244 | 244 | @echo "Flatpak bundle created: dumber.flatpak" | |
| 245 | 245 | ||
| 246 | 246 | flatpak-install: ## Install Flatpak locally for testing | |
| 247 | 247 | @echo "Installing Flatpak locally..." | |
| 248 | - | flatpak-builder --force-clean --user --install flatpak-build dev.bnema.Dumber.yml | |
| 248 | + | flatpak-builder --force-clean --user --install flatpak-build flatpak/dev.bnema.Dumber.yml | |
| 249 | 249 | @echo "Flatpak installed! Run with: make flatpak-run" | |
| 250 | 250 | ||
| 251 | 251 | flatpak-run: ## Run the installed Flatpak | |
| @@ -239,13 +239,13 @@ flatpak-deps: ## Install Flatpak build dependencies (Arch) | |||||
| 239 | 239 | ||||
| 240 | flatpak-build: ## Build Flatpak bundle locally | 240 | flatpak-build: ## Build Flatpak bundle locally | ||
| 241 | @echo "Building Flatpak bundle..." | 241 | @echo "Building Flatpak bundle..." | ||
| 242 | - | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build dev.bnema.Dumber.yml | 242 | + | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build flatpak/dev.bnema.Dumber.yml |
| 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | ||
| 244 | @echo "Flatpak bundle created: dumber.flatpak" | 244 | @echo "Flatpak bundle created: dumber.flatpak" | ||
| 245 | 245 | ||||
| 246 | flatpak-install: ## Install Flatpak locally for testing | 246 | flatpak-install: ## Install Flatpak locally for testing | ||
| 247 | @echo "Installing Flatpak locally..." | 247 | @echo "Installing Flatpak locally..." | ||
| 248 | - | flatpak-builder --force-clean --user --install flatpak-build dev.bnema.Dumber.yml | 248 | + | flatpak-builder --force-clean --user --install flatpak-build flatpak/dev.bnema.Dumber.yml |
| 249 | @echo "Flatpak installed! Run with: make flatpak-run" | 249 | @echo "Flatpak installed! Run with: make flatpak-run" | ||
| 250 | 250 | ||||
| 251 | flatpak-run: ## Run the installed Flatpak | 251 | flatpak-run: ## Run the installed Flatpak | ||
M flatpak/dev.bnema.Dumber.yml +2 -2
| @@ -53,10 +53,10 @@ modules: | |||
| 53 | 53 | path: dev.bnema.Dumber.desktop | |
| 54 | 54 | # Icons | |
| 55 | 55 | - type: file | |
| 56 | - | path: assets/logo.svg | |
| 56 | + | path: ../assets/logo.svg | |
| 57 | 57 | dest-filename: logo.svg | |
| 58 | 58 | - type: file | |
| 59 | - | path: assets/logo-512.png | |
| 59 | + | path: ../assets/logo-512.png | |
| 60 | 60 | dest-filename: logo-512.png | |
| 61 | 61 | # Metainfo | |
| 62 | 62 | - type: file | |
| @@ -53,10 +53,10 @@ modules: | |||||
| 53 | path: dev.bnema.Dumber.desktop | 53 | path: dev.bnema.Dumber.desktop | ||
| 54 | # Icons | 54 | # Icons | ||
| 55 | - type: file | 55 | - type: file | ||
| 56 | - | path: assets/logo.svg | 56 | + | path: ../assets/logo.svg |
| 57 | dest-filename: logo.svg | 57 | dest-filename: logo.svg | ||
| 58 | - type: file | 58 | - type: file | ||
| 59 | - | path: assets/logo-512.png | 59 | + | path: ../assets/logo-512.png |
| 60 | dest-filename: logo-512.png | 60 | dest-filename: logo-512.png | ||
| 61 | # Metainfo | 61 | # Metainfo | ||
| 62 | - type: file | 62 | - type: file | ||
A vendor/github.com/a-h/parse/.gitignore +1 -0 generated file: collapsed
A vendor/github.com/a-h/parse/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/a-h/parse/README.md +145 -0 generated file: collapsed
A vendor/github.com/a-h/parse/all.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/parse/any.go +22 -0 generated file: collapsed
A vendor/github.com/a-h/parse/convert.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/parse/digits.go +4 -0 generated file: collapsed
A vendor/github.com/a-h/parse/eof.go +15 -0 generated file: collapsed
A vendor/github.com/a-h/parse/error.go +21 -0 generated file: collapsed
A vendor/github.com/a-h/parse/input.go +79 -0 generated file: collapsed
A vendor/github.com/a-h/parse/optional.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/parse/or.go +37 -0 generated file: collapsed
A vendor/github.com/a-h/parse/regexp.go +46 -0 generated file: collapsed
A vendor/github.com/a-h/parse/rune.go +58 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof2.go +27 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof3.go +35 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof4.go +41 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof5.go +48 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof6.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof7.go +62 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof8.go +69 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof9.go +76 -0 generated file: collapsed
A vendor/github.com/a-h/parse/string.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/parse/stringfrom.go +30 -0 generated file: collapsed
A vendor/github.com/a-h/parse/stringuntil.go +49 -0 generated file: collapsed
A vendor/github.com/a-h/parse/then.go +9 -0 generated file: collapsed
A vendor/github.com/a-h/parse/times.go +83 -0 generated file: collapsed
A vendor/github.com/a-h/parse/tuples.go +69 -0 generated file: collapsed
A vendor/github.com/a-h/parse/types.go +33 -0 generated file: collapsed
A vendor/github.com/a-h/parse/until.go +68 -0 generated file: collapsed
A vendor/github.com/a-h/parse/whitespace.go +29 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.dockerignore +3 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.envrc +1 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.gitignore +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.goreleaser.yaml +72 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.ignore +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.version +1 -0 generated file: collapsed
A vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +128 -0 generated file: collapsed
A vendor/github.com/a-h/templ/CONTRIBUTING.md +247 -0 generated file: collapsed
A vendor/github.com/a-h/templ/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/a-h/templ/README.md +194 -0 generated file: collapsed
A vendor/github.com/a-h/templ/SECURITY.md +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +132 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +452 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +349 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +23 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +237 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +82 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +385 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +10 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +88 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +75 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +84 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +166 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +195 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +130 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +22 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +114 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +145 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +128 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +146 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +61 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +215 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +24 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +1464 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +60 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +50 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/main.go +280 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +120 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +68 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +295 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +87 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cosign.pub +4 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flake.lock +87 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flake.nix +99 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flush.go +36 -0 generated file: collapsed
A vendor/github.com/a-h/templ/fragment.go +73 -0 generated file: collapsed
A vendor/github.com/a-h/templ/generator/generator.go +1829 -0 generated file: collapsed
A vendor/github.com/a-h/templ/generator/rangewriter.go +122 -0 generated file: collapsed
A vendor/github.com/a-h/templ/handler.go +163 -0 generated file: collapsed
A vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/a-h/templ/internal/format/scriptelement.go +96 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/format/styleelement.go +25 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/format/templ.go +102 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +67 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/imports/process.go +218 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +27 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +53 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +110 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +161 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/prettier/prettier.go +133 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +12 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +20 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/syncmap/map.go +49 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/syncset/set.go +42 -0 generated file: collapsed
A vendor/github.com/a-h/templ/join.go +19 -0 generated file: collapsed
A vendor/github.com/a-h/templ/js.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/jsonscript.go +85 -0 generated file: collapsed
A vendor/github.com/a-h/templ/jsonstring.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/LICENSE +29 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +86 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +244 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +70 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +120 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +7 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +354 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +131 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +225 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +140 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/base.go +95 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/basic.go +705 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +103 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +1068 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +523 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/client.go +412 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/context.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +264 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +149 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/doc.go +23 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/errors.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/general.go +461 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/handler.go +88 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/language.go +1401 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/progress.go +119 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/protocol.go +41 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/registration.go +44 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +110 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +179 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/server.go +1893 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/text.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/util.go +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/version.go +7 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/window.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/workspace.go +213 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/uri/uri.go +245 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +22 -0 generated file: collapsed
A vendor/github.com/a-h/templ/once.go +63 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +37 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/childrenparser.go +25 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +103 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/cssparser.go +200 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/diagnostics.go +64 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +33 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/elementparser.go +605 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/expressionparser.go +246 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +57 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/fuzz.sh +5 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +64 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +19 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +343 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +180 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goparser.go +70 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +144 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/packageparser.go +32 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/parser.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/raw.go +67 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/scriptparser.go +336 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +91 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/sourcemap.go +134 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +44 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/structure.go +43 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +171 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templatefile.go +195 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templateparser.go +154 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templelementparser.go +59 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/textparser.go +53 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/types.go +1537 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/visitor.go +36 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +357 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime.go +736 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/buffer.go +62 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/bufferpool.go +38 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/builder.go +8 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/runtime.go +21 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/scriptelement.go +107 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/styleattribute.go +217 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/watchmode.go +181 -0 generated file: collapsed
A vendor/github.com/a-h/templ/safehtml/style.go +199 -0 generated file: collapsed
A vendor/github.com/a-h/templ/scripttemplate.go +150 -0 generated file: collapsed
A vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/a-h/templ/url.go +31 -0 generated file: collapsed
A vendor/github.com/a-h/templ/version.go +10 -0 generated file: collapsed
A vendor/github.com/a-h/templ/watchmode.go +105 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/.gitignore +2 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/LICENSE +19 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/README.md +19 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/backward_references.go +185 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/backward_references_hq.go +796 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bit_cost.go +436 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bit_reader.go +266 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bitwriter.go +56 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter.go +144 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_command.go +434 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_distance.go +433 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_literal.go +433 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +1435 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster.go +30 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_command.go +164 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_distance.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_literal.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/command.go +254 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/compress_fragment.go +834 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +775 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/constants.go +77 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/context.go +2176 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/decode.go +2570 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/dictionary.go +122890 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/dictionary_hash.go +32779 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encode.go +1220 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder.go +177 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder_dict.go +22 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder_fast.go +197 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/entropy_encode.go +592 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/entropy_encode_static.go +4399 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/fast_log.go +290 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/find_match_length.go +45 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/LICENSE +27 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/README.md +2 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/gzip.go +65 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +517 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/huffman_code.go +346 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/token.go +80 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/writer.go +66 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h10.go +287 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h5.go +214 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h6.go +216 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash.go +342 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_composite.go +93 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +252 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +214 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_rolling.go +168 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/histogram.go +226 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/http.go +189 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/huffman.go +653 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/literal_cost.go +182 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +212 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +248 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +278 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +34 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/m0.go +175 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/m4.go +339 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +103 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +328 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +53 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/trio.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +258 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +206 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zm.go +301 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/memory.go +66 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock.go +574 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_command.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_distance.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_literal.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/params.go +37 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/platform.go +103 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/prefix.go +30 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/prefix_dec.go +723 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/quality.go +196 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/reader.go +126 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/ringbuffer.go +134 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/state.go +313 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/static_dict.go +662 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/static_dict_lut.go +75094 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/symbol_list.go +22 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/transform.go +641 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/utf8_util.go +70 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/util.go +7 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/write_bits.go +52 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/writer.go +162 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/.travis.yml +22 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/LICENSE +27 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/README.md +48 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard.go +20 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_darwin.go +52 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_plan9.go +42 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_unix.go +149 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_windows.go +157 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/README.md +83 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +305 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/bridge.go +779 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +135 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +255 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +222 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +80 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +13 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +1327 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +280 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +173 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +691 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +633 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +186 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +440 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +578 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +308 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +316 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +162 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +788 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +594 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +303 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +364 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +270 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +562 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +325 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +502 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +537 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +490 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +469 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +470 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +669 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +162 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +1624 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +350 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +1678 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +1084 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/doc.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/init.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +929 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +345 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +934 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +487 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +743 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +1093 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +263 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +934 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +959 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +1010 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +1167 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +760 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +768 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/opaque_types.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/string_list.go +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +2176 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +1492 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +348 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +182 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +163 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +338 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +515 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +682 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +423 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +77 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +1091 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +80 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +381 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +478 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +303 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +77 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +83 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +637 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +126 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +265 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +212 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +326 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +444 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +126 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +208 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +482 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +37 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +1093 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +1002 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +217 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/doc.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +1231 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +967 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +83 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +102 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +589 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +278 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +485 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/engine.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/helpers.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/init.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/marshal.go +146 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/refcount.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/loader/loader.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +63 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +256 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +42 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +146 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/.gitignore +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/Makefile +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/README.md +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/command_line.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/doc.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/handlers.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/input.go +277 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +85 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +70 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +47 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +922 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +470 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +95 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +1037 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +352 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/options.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/profile.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/render_stack.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/size_observation.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/view.go +966 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/window_info.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +53 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/context.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/core.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player.go +435 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +203 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/context.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/core.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/player.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/driver/driver.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/driver/register.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +1461 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +863 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +358 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/db.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +181 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/.gitignore +1 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/LICENSE +201 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/README.md +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_amd64.h +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_arm64.h +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_loong64.h +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/cgo.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlerror.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_android.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_darwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_freebsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_linux.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_netbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_playground.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_stubs.s +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/func.go +677 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/gen.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/go_runtime.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/hostlayout_go123.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/hostlayout_nogo123.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/empty.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +195 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +37 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/doc.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +85 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/linux.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/strings/strings.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/is_ios.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/nocgo.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_386.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_abi_helpers.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_amd64.go +443 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_arm.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_arm64.go +759 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_loong64.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_ppc64le.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_riscv64.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_s390x.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_386.s +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_amd64.s +170 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_arm.s +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_arm64.s +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_loong64.s +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_ppc64le.s +120 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_riscv64.s +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_s390x.s +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_386.s +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_arm.s +89 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_arm64.s +75 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_loong64.s +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_ppc64le.s +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_riscv64.s +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_s390x.s +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_32bit.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_cgo_linux.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_notstackargs.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_stackargs.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_unix.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_windows.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_386.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_amd64.s +2014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_arm.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_arm64.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_loong64.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_ppc64le.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_riscv64.s +4051 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_s390x.s +4015 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/internal/core/core.go +322 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/pkg/core/core.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +2021 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +2050 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +808 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +1195 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +330 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +390 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +977 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +505 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +596 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +707 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +393 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +1010 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +566 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +572 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +580 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +410 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +861 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +610 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +553 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +815 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +947 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +154 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +1070 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +309 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +784 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +1036 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +812 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +572 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +389 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +1283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +70 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +1199 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +565 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +855 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +1895 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +989 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +701 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +588 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +667 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +607 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +713 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +488 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +452 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +287 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +553 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +389 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +1142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +1112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +884 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +179 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +966 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +563 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +423 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +516 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +501 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +799 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +540 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +962 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +2291 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +385 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +452 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +1183 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +933 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +1874 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +479 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +554 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +603 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +490 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +451 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +925 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +676 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/cairo/main.go +990 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +334 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +412 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +279 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +248 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +280 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +616 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +733 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +309 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +613 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +374 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +58 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +178 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +297 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +876 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +1447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +476 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +420 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +329 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +502 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +4904 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +315 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +453 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +382 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +545 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +67 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +193 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +192 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +704 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +720 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +660 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +752 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +547 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +561 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +1760 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gaction.go +635 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +795 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +422 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +2114 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +2189 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +711 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +559 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +239 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +263 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +360 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +244 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +481 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +678 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +425 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +1898 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +541 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +581 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +729 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +387 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +136 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +726 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +181 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +273 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +1098 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +317 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +371 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +1327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +176 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +914 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +186 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +206 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfile.go +6341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +769 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +202 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +1628 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +519 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +623 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +251 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gicon.go +371 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +550 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +289 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +202 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +865 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +2321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +350 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giostream.go +727 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +1134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +328 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +232 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +420 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +177 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +616 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +760 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +995 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmount.go +1293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +1009 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +155 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +94 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +346 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +279 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +1258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +443 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +297 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +370 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +132 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +337 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +357 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +294 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +183 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +1045 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gresource.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +302 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +1830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +681 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +587 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +442 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +498 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +612 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +75 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +454 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +1992 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +260 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +945 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +296 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +404 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +626 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +414 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +632 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtask.go +1334 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +319 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +463 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +768 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +826 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +883 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +330 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +222 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +378 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +349 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +704 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +1055 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +1190 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +316 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +225 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/garray.go +794 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +431 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +395 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +187 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +950 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcache.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +460 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +278 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdate.go +812 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +1043 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdir.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/genviron.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gerror.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +799 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghash.go +714 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +208 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghook.go +258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +90 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +1123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +1164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glist.go +57 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmain.go +2504 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +780 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmem.go +519 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +1005 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gnode.go +424 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/goption.go +652 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +314 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +86 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +45 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gquark.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +471 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grand.go +223 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gregex.go +1610 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grel.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +578 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gshell.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gslice.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gslist.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +375 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +1120 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstring.go +596 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +179 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +1439 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gthread.go +2438 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +277 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +94 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtree.go +503 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +1656 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/guri.go +1099 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gutils.go +745 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/guuid.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +3035 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gversion.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/main.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_other.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +369 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +543 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/genums.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +227 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +2233 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +924 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +1324 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +810 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +1648 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +895 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/main.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/more.go +154 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +3 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +391 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +399 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +163 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +231 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +319 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +464 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +194 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +240 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +53 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +396 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +410 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +97 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +90 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +100 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +91 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +102 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +569 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +667 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +120 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +80 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +129 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +195 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +236 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +2087 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +1284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +764 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +495 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +579 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +344 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +466 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +600 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +400 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +657 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +561 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +681 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +1025 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +952 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +520 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +1041 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +95 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +324 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +156 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +591 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +717 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +1021 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +356 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +910 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +829 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +1864 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +249 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +432 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +612 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +1046 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +174 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +221 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +774 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +230 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +696 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +565 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +271 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +873 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +573 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +305 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +521 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +426 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +247 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +927 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +469 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +1327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +652 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +559 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +267 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +203 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +1022 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +58 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +418 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +391 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +604 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +756 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +539 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +347 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +1008 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +695 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +474 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +2253 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +666 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +764 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +2312 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +243 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +291 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +992 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +602 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +945 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +670 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +1095 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +706 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +494 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +453 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +207 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +1627 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +763 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +692 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +654 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +543 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +411 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +564 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +646 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +199 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +194 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +190 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +232 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +299 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +133 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +1000 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +499 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +780 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +488 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +758 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +637 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +359 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +538 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +1772 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +879 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +1251 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +238 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +703 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +873 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +1725 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +413 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +713 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +591 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +1777 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +381 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +100 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +938 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +815 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +582 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +388 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +566 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +1149 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +905 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +761 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +294 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +531 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +475 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +367 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +1549 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +494 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +507 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +928 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +364 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +765 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +832 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +923 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +526 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +634 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +416 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +489 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +556 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +1910 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +442 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +968 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +754 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +658 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +957 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +902 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +544 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +143 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +735 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +1157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +539 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +973 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +564 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +1343 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +662 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +427 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +424 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +520 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +607 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +617 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +252 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +510 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +823 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +1409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +405 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +1385 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +382 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +405 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +471 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +248 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +404 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +207 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +67 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +875 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +606 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +177 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +1730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +2252 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +1393 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +259 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +1583 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +2802 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +674 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +395 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +615 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +599 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +136 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +1750 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +742 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +326 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +890 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +2663 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +994 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +182 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +632 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +512 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +5627 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +2140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +556 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +239 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +524 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +256 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +1072 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +1798 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +422 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +2313 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +580 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +374 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +308 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +439 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +1777 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +782 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +427 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +281 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +152 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +403 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +536 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +249 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +466 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +245 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +313 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +273 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +626 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +1419 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +996 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +1383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +204 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +816 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +630 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +63 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +333 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +342 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +222 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +189 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +346 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +353 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +433 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +200 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +335 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +325 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +356 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +285 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +89 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +355 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +1260 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +425 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +129 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +348 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +178 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +2513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +200 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +201 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +329 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +295 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +430 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +241 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +649 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +608 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +4693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +433 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +544 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +342 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +247 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/more.go +228 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/.gitignore +25 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/LICENSE +20 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/README.md +30 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/backoff.go +66 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/context.go +62 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/exponential.go +216 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/retry.go +146 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/ticker.go +97 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/timer.go +35 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/tries.go +38 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +221 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/help/help.go +240 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/key/key.go +140 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/README.md +71 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +229 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/keys.go +97 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/list.go +1330 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/style.go +99 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +214 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +102 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +224 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/table/table.go +450 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +890 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +544 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.gitattributes +1 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.gitignore +23 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.golangci.yml +44 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +5 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/README.md +400 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +14 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/commands.go +222 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/exec.go +133 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/focus.go +9 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +19 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +129 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key.go +715 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_other.go +13 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_sequences.go +130 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_windows.go +441 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/logging.go +53 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/mouse.go +308 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +29 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/options.go +252 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/renderer.go +88 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/screen.go +248 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/signals_unix.go +33 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/signals_windows.go +10 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +790 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tea.go +941 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tea_init.go +22 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty.go +141 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty_unix.go +49 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty_windows.go +68 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/.golangci.yml +47 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +6 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/README.md +109 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/doc.go +4 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env.go +294 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env_other.go +8 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env_windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/profile.go +108 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/writer.go +171 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.golangci.yml +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +5 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/README.md +815 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +19 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/align.go +83 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +22 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/borders.go +490 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/color.go +172 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/get.go +556 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/join.go +175 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/position.go +154 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ranges.go +48 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/renderer.go +181 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/runes.go +43 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/set.go +799 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/size.go +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/style.go +588 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/unset.go +331 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/whitespace.go +83 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ansi.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ascii.go +8 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/background.go +178 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/c0.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/c1.go +72 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/charset.go +55 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/clipboard.go +75 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/color.go +784 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ctrl.go +156 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/cursor.go +637 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/cwd.go +26 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/doc.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/finalterm.go +67 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/focus.go +9 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/graphics.go +62 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/hyperlink.go +28 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/inband.go +24 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/iterm2.go +18 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/keypad.go +28 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/kitty.go +90 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/method.go +196 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mode.go +690 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +495 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/modes.go +65 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mouse.go +172 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/notification.go +32 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/palette.go +34 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser.go +417 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/const.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/seq.go +136 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +273 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_decode.go +525 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_handler.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_sync.go +29 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/passthrough.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/paste.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/progress.go +49 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/reset.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/screen.go +410 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/sgr.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/status.go +168 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/style.go +819 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/termcap.go +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/title.go +48 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/truncate.go +290 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/urxvt.go +17 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/util.go +92 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/width.go +107 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/winop.go +59 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/wrap.go +472 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/xterm.go +138 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/buffer.go +474 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/cell.go +487 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/errors.go +6 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/geom.go +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +273 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +301 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/link.go +14 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/pen.go +92 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/screen.go +1514 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/sequence.go +131 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/style.go +31 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +137 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/utils.go +24 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/wrap.go +191 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/writer.go +340 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term.go +51 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_other.go +39 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_plan9.go +118 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix.go +96 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix_other.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_windows.go +87 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/terminal.go +12 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/util.go +47 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/LICENSE +23 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/README.md +20 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser.go +57 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_darwin.go +5 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_freebsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_linux.go +21 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_netbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_openbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_unsupported.go +12 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_windows.go +7 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/.gitignore +3 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/AGENTS.md +51 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +129 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/README.md +190 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/gen.go +3 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/graphemes.go +73 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/options.go +30 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/trie.go +1699 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/truncate.go +149 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/width.go +239 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +120 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +138 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +79 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +144 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +25 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +205 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +1717 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +21 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +62 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +24 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +416 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/LICENSE +15 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/bypass.go +145 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +38 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/common.go +341 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/config.go +306 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/doc.go +211 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/dump.go +509 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/format.go +419 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/spew.go +148 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/.golangci.yml +24 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/README.md +2 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/keycodes.go +205 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/mode.go +82 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/read.go +154 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/records.go +486 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/LICENSE.md +20 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/README.md +189 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/color.go +733 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/color_windows.go +22 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/doc.go +134 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/.gitignore +10 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/.mailmap +2 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +651 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +147 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/LICENSE +25 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/README.md +214 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_fen.go +469 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_inotify.go +597 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +735 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_other.go +22 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_windows.go +702 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/fsnotify.go +526 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/darwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +32 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +56 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +16 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +45 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/internal.go +2 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/unix.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/unix2.go +25 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/shared.go +64 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/staticcheck.conf +3 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/system_bsd.go +7 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/system_darwin.go +8 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.editorconfig +24 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.envrc +7 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.gitignore +10 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +48 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +104 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/README.md +81 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +714 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.lock +103 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.nix +14 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/errors.go +244 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +11 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +9 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +61 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +1948 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +44 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +10 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/.cirrus.yml +11 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/.golangci.yml +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +50 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/LICENSE +25 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/MAINTAINERS +3 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/README.md +47 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/SECURITY.md +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth.go +257 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_anonymous.go +16 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_default_other.go +7 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_default_windows.go +5 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_external.go +26 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +109 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/call.go +66 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn.go +1009 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_darwin.go +36 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_other.go +83 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_unix.go +40 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_windows.go +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/dbus.go +427 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/decoder.go +376 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/default_handler.go +338 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/doc.go +70 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/encoder.go +235 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/escape.go +84 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/export.go +484 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/match.go +89 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/message.go +393 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/object.go +181 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sequence.go +24 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sequential_handler.go +125 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/server_interfaces.go +107 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sig.go +298 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_darwin.go +6 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_generic.go +52 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +41 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_tcp.go +41 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unix.go +291 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +95 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +94 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +25 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_zos.go +6 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant.go +169 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant_lexer.go +284 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant_parser.go +815 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/LICENSE +201 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/README.md +23 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/trap_others.go +16 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/trap_windows.go +42 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/.gitignore +101 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +72 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/LICENSE +7 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/README.md +490 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +67 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/colors.go +1156 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +29 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +91 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +1 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +208 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/rand.go +22 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +192 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/sort.go +191 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +29 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +290 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/README.md +48 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/colorable_others.go +38 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/colorable_windows.go +1047 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/go.test.sh +12 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/noncolorable.go +57 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/LICENSE +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/README.md +50 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/doc.go +2 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/go.test.sh +12 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_bsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_others.go +17 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_plan9.go +23 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_solaris.go +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_tcgets.go +20 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_windows.go +136 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/README.md +23 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader.go +19 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader_unix.go +11 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader_windows.go +85 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/README.md +27 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/benchstat.txt +43 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/new.txt +54 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/old.txt +54 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth.go +420 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_js.go +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_posix.go +81 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_table.go +488 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_windows.go +34 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/LICENSE.txt +24 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/README.md +85 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/env.go +53 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/interpolate.go +213 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/parser.go +281 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/.golangci.yml +27 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/README.md +31 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/ansi.go +7 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/buffer.go +40 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/compressor/writer.go +132 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/writer.go +76 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.golangci-soft.yml +47 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.golangci.yml +29 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/README.md +64 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader.go +93 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +146 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_default.go +12 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_linux.go +154 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_select.go +136 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_unix.go +18 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_windows.go +244 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.golangci-soft.yml +43 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.golangci.yml +28 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/README.md +431 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/ansi_compat.md +65 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/ansicolors.go +281 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/color.go +205 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_linux.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_solaris.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_unix.go +13 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_zos.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/copy.go +37 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/hyperlink.go +11 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/notification.go +11 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/output.go +205 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/profile.go +112 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/screen.go +590 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/style.go +126 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/templatehelper.go +88 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv.go +115 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_other.go +30 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_posix.go +17 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_solaris.go +22 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_unix.go +301 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_windows.go +140 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/.gitignore +24 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/README.md +35 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/atomic.go +73 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/file_unix.go +14 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/file_windows.go +33 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/zfile_windows.go +27 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.dockerignore +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.gitattributes +4 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.golangci.toml +76 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +128 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/AGENTS.md +73 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +254 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/Dockerfile +6 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/README.md +327 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/SECURITY.md +16 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +1 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/caps.sh +101 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/ci.sh +293 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/decode.go +538 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/decode_fused.go +362 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/doc.go +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/errors.go +233 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +37 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +49 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +450 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/localtime.go +121 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/marshaler.go +1697 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/strict.go +108 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +597 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/toml.abnf +246 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/types.go +24 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +2396 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +124 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +21 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +3 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +83 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +29 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +1686 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +43 -0 collapsed to keep the page light
A vendor/github.com/pmezard/go-difflib/LICENSE +27 -0 collapsed to keep the page light
A vendor/github.com/pmezard/go-difflib/difflib/difflib.go +772 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.gitignore +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.golangci.yaml +31 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.goreleaser.yaml +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/CHANGELOG.md +350 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/Makefile +150 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/README.md +500 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/create.go +116 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialect/querier.go +25 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialects.go +214 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/doc.go +14 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/sql_extended.go +23 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/store.go +66 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/store_extended.go +33 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/db.go +48 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/dialect.go +74 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/down.go +107 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/fix.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/globals.go +104 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/goose.go +141 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/helpers.go +84 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/install.sh +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/controller/store.go +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +53 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +66 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +62 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +70 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +52 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +50 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +52 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +14 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +72 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +118 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +173 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +59 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +394 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +282 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +28 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +237 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/locker.go +32 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/postgres.go +165 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +98 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +136 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/log.go +36 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migrate.go +379 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migration.go +398 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migration_sql.go +115 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/osfs.go +28 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider.go +669 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_collect.go +196 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_errors.go +48 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_options.go +280 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_run.go +535 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_types.go +91 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/redo.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/register.go +133 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/reset.go +64 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/status.go +64 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/up.go +221 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/version.go +52 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/LICENSE.txt +21 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/README.md +137 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/doc.go +108 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/eastasianwidth.go +2588 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/emojipresentation.go +295 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/gen_breaktest.go +215 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/gen_properties.go +261 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/grapheme.go +331 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/graphemeproperties.go +1915 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/graphemerules.go +176 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/line.go +134 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/lineproperties.go +3554 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/linerules.go +626 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/properties.go +208 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentence.go +90 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentenceproperties.go +2845 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentencerules.go +276 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/step.go +242 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/width.go +61 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/word.go +89 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/wordproperties.go +1883 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/wordrules.go +282 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/.gitignore +27 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/README.md +858 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/array.go +276 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/console.go +535 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/context.go +535 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/ctx.go +51 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder.go +56 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder_cbor.go +45 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder_json.go +51 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/event.go +919 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/example.jsonl +7 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/fields.go +312 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/globals.go +208 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/globals_118.go +30 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/go112.go +7 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/hook.go +64 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/README.md +56 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/base.go +19 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/cbor.go +102 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +654 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/string.go +117 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/time.go +111 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/types.go +524 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/base.go +19 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/bytes.go +85 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/string.go +149 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/time.go +124 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/types.go +466 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/log.go +528 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/not_go112.go +5 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/rs/zerolog/sampler.go +137 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/slog.go +247 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/syslog.go +89 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/writer.go +355 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/.travis.yml +17 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/LICENSE.txt +29 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/README.md +335 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/block.go +1612 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/doc.go +46 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/entities.go +2236 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/esc.go +70 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/html.go +952 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/inline.go +1228 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/markdown.go +950 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/node.go +360 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/smartypants.go +457 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.editorconfig +21 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.envrc +4 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.gitignore +5 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.golangci.yaml +37 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/LICENSE +19 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/README.md +37 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.lock +103 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.nix +17 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/file_type.go +32 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/finder.go +171 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/glob.go +5 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/glob_windows.go +8 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/helpers.go +41 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +53 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +8 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/justfile +14 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/.editorconfig +18 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +1 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/Makefile +59 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/README.md +186 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/fuzzy.go +263 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/LICENSE +202 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/README.md +185 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff.go +134 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_constant.go +25 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_exponential.go +47 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +56 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/rand.go +54 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/retry.go +104 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.editorconfig +15 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.golangci.yaml +48 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/LICENSE.txt +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/README.md +474 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/afero.go +111 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/appveyor.yml +10 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/basepath.go +222 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/cacheOnReadFs.go +315 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/const_bsds.go +23 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/const_win_unix.go +22 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/copyOnWriteFs.go +332 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/httpFs.go +114 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/internal/common/adapters.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/iofs.go +302 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/ioutil.go +243 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/lstater.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/match.go +110 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/dir.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/dirmap.go +43 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/file.go +373 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/memmap.go +463 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/os.go +113 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/path.go +106 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/readonlyfs.go +96 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/regexpfs.go +223 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/symlink.go +55 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/unionFile.go +331 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/util.go +329 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.editorconfig +15 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.gitignore +25 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.golangci.yaml +39 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/Makefile +40 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/README.md +79 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/alias.go +69 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/basic.go +131 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/cast.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/indirect.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/internal/time.go +79 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/internal/timeformattype_string.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/map.go +212 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/number.go +549 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/slice.go +106 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/time.go +116 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/zz_generated.go +261 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.gitignore +39 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.golangci.yml +66 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.mailmap +3 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/CONDUCT.md +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/CONTRIBUTING.md +50 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/LICENSE.txt +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/MAINTAINERS +13 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/Makefile +35 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/README.md +133 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/SECURITY.md +105 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/active_help.go +60 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/args.go +131 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/bash_completions.go +709 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/bash_completionsV2.go +484 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/cobra.go +246 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command.go +2072 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command_notwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command_win.go +41 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/completions.go +1020 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/man_docs.go +246 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/md_docs.go +158 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/rest_docs.go +186 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/util.go +52 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/yaml_docs.go +175 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/fish_completions.go +292 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/flag_groups.go +290 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/powershell_completions.go +350 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/shell_completions.go +98 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/zsh_completions.go +308 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.editorconfig +12 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.golangci.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.travis.yml +22 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/LICENSE +28 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/README.md +323 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool.go +94 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool_func.go +40 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool_slice.go +185 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bytes.go +209 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/count.go +96 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/duration.go +86 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/duration_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/errors.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/flag.go +1289 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float32_slice.go +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float64.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float64_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/func.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/golangflag.go +161 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int16.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int32_slice.go +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int64.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int64_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int8.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int_slice.go +158 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ip.go +97 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ip_slice.go +186 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipmask.go +122 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipnet.go +98 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipnet_slice.go +147 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string.go +80 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_array.go +125 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_slice.go +163 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_int.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_int64.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_string.go +168 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/text.go +81 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/time.go +124 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint16.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint64.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint8.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint_slice.go +168 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.editorconfig +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.envrc +4 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.golangci.yaml +118 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.yamlignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.yamllint.yaml +6 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/Makefile +87 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/README.md +931 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/TROUBLESHOOTING.md +32 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/UPGRADE.md +147 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/encoding.go +181 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/experimental.go +8 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/file.go +104 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/finder.go +55 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flags.go +57 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flake.lock +255 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flake.nix +61 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +61 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +41 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/json/codec.go +17 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +16 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +14 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/bind_struct.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/finder.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/finder_default.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/logger.go +31 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/remote.go +259 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/util.go +211 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/viper.go +2077 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/.codeclimate.yml +21 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/.gitignore +11 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/README.md +91 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/Taskfile.yml +27 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/accessors.go +197 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/conversions.go +280 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/doc.go +66 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/map.go +214 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/mutations.go +77 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/security.go +12 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/tests.go +17 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/type_specific.go +346 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/type_specific_codegen.go +2261 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/value.go +159 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_compare.go +495 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_format.go +866 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_forward.go +1723 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_order.go +81 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertions.go +2295 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/doc.go +50 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/errors.go +10 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/forward_assertions.go +16 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/http_assertions.go +165 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +24 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +36 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +17 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/mock/doc.go +44 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/mock/mock.go +1298 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/doc.go +31 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/forward_requirements.go +16 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require.go +2180 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require.go.tmpl +6 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require_forward.go +1724 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/requirements.go +29 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.env +1 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.env.invalid +1 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.gitignore +4 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.golangci.yaml +7 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/CHANGELOG.md +105 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/README.md +129 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/gotenv.go +409 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/.gitignore +9 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/README.md +139 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/caps.go +31 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/capvals.go +1525 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/color.go +88 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/dec.go +245 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/load.go +64 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/param.go +405 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/stack.go +48 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/terminfo.go +479 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/.codecov.yml +15 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/.gitignore +4 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/CHANGELOG.md +95 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/LICENSE.txt +19 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/Makefile +38 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/README.md +43 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error.go +646 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error_post_go120.go +48 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error_pre_go120.go +79 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/LICENSE +50 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/NOTICE +13 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/README.md +171 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/apic.go +747 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/decode.go +1018 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/emitterc.go +2054 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/encode.go +577 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/parserc.go +1274 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/readerc.go +434 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/resolve.go +326 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/scannerc.go +3040 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/sorter.go +134 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/writerc.go +48 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yaml.go +703 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yamlh.go +811 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yamlprivateh.go +198 -0 collapsed to keep the page light
A vendor/golang.org/x/image/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/image/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/draw.go +67 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/impl.go +8426 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/scale.go +525 -0 collapsed to keep the page light
A vendor/golang.org/x/image/math/f64/f64.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/print.go +184 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/read.go +962 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/rule.go +1951 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/work.go +333 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/module/module.go +840 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/module/pseudo.go +250 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/semver/semver.go +407 -0 collapsed to keep the page light
A vendor/golang.org/x/net/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/net/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/atom/atom.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/atom/table.go +785 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/const.go +111 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/doc.go +122 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/doctype.go +156 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/entity.go +2252 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/escape.go +379 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/foreign.go +221 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/iter.go +54 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/node.go +230 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/nodetype_string.go +31 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/parse.go +2378 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/render.go +316 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/token.go +1322 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/idna.go +880 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/punycode.go +220 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/trie.go +51 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/trieval.go +119 -0 collapsed to keep the page light
A vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
A vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff
A vendor/golang.org/x/net/publicsuffix/data/text +1 -0 collapsed to keep the page light
A vendor/golang.org/x/net/publicsuffix/list.go +210 -0 collapsed to keep the page light
A vendor/golang.org/x/net/publicsuffix/table.go +70 -0 collapsed to keep the page light
A vendor/golang.org/x/sync/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sync/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/sync/errgroup/errgroup.go +151 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/.gitignore +2 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/README.md +184 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/affinity_linux.go +189 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/aliases.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_aix_ppc64.s +17 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_bsd_386.s +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_bsd_amd64.s +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_bsd_arm.s +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_bsd_arm64.s +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s +29 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_386.s +65 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_amd64.s +57 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_arm.s +56 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_arm64.s +50 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_loong64.s +51 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_mips64x.s +54 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_mipsx.s +52 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +42 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_riscv64.s +47 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_linux_s390x.s +54 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s +29 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_solaris_amd64.s +17 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/asm_zos_s390x.s +382 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/auxv.go +36 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/auxv_unsupported.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/bluetooth_linux.go +36 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/bpxsvc_zos.go +657 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/bpxsvc_zos.s +192 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/cap_freebsd.go +195 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/constants.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_aix_ppc.go +26 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_aix_ppc64.go +28 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_darwin.go +24 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_dragonfly.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_freebsd.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_linux.go +42 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_netbsd.go +29 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_openbsd.go +29 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dev_zos.go +28 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/dirent.go +102 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/endian_big.go +9 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/endian_little.go +9 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/env_unix.go +31 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/fcntl.go +36 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/fcntl_darwin.go +24 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/fdset.go +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/gccgo.go +59 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/gccgo_c.c +44 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +20 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ifreq_linux.go +139 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ioctl_linux.go +334 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ioctl_signed.go +74 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ioctl_unsigned.go +74 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ioctl_zos.go +71 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/mkall.sh +250 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/mkerrors.sh +814 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/mmap_nomremap.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/mremap.go +57 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/pagesize_unix.go +15 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/pledge_openbsd.go +111 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ptrace_darwin.go +11 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ptrace_ios.go +11 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/race.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/race0.go +25 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/readdirent_getdents.go +12 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/readdirent_getdirentries.go +19 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/readv_unix.go +103 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go +16 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sockcmsg_linux.go +85 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sockcmsg_unix.go +106 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go +46 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sockcmsg_zos.go +58 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s +75 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall.go +86 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_aix.go +582 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +52 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +83 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_bsd.go +609 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_darwin.go +711 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +50 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +50 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +26 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_dragonfly.go +359 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +56 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_freebsd.go +455 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +64 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +64 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +60 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go +60 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go +60 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_hurd.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_hurd_386.go +28 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_illumos.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux.go +2574 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_386.go +313 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_alarm.go +12 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +144 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go +12 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_arm.go +218 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +188 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_gc.go +14 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go +16 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go +20 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_loong64.go +220 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +187 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +173 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_ppc.go +203 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +114 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +193 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +295 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +111 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_netbsd.go +388 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd.go +346 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +41 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +41 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +41 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go +41 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go +26 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go +39 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go +41 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go +41 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_solaris.go +1183 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_unix.go +619 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_unix_gc.go +14 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +22 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/syscall_zos_s390x.go +3213 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sysvshm_linux.go +20 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sysvshm_unix.go +51 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/sysvshm_unix_other.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/timestruct.go +76 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/unveil_openbsd.go +51 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/vgetrandom_linux.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go +11 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/xattr_bsd.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go +1384 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go +1385 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +1922 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +1922 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +1737 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +2042 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +2039 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +2033 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go +2033 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go +2147 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux.go +4207 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_386.go +883 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +883 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +888 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +885 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +875 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +889 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +889 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +889 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +889 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +941 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +945 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +945 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +885 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +944 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +987 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +1779 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +1769 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +1758 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go +1769 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +1905 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +1905 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +1905 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go +1905 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go +1905 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go +1904 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go +1903 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +1556 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go +990 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go +40 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go +17 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go +49 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go +49 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zptrace_x86_linux.go +79 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s +364 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go +1461 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go +1420 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go +1188 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go +1069 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +2728 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +799 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +2728 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +799 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +1666 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +1886 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +1886 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +1886 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +1886 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +1886 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go +101 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux.go +2267 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +469 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +636 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +584 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +535 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go +469 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +636 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +630 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +619 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +636 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go +641 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +687 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +687 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go +531 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +478 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +631 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +1848 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +1848 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +1848 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +1848 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s +862 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +2407 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +2217 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go +3458 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go +280 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go +281 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go +439 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go +437 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go +316 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go +393 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go +393 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go +393 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go +393 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go +393 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +470 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +394 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +434 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +337 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +334 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +454 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +384 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +384 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +454 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +461 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +433 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +433 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +338 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +399 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +413 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go +274 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go +274 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go +274 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go +274 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go +219 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go +219 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go +219 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go +218 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go +221 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go +217 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go +218 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +2852 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go +353 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go +357 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +878 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +878 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +473 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +651 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +656 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +642 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go +636 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go +638 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux.go +6475 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_386.go +717 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +731 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +711 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +710 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +711 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +716 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +713 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +713 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +716 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +724 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +719 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +798 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +733 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +714 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +585 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +593 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +590 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go +593 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go +568 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go +568 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go +575 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go +568 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go +568 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go +570 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go +570 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +516 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +552 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/aliases.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/dll_windows.go +380 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/env_windows.go +57 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/eventlog.go +20 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/exec_windows.go +248 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/memory_windows.go +48 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/mkerrors.bash +70 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/mkknownfolderids.bash +27 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/mksyscall.go +9 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/race.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/race0.go +25 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/security_windows.go +1537 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/service.go +257 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/setupapi_windows.go +1425 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/str.go +22 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/syscall.go +104 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/syscall_windows.go +1952 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/types_windows.go +4057 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/types_windows_386.go +35 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/types_windows_amd64.go +34 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/types_windows_arm.go +35 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/types_windows_arm64.go +34 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/zerrors_windows.go +9468 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/zknownfolderids_windows.go +149 -0 collapsed to keep the page light
A vendor/golang.org/x/sys/windows/zsyscall_windows.go +4828 -0 collapsed to keep the page light
A vendor/golang.org/x/text/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/text/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/text/encoding/encoding.go +335 -0 collapsed to keep the page light
A vendor/golang.org/x/text/encoding/internal/identifier/identifier.go +81 -0 collapsed to keep the page light
A vendor/golang.org/x/text/encoding/internal/identifier/mib.go +1627 -0 collapsed to keep the page light
A vendor/golang.org/x/text/encoding/internal/internal.go +75 -0 collapsed to keep the page light
A vendor/golang.org/x/text/encoding/unicode/override.go +82 -0 collapsed to keep the page light
A vendor/golang.org/x/text/encoding/unicode/unicode.go +512 -0 collapsed to keep the page light
A vendor/golang.org/x/text/internal/utf8internal/utf8internal.go +87 -0 collapsed to keep the page light
A vendor/golang.org/x/text/runes/cond.go +187 -0 collapsed to keep the page light
A vendor/golang.org/x/text/runes/runes.go +355 -0 collapsed to keep the page light
A vendor/golang.org/x/text/secure/bidirule/bidirule.go +340 -0 collapsed to keep the page light
A vendor/golang.org/x/text/transform/transform.go +709 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/core.go +1064 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/prop.go +206 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/tables17.0.0.go +2135 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/composition.go +512 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/forminfo.go +296 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/input.go +109 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/iter.go +454 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/normalize.go +610 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/tables17.0.0.go +8104 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/transform.go +88 -0 collapsed to keep the page light
A vendor/golang.org/x/text/unicode/norm/trie.go +54 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/astutil/enclosing.go +663 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/astutil/imports.go +487 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/astutil/rewrite.go +490 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/astutil/util.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/edge/edge.go +299 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/inspector/cursor.go +551 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/inspector/inspector.go +311 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/inspector/iter.go +113 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/inspector/typeof.go +227 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/ast/inspector/walk.go +341 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/gcexportdata/gcexportdata.go +236 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/gcexportdata/importer.go +75 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/doc.go +253 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/external.go +153 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/golist.go +1126 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/golist_overlay.go +83 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/loadmode_string.go +56 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/packages.go +1605 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/packages/visit.go +133 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/types/objectpath/objectpath.go +945 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/types/typeutil/callee.go +86 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/types/typeutil/imports.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/types/typeutil/map.go +459 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go +71 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/go/types/typeutil/ui.go +53 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/imports/forward.go +77 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/aliases/aliases.go +18 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/core/event.go +95 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/core/export.go +67 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/core/fast.go +77 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/doc.go +7 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/event.go +127 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/keys/keys.go +237 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/keys/standard.go +22 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/keys/util.go +21 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/event/label/label.go +203 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/bimport.go +89 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/exportdata.go +421 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go +108 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/iexport.go +1605 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/iimport.go +1122 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/predeclared.go +91 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/support.go +30 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gcimporter/ureader.go +813 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gocommand/invoke.go +567 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gocommand/invoke_notunix.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gocommand/invoke_unix.go +13 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gocommand/vendor.go +163 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gocommand/version.go +75 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/gopathwalk/walk.go +336 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/fix.go +1893 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/imports.go +363 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/mod.go +841 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/mod_cache.go +331 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/sortimports.go +313 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/source.go +63 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/imports/source_env.go +129 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/packagesinternal/packages.go +23 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/codes.go +77 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/decoder.go +519 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/doc.go +32 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/encoder.go +392 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/flags.go +9 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/reloc.go +42 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/support.go +17 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/sync.go +136 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/syncmarker_string.go +92 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/pkgbits/version.go +102 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/stdlib/deps.go +549 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/stdlib/import.go +97 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/stdlib/manifest.go +18613 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/stdlib/stdlib.go +105 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typeparams/common.go +68 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typeparams/coretype.go +157 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typeparams/free.go +129 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typeparams/normalize.go +216 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typeparams/termlist.go +169 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typeparams/typeterm.go +172 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/classify_call.go +137 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/element.go +137 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/errorcode.go +1560 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go +179 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/fx.go +88 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/isnamed.go +71 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/qualifier.go +54 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/recv.go +44 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/toonew.go +89 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/types.go +272 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/varkind.go +23 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/varkind_go124.go +39 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/typesinternal/zerovalue.go +381 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/versions/features.go +49 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/versions/gover.go +172 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/versions/types.go +33 -0 collapsed to keep the page light
A vendor/golang.org/x/tools/internal/versions/versions.go +57 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/LICENSE +50 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/NOTICE +13 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/README.md +150 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/apic.go +747 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/decode.go +1000 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/emitterc.go +2020 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/encode.go +577 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/parserc.go +1258 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/readerc.go +434 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/resolve.go +326 -0 collapsed to keep the page light
A vendor/gopkg.in/yaml.v3/scannerc.go +3038 -0
| @@ -0,0 +1,3038 @@ | |||
| 1 | + | // | |
| 2 | + | // Copyright (c) 2011-2019 Canonical Ltd | |
| 3 | + | // Copyright (c) 2006-2010 Kirill Simonov | |
| 4 | + | // | |
| 5 | + | // Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| 6 | + | // this software and associated documentation files (the "Software"), to deal in | |
| 7 | + | // the Software without restriction, including without limitation the rights to | |
| 8 | + | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| 9 | + | // of the Software, and to permit persons to whom the Software is furnished to do | |
| 10 | + | // so, subject to the following conditions: | |
| 11 | + | // | |
| 12 | + | // The above copyright notice and this permission notice shall be included in all | |
| 13 | + | // copies or substantial portions of the Software. | |
| 14 | + | // | |
| 15 | + | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 16 | + | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 17 | + | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 18 | + | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 19 | + | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 20 | + | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 21 | + | // SOFTWARE. | |
| 22 | + | ||
| 23 | + | package yaml | |
| 24 | + | ||
| 25 | + | import ( | |
| 26 | + | "bytes" | |
| 27 | + | "fmt" | |
| 28 | + | ) | |
| 29 | + | ||
| 30 | + | // Introduction | |
| 31 | + | // ************ | |
| 32 | + | // | |
| 33 | + | // The following notes assume that you are familiar with the YAML specification | |
| 34 | + | // (http://yaml.org/spec/1.2/spec.html). We mostly follow it, although in | |
| 35 | + | // some cases we are less restrictive that it requires. | |
| 36 | + | // | |
| 37 | + | // The process of transforming a YAML stream into a sequence of events is | |
| 38 | + | // divided on two steps: Scanning and Parsing. | |
| 39 | + | // | |
| 40 | + | // The Scanner transforms the input stream into a sequence of tokens, while the | |
| 41 | + | // parser transform the sequence of tokens produced by the Scanner into a | |
| 42 | + | // sequence of parsing events. | |
| 43 | + | // | |
| 44 | + | // The Scanner is rather clever and complicated. The Parser, on the contrary, | |
| 45 | + | // is a straightforward implementation of a recursive-descendant parser (or, | |
| 46 | + | // LL(1) parser, as it is usually called). | |
| 47 | + | // | |
| 48 | + | // Actually there are two issues of Scanning that might be called "clever", the | |
| 49 | + | // rest is quite straightforward. The issues are "block collection start" and | |
| 50 | + | // "simple keys". Both issues are explained below in details. | |
| 51 | + | // | |
| 52 | + | // Here the Scanning step is explained and implemented. We start with the list | |
| 53 | + | // of all the tokens produced by the Scanner together with short descriptions. | |
| 54 | + | // | |
| 55 | + | // Now, tokens: | |
| 56 | + | // | |
| 57 | + | // STREAM-START(encoding) # The stream start. | |
| 58 | + | // STREAM-END # The stream end. | |
| 59 | + | // VERSION-DIRECTIVE(major,minor) # The '%YAML' directive. | |
| 60 | + | // TAG-DIRECTIVE(handle,prefix) # The '%TAG' directive. | |
| 61 | + | // DOCUMENT-START # '---' | |
| 62 | + | // DOCUMENT-END # '...' | |
| 63 | + | // BLOCK-SEQUENCE-START # Indentation increase denoting a block | |
| 64 | + | // BLOCK-MAPPING-START # sequence or a block mapping. | |
| 65 | + | // BLOCK-END # Indentation decrease. | |
| 66 | + | // FLOW-SEQUENCE-START # '[' | |
| 67 | + | // FLOW-SEQUENCE-END # ']' | |
| 68 | + | // BLOCK-SEQUENCE-START # '{' | |
| 69 | + | // BLOCK-SEQUENCE-END # '}' | |
| 70 | + | // BLOCK-ENTRY # '-' | |
| 71 | + | // FLOW-ENTRY # ',' | |
| 72 | + | // KEY # '?' or nothing (simple keys). | |
| 73 | + | // VALUE # ':' | |
| 74 | + | // ALIAS(anchor) # '*anchor' | |
| 75 | + | // ANCHOR(anchor) # '&anchor' | |
| 76 | + | // TAG(handle,suffix) # '!handle!suffix' | |
| 77 | + | // SCALAR(value,style) # A scalar. | |
| 78 | + | // | |
| 79 | + | // The following two tokens are "virtual" tokens denoting the beginning and the | |
| 80 | + | // end of the stream: | |
| 81 | + | // | |
| 82 | + | // STREAM-START(encoding) | |
| 83 | + | // STREAM-END | |
| 84 | + | // | |
| 85 | + | // We pass the information about the input stream encoding with the | |
| 86 | + | // STREAM-START token. | |
| 87 | + | // | |
| 88 | + | // The next two tokens are responsible for tags: | |
| 89 | + | // | |
| 90 | + | // VERSION-DIRECTIVE(major,minor) | |
| 91 | + | // TAG-DIRECTIVE(handle,prefix) | |
| 92 | + | // | |
| 93 | + | // Example: | |
| 94 | + | // | |
| 95 | + | // %YAML 1.1 | |
| 96 | + | // %TAG ! !foo | |
| 97 | + | // %TAG !yaml! tag:yaml.org,2002: | |
| 98 | + | // --- | |
| 99 | + | // | |
| 100 | + | // The correspoding sequence of tokens: | |
| 101 | + | // | |
| 102 | + | // STREAM-START(utf-8) | |
| 103 | + | // VERSION-DIRECTIVE(1,1) | |
| 104 | + | // TAG-DIRECTIVE("!","!foo") | |
| 105 | + | // TAG-DIRECTIVE("!yaml","tag:yaml.org,2002:") | |
| 106 | + | // DOCUMENT-START | |
| 107 | + | // STREAM-END | |
| 108 | + | // | |
| 109 | + | // Note that the VERSION-DIRECTIVE and TAG-DIRECTIVE tokens occupy a whole | |
| 110 | + | // line. | |
| 111 | + | // | |
| 112 | + | // The document start and end indicators are represented by: | |
| 113 | + | // | |
| 114 | + | // DOCUMENT-START | |
| 115 | + | // DOCUMENT-END | |
| 116 | + | // | |
| 117 | + | // Note that if a YAML stream contains an implicit document (without '---' | |
| 118 | + | // and '...' indicators), no DOCUMENT-START and DOCUMENT-END tokens will be | |
| 119 | + | // produced. | |
| 120 | + | // | |
| 121 | + | // In the following examples, we present whole documents together with the | |
| 122 | + | // produced tokens. | |
| 123 | + | // | |
| 124 | + | // 1. An implicit document: | |
| 125 | + | // | |
| 126 | + | // 'a scalar' | |
| 127 | + | // | |
| 128 | + | // Tokens: | |
| 129 | + | // | |
| 130 | + | // STREAM-START(utf-8) | |
| 131 | + | // SCALAR("a scalar",single-quoted) | |
| 132 | + | // STREAM-END | |
| 133 | + | // | |
| 134 | + | // 2. An explicit document: | |
| 135 | + | // | |
| 136 | + | // --- | |
| 137 | + | // 'a scalar' | |
| 138 | + | // ... | |
| 139 | + | // | |
| 140 | + | // Tokens: | |
| 141 | + | // | |
| 142 | + | // STREAM-START(utf-8) | |
| 143 | + | // DOCUMENT-START | |
| 144 | + | // SCALAR("a scalar",single-quoted) | |
| 145 | + | // DOCUMENT-END | |
| 146 | + | // STREAM-END | |
| 147 | + | // | |
| 148 | + | // 3. Several documents in a stream: | |
| 149 | + | // | |
| 150 | + | // 'a scalar' | |
| 151 | + | // --- | |
| 152 | + | // 'another scalar' | |
| 153 | + | // --- | |
| 154 | + | // 'yet another scalar' | |
| 155 | + | // | |
| 156 | + | // Tokens: | |
| 157 | + | // | |
| 158 | + | // STREAM-START(utf-8) | |
| 159 | + | // SCALAR("a scalar",single-quoted) | |
| 160 | + | // DOCUMENT-START | |
| 161 | + | // SCALAR("another scalar",single-quoted) | |
| 162 | + | // DOCUMENT-START | |
| 163 | + | // SCALAR("yet another scalar",single-quoted) | |
| 164 | + | // STREAM-END | |
| 165 | + | // | |
| 166 | + | // We have already introduced the SCALAR token above. The following tokens are | |
| 167 | + | // used to describe aliases, anchors, tag, and scalars: | |
| 168 | + | // | |
| 169 | + | // ALIAS(anchor) | |
| 170 | + | // ANCHOR(anchor) | |
| 171 | + | // TAG(handle,suffix) | |
| 172 | + | // SCALAR(value,style) | |
| 173 | + | // | |
| 174 | + | // The following series of examples illustrate the usage of these tokens: | |
| 175 | + | // | |
| 176 | + | // 1. A recursive sequence: | |
| 177 | + | // | |
| 178 | + | // &A [ *A ] | |
| 179 | + | // | |
| 180 | + | // Tokens: | |
| 181 | + | // | |
| 182 | + | // STREAM-START(utf-8) | |
| 183 | + | // ANCHOR("A") | |
| 184 | + | // FLOW-SEQUENCE-START | |
| 185 | + | // ALIAS("A") | |
| 186 | + | // FLOW-SEQUENCE-END | |
| 187 | + | // STREAM-END | |
| 188 | + | // | |
| 189 | + | // 2. A tagged scalar: | |
| 190 | + | // | |
| 191 | + | // !!float "3.14" # A good approximation. | |
| 192 | + | // | |
| 193 | + | // Tokens: | |
| 194 | + | // | |
| 195 | + | // STREAM-START(utf-8) | |
| 196 | + | // TAG("!!","float") | |
| 197 | + | // SCALAR("3.14",double-quoted) | |
| 198 | + | // STREAM-END | |
| 199 | + | // | |
| 200 | + | // 3. Various scalar styles: | |
| 201 | + | // | |
| 202 | + | // --- # Implicit empty plain scalars do not produce tokens. | |
| 203 | + | // --- a plain scalar | |
| 204 | + | // --- 'a single-quoted scalar' | |
| 205 | + | // --- "a double-quoted scalar" | |
| 206 | + | // --- |- | |
| 207 | + | // a literal scalar | |
| 208 | + | // --- >- | |
| 209 | + | // a folded | |
| 210 | + | // scalar | |
| 211 | + | // | |
| 212 | + | // Tokens: | |
| 213 | + | // | |
| 214 | + | // STREAM-START(utf-8) | |
| 215 | + | // DOCUMENT-START | |
| 216 | + | // DOCUMENT-START | |
| 217 | + | // SCALAR("a plain scalar",plain) | |
| 218 | + | // DOCUMENT-START | |
| 219 | + | // SCALAR("a single-quoted scalar",single-quoted) | |
| 220 | + | // DOCUMENT-START | |
| 221 | + | // SCALAR("a double-quoted scalar",double-quoted) | |
| 222 | + | // DOCUMENT-START | |
| 223 | + | // SCALAR("a literal scalar",literal) | |
| 224 | + | // DOCUMENT-START | |
| 225 | + | // SCALAR("a folded scalar",folded) | |
| 226 | + | // STREAM-END | |
| 227 | + | // | |
| 228 | + | // Now it's time to review collection-related tokens. We will start with | |
| 229 | + | // flow collections: | |
| 230 | + | // | |
| 231 | + | // FLOW-SEQUENCE-START | |
| 232 | + | // FLOW-SEQUENCE-END | |
| 233 | + | // FLOW-MAPPING-START | |
| 234 | + | // FLOW-MAPPING-END | |
| 235 | + | // FLOW-ENTRY | |
| 236 | + | // KEY | |
| 237 | + | // VALUE | |
| 238 | + | // | |
| 239 | + | // The tokens FLOW-SEQUENCE-START, FLOW-SEQUENCE-END, FLOW-MAPPING-START, and | |
| 240 | + | // FLOW-MAPPING-END represent the indicators '[', ']', '{', and '}' | |
| 241 | + | // correspondingly. FLOW-ENTRY represent the ',' indicator. Finally the | |
| 242 | + | // indicators '?' and ':', which are used for denoting mapping keys and values, | |
| 243 | + | // are represented by the KEY and VALUE tokens. | |
| 244 | + | // | |
| 245 | + | // The following examples show flow collections: | |
| 246 | + | // | |
| 247 | + | // 1. A flow sequence: | |
| 248 | + | // | |
| 249 | + | // [item 1, item 2, item 3] | |
| 250 | + | // | |
| 251 | + | // Tokens: | |
| 252 | + | // | |
| 253 | + | // STREAM-START(utf-8) | |
| 254 | + | // FLOW-SEQUENCE-START | |
| 255 | + | // SCALAR("item 1",plain) | |
| 256 | + | // FLOW-ENTRY | |
| 257 | + | // SCALAR("item 2",plain) | |
| 258 | + | // FLOW-ENTRY | |
| 259 | + | // SCALAR("item 3",plain) | |
| 260 | + | // FLOW-SEQUENCE-END | |
| 261 | + | // STREAM-END | |
| 262 | + | // | |
| 263 | + | // 2. A flow mapping: | |
| 264 | + | // | |
| 265 | + | // { | |
| 266 | + | // a simple key: a value, # Note that the KEY token is produced. | |
| 267 | + | // ? a complex key: another value, | |
| 268 | + | // } | |
| 269 | + | // | |
| 270 | + | // Tokens: | |
| 271 | + | // | |
| 272 | + | // STREAM-START(utf-8) | |
| 273 | + | // FLOW-MAPPING-START | |
| 274 | + | // KEY | |
| 275 | + | // SCALAR("a simple key",plain) | |
| 276 | + | // VALUE | |
| 277 | + | // SCALAR("a value",plain) | |
| 278 | + | // FLOW-ENTRY | |
| 279 | + | // KEY | |
| 280 | + | // SCALAR("a complex key",plain) | |
| 281 | + | // VALUE | |
| 282 | + | // SCALAR("another value",plain) | |
| 283 | + | // FLOW-ENTRY | |
| 284 | + | // FLOW-MAPPING-END | |
| 285 | + | // STREAM-END | |
| 286 | + | // | |
| 287 | + | // A simple key is a key which is not denoted by the '?' indicator. Note that | |
| 288 | + | // the Scanner still produce the KEY token whenever it encounters a simple key. | |
| 289 | + | // | |
| 290 | + | // For scanning block collections, the following tokens are used (note that we | |
| 291 | + | // repeat KEY and VALUE here): | |
| 292 | + | // | |
| 293 | + | // BLOCK-SEQUENCE-START | |
| 294 | + | // BLOCK-MAPPING-START | |
| 295 | + | // BLOCK-END | |
| 296 | + | // BLOCK-ENTRY | |
| 297 | + | // KEY | |
| 298 | + | // VALUE | |
| 299 | + | // | |
| 300 | + | // The tokens BLOCK-SEQUENCE-START and BLOCK-MAPPING-START denote indentation | |
| 301 | + | // increase that precedes a block collection (cf. the INDENT token in Python). | |
| 302 | + | // The token BLOCK-END denote indentation decrease that ends a block collection | |
| 303 | + | // (cf. the DEDENT token in Python). However YAML has some syntax pecularities | |
| 304 | + | // that makes detections of these tokens more complex. | |
| 305 | + | // | |
| 306 | + | // The tokens BLOCK-ENTRY, KEY, and VALUE are used to represent the indicators | |
| 307 | + | // '-', '?', and ':' correspondingly. | |
| 308 | + | // | |
| 309 | + | // The following examples show how the tokens BLOCK-SEQUENCE-START, | |
| 310 | + | // BLOCK-MAPPING-START, and BLOCK-END are emitted by the Scanner: | |
| 311 | + | // | |
| 312 | + | // 1. Block sequences: | |
| 313 | + | // | |
| 314 | + | // - item 1 | |
| 315 | + | // - item 2 | |
| 316 | + | // - | |
| 317 | + | // - item 3.1 | |
| 318 | + | // - item 3.2 | |
| 319 | + | // - | |
| 320 | + | // key 1: value 1 | |
| 321 | + | // key 2: value 2 | |
| 322 | + | // | |
| 323 | + | // Tokens: | |
| 324 | + | // | |
| 325 | + | // STREAM-START(utf-8) | |
| 326 | + | // BLOCK-SEQUENCE-START | |
| 327 | + | // BLOCK-ENTRY | |
| 328 | + | // SCALAR("item 1",plain) | |
| 329 | + | // BLOCK-ENTRY | |
| 330 | + | // SCALAR("item 2",plain) | |
| 331 | + | // BLOCK-ENTRY | |
| 332 | + | // BLOCK-SEQUENCE-START | |
| 333 | + | // BLOCK-ENTRY | |
| 334 | + | // SCALAR("item 3.1",plain) | |
| 335 | + | // BLOCK-ENTRY | |
| 336 | + | // SCALAR("item 3.2",plain) | |
| 337 | + | // BLOCK-END | |
| 338 | + | // BLOCK-ENTRY | |
| 339 | + | // BLOCK-MAPPING-START | |
| 340 | + | // KEY | |
| 341 | + | // SCALAR("key 1",plain) | |
| 342 | + | // VALUE | |
| 343 | + | // SCALAR("value 1",plain) | |
| 344 | + | // KEY | |
| 345 | + | // SCALAR("key 2",plain) | |
| 346 | + | // VALUE | |
| 347 | + | // SCALAR("value 2",plain) | |
| 348 | + | // BLOCK-END | |
| 349 | + | // BLOCK-END | |
| 350 | + | // STREAM-END | |
| 351 | + | // | |
| 352 | + | // 2. Block mappings: | |
| 353 | + | // | |
| 354 | + | // a simple key: a value # The KEY token is produced here. | |
| 355 | + | // ? a complex key | |
| 356 | + | // : another value | |
| 357 | + | // a mapping: | |
| 358 | + | // key 1: value 1 | |
| 359 | + | // key 2: value 2 | |
| 360 | + | // a sequence: | |
| 361 | + | // - item 1 | |
| 362 | + | // - item 2 | |
| 363 | + | // | |
| 364 | + | // Tokens: | |
| 365 | + | // | |
| 366 | + | // STREAM-START(utf-8) | |
| 367 | + | // BLOCK-MAPPING-START | |
| 368 | + | // KEY | |
| 369 | + | // SCALAR("a simple key",plain) | |
| 370 | + | // VALUE | |
| 371 | + | // SCALAR("a value",plain) | |
| 372 | + | // KEY | |
| 373 | + | // SCALAR("a complex key",plain) | |
| 374 | + | // VALUE | |
| 375 | + | // SCALAR("another value",plain) | |
| 376 | + | // KEY | |
| 377 | + | // SCALAR("a mapping",plain) | |
| 378 | + | // BLOCK-MAPPING-START | |
| 379 | + | // KEY | |
| 380 | + | // SCALAR("key 1",plain) | |
| 381 | + | // VALUE | |
| 382 | + | // SCALAR("value 1",plain) | |
| 383 | + | // KEY | |
| 384 | + | // SCALAR("key 2",plain) | |
| 385 | + | // VALUE | |
| 386 | + | // SCALAR("value 2",plain) | |
| 387 | + | // BLOCK-END | |
| 388 | + | // KEY | |
| 389 | + | // SCALAR("a sequence",plain) | |
| 390 | + | // VALUE | |
| 391 | + | // BLOCK-SEQUENCE-START | |
| 392 | + | // BLOCK-ENTRY | |
| 393 | + | // SCALAR("item 1",plain) | |
| 394 | + | // BLOCK-ENTRY | |
| 395 | + | // SCALAR("item 2",plain) | |
| 396 | + | // BLOCK-END | |
| 397 | + | // BLOCK-END | |
| 398 | + | // STREAM-END | |
| 399 | + | // | |
| 400 | + | // YAML does not always require to start a new block collection from a new | |
| 401 | + | // line. If the current line contains only '-', '?', and ':' indicators, a new | |
| 402 | + | // block collection may start at the current line. The following examples | |
| 403 | + | // illustrate this case: | |
| 404 | + | // | |
| 405 | + | // 1. Collections in a sequence: | |
| 406 | + | // | |
| 407 | + | // - - item 1 | |
| 408 | + | // - item 2 | |
| 409 | + | // - key 1: value 1 | |
| 410 | + | // key 2: value 2 | |
| 411 | + | // - ? complex key | |
| 412 | + | // : complex value | |
| 413 | + | // | |
| 414 | + | // Tokens: | |
| 415 | + | // | |
| 416 | + | // STREAM-START(utf-8) | |
| 417 | + | // BLOCK-SEQUENCE-START | |
| 418 | + | // BLOCK-ENTRY | |
| 419 | + | // BLOCK-SEQUENCE-START | |
| 420 | + | // BLOCK-ENTRY | |
| 421 | + | // SCALAR("item 1",plain) | |
| 422 | + | // BLOCK-ENTRY | |
| 423 | + | // SCALAR("item 2",plain) | |
| 424 | + | // BLOCK-END | |
| 425 | + | // BLOCK-ENTRY | |
| 426 | + | // BLOCK-MAPPING-START | |
| 427 | + | // KEY | |
| 428 | + | // SCALAR("key 1",plain) | |
| 429 | + | // VALUE | |
| 430 | + | // SCALAR("value 1",plain) | |
| 431 | + | // KEY | |
| 432 | + | // SCALAR("key 2",plain) | |
| 433 | + | // VALUE | |
| 434 | + | // SCALAR("value 2",plain) | |
| 435 | + | // BLOCK-END | |
| 436 | + | // BLOCK-ENTRY | |
| 437 | + | // BLOCK-MAPPING-START | |
| 438 | + | // KEY | |
| 439 | + | // SCALAR("complex key") | |
| 440 | + | // VALUE | |
| 441 | + | // SCALAR("complex value") | |
| 442 | + | // BLOCK-END | |
| 443 | + | // BLOCK-END | |
| 444 | + | // STREAM-END | |
| 445 | + | // | |
| 446 | + | // 2. Collections in a mapping: | |
| 447 | + | // | |
| 448 | + | // ? a sequence | |
| 449 | + | // : - item 1 | |
| 450 | + | // - item 2 | |
| 451 | + | // ? a mapping | |
| 452 | + | // : key 1: value 1 | |
| 453 | + | // key 2: value 2 | |
| 454 | + | // | |
| 455 | + | // Tokens: | |
| 456 | + | // | |
| 457 | + | // STREAM-START(utf-8) | |
| 458 | + | // BLOCK-MAPPING-START | |
| 459 | + | // KEY | |
| 460 | + | // SCALAR("a sequence",plain) | |
| 461 | + | // VALUE | |
| 462 | + | // BLOCK-SEQUENCE-START | |
| 463 | + | // BLOCK-ENTRY | |
| 464 | + | // SCALAR("item 1",plain) | |
| 465 | + | // BLOCK-ENTRY | |
| 466 | + | // SCALAR("item 2",plain) | |
| 467 | + | // BLOCK-END | |
| 468 | + | // KEY | |
| 469 | + | // SCALAR("a mapping",plain) | |
| 470 | + | // VALUE | |
| 471 | + | // BLOCK-MAPPING-START | |
| 472 | + | // KEY | |
| 473 | + | // SCALAR("key 1",plain) | |
| 474 | + | // VALUE | |
| 475 | + | // SCALAR("value 1",plain) | |
| 476 | + | // KEY | |
| 477 | + | // SCALAR("key 2",plain) | |
| 478 | + | // VALUE | |
| 479 | + | // SCALAR("value 2",plain) | |
| 480 | + | // BLOCK-END | |
| 481 | + | // BLOCK-END | |
| 482 | + | // STREAM-END | |
| 483 | + | // | |
| 484 | + | // YAML also permits non-indented sequences if they are included into a block | |
| 485 | + | // mapping. In this case, the token BLOCK-SEQUENCE-START is not produced: | |
| 486 | + | // | |
| 487 | + | // key: | |
| 488 | + | // - item 1 # BLOCK-SEQUENCE-START is NOT produced here. | |
| 489 | + | // - item 2 | |
| 490 | + | // | |
| 491 | + | // Tokens: | |
| 492 | + | // | |
| 493 | + | // STREAM-START(utf-8) | |
| 494 | + | // BLOCK-MAPPING-START | |
| 495 | + | // KEY | |
| 496 | + | // SCALAR("key",plain) | |
| 497 | + | // VALUE | |
| 498 | + | // BLOCK-ENTRY | |
| 499 | + | // SCALAR("item 1",plain) | |
| 500 | + | // BLOCK-ENTRY | |
| 501 | + | // SCALAR("item 2",plain) | |
| 502 | + | // BLOCK-END | |
| 503 | + | // | |
| 504 | + | ||
| 505 | + | // Ensure that the buffer contains the required number of characters. | |
| 506 | + | // Return true on success, false on failure (reader error or memory error). | |
| 507 | + | func cache(parser *yaml_parser_t, length int) bool { | |
| 508 | + | // [Go] This was inlined: !cache(A, B) -> unread < B && !update(A, B) | |
| 509 | + | return parser.unread >= length || yaml_parser_update_buffer(parser, length) | |
| 510 | + | } | |
| 511 | + | ||
| 512 | + | // Advance the buffer pointer. | |
| 513 | + | func skip(parser *yaml_parser_t) { | |
| 514 | + | if !is_blank(parser.buffer, parser.buffer_pos) { | |
| 515 | + | parser.newlines = 0 | |
| 516 | + | } | |
| 517 | + | parser.mark.index++ | |
| 518 | + | parser.mark.column++ | |
| 519 | + | parser.unread-- | |
| 520 | + | parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) | |
| 521 | + | } | |
| 522 | + | ||
| 523 | + | func skip_line(parser *yaml_parser_t) { | |
| 524 | + | if is_crlf(parser.buffer, parser.buffer_pos) { | |
| 525 | + | parser.mark.index += 2 | |
| 526 | + | parser.mark.column = 0 | |
| 527 | + | parser.mark.line++ | |
| 528 | + | parser.unread -= 2 | |
| 529 | + | parser.buffer_pos += 2 | |
| 530 | + | parser.newlines++ | |
| 531 | + | } else if is_break(parser.buffer, parser.buffer_pos) { | |
| 532 | + | parser.mark.index++ | |
| 533 | + | parser.mark.column = 0 | |
| 534 | + | parser.mark.line++ | |
| 535 | + | parser.unread-- | |
| 536 | + | parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) | |
| 537 | + | parser.newlines++ | |
| 538 | + | } | |
| 539 | + | } | |
| 540 | + | ||
| 541 | + | // Copy a character to a string buffer and advance pointers. | |
| 542 | + | func read(parser *yaml_parser_t, s []byte) []byte { | |
| 543 | + | if !is_blank(parser.buffer, parser.buffer_pos) { | |
| 544 | + | parser.newlines = 0 | |
| 545 | + | } | |
| 546 | + | w := width(parser.buffer[parser.buffer_pos]) | |
| 547 | + | if w == 0 { | |
| 548 | + | panic("invalid character sequence") | |
| 549 | + | } | |
| 550 | + | if len(s) == 0 { | |
| 551 | + | s = make([]byte, 0, 32) | |
| 552 | + | } | |
| 553 | + | if w == 1 && len(s)+w <= cap(s) { | |
| 554 | + | s = s[:len(s)+1] | |
| 555 | + | s[len(s)-1] = parser.buffer[parser.buffer_pos] | |
| 556 | + | parser.buffer_pos++ | |
| 557 | + | } else { | |
| 558 | + | s = append(s, parser.buffer[parser.buffer_pos:parser.buffer_pos+w]...) | |
| 559 | + | parser.buffer_pos += w | |
| 560 | + | } | |
| 561 | + | parser.mark.index++ | |
| 562 | + | parser.mark.column++ | |
| 563 | + | parser.unread-- | |
| 564 | + | return s | |
| 565 | + | } | |
| 566 | + | ||
| 567 | + | // Copy a line break character to a string buffer and advance pointers. | |
| 568 | + | func read_line(parser *yaml_parser_t, s []byte) []byte { | |
| 569 | + | buf := parser.buffer | |
| 570 | + | pos := parser.buffer_pos | |
| 571 | + | switch { | |
| 572 | + | case buf[pos] == '\r' && buf[pos+1] == '\n': | |
| 573 | + | // CR LF . LF | |
| 574 | + | s = append(s, '\n') | |
| 575 | + | parser.buffer_pos += 2 | |
| 576 | + | parser.mark.index++ | |
| 577 | + | parser.unread-- | |
| 578 | + | case buf[pos] == '\r' || buf[pos] == '\n': | |
| 579 | + | // CR|LF . LF | |
| 580 | + | s = append(s, '\n') | |
| 581 | + | parser.buffer_pos += 1 | |
| 582 | + | case buf[pos] == '\xC2' && buf[pos+1] == '\x85': | |
| 583 | + | // NEL . LF | |
| 584 | + | s = append(s, '\n') | |
| 585 | + | parser.buffer_pos += 2 | |
| 586 | + | case buf[pos] == '\xE2' && buf[pos+1] == '\x80' && (buf[pos+2] == '\xA8' || buf[pos+2] == '\xA9'): | |
| 587 | + | // LS|PS . LS|PS | |
| 588 | + | s = append(s, buf[parser.buffer_pos:pos+3]...) | |
| 589 | + | parser.buffer_pos += 3 | |
| 590 | + | default: | |
| 591 | + | return s | |
| 592 | + | } | |
| 593 | + | parser.mark.index++ | |
| 594 | + | parser.mark.column = 0 | |
| 595 | + | parser.mark.line++ | |
| 596 | + | parser.unread-- | |
| 597 | + | parser.newlines++ | |
| 598 | + | return s | |
| 599 | + | } | |
| 600 | + | ||
| 601 | + | // Get the next token. | |
| 602 | + | func yaml_parser_scan(parser *yaml_parser_t, token *yaml_token_t) bool { | |
| 603 | + | // Erase the token object. | |
| 604 | + | *token = yaml_token_t{} // [Go] Is this necessary? | |
| 605 | + | ||
| 606 | + | // No tokens after STREAM-END or error. | |
| 607 | + | if parser.stream_end_produced || parser.error != yaml_NO_ERROR { | |
| 608 | + | return true | |
| 609 | + | } | |
| 610 | + | ||
| 611 | + | // Ensure that the tokens queue contains enough tokens. | |
| 612 | + | if !parser.token_available { | |
| 613 | + | if !yaml_parser_fetch_more_tokens(parser) { | |
| 614 | + | return false | |
| 615 | + | } | |
| 616 | + | } | |
| 617 | + | ||
| 618 | + | // Fetch the next token from the queue. | |
| 619 | + | *token = parser.tokens[parser.tokens_head] | |
| 620 | + | parser.tokens_head++ | |
| 621 | + | parser.tokens_parsed++ | |
| 622 | + | parser.token_available = false | |
| 623 | + | ||
| 624 | + | if token.typ == yaml_STREAM_END_TOKEN { | |
| 625 | + | parser.stream_end_produced = true | |
| 626 | + | } | |
| 627 | + | return true | |
| 628 | + | } | |
| 629 | + | ||
| 630 | + | // Set the scanner error and return false. | |
| 631 | + | func yaml_parser_set_scanner_error(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string) bool { | |
| 632 | + | parser.error = yaml_SCANNER_ERROR | |
| 633 | + | parser.context = context | |
| 634 | + | parser.context_mark = context_mark | |
| 635 | + | parser.problem = problem | |
| 636 | + | parser.problem_mark = parser.mark | |
| 637 | + | return false | |
| 638 | + | } | |
| 639 | + | ||
| 640 | + | func yaml_parser_set_scanner_tag_error(parser *yaml_parser_t, directive bool, context_mark yaml_mark_t, problem string) bool { | |
| 641 | + | context := "while parsing a tag" | |
| 642 | + | if directive { | |
| 643 | + | context = "while parsing a %TAG directive" | |
| 644 | + | } | |
| 645 | + | return yaml_parser_set_scanner_error(parser, context, context_mark, problem) | |
| 646 | + | } | |
| 647 | + | ||
| 648 | + | func trace(args ...interface{}) func() { | |
| 649 | + | pargs := append([]interface{}{"+++"}, args...) | |
| 650 | + | fmt.Println(pargs...) | |
| 651 | + | pargs = append([]interface{}{"---"}, args...) | |
| 652 | + | return func() { fmt.Println(pargs...) } | |
| 653 | + | } | |
| 654 | + | ||
| 655 | + | // Ensure that the tokens queue contains at least one token which can be | |
| 656 | + | // returned to the Parser. | |
| 657 | + | func yaml_parser_fetch_more_tokens(parser *yaml_parser_t) bool { | |
| 658 | + | // While we need more tokens to fetch, do it. | |
| 659 | + | for { | |
| 660 | + | // [Go] The comment parsing logic requires a lookahead of two tokens | |
| 661 | + | // so that foot comments may be parsed in time of associating them | |
| 662 | + | // with the tokens that are parsed before them, and also for line | |
| 663 | + | // comments to be transformed into head comments in some edge cases. | |
| 664 | + | if parser.tokens_head < len(parser.tokens)-2 { | |
| 665 | + | // If a potential simple key is at the head position, we need to fetch | |
| 666 | + | // the next token to disambiguate it. | |
| 667 | + | head_tok_idx, ok := parser.simple_keys_by_tok[parser.tokens_parsed] | |
| 668 | + | if !ok { | |
| 669 | + | break | |
| 670 | + | } else if valid, ok := yaml_simple_key_is_valid(parser, &parser.simple_keys[head_tok_idx]); !ok { | |
| 671 | + | return false | |
| 672 | + | } else if !valid { | |
| 673 | + | break | |
| 674 | + | } | |
| 675 | + | } | |
| 676 | + | // Fetch the next token. | |
| 677 | + | if !yaml_parser_fetch_next_token(parser) { | |
| 678 | + | return false | |
| 679 | + | } | |
| 680 | + | } | |
| 681 | + | ||
| 682 | + | parser.token_available = true | |
| 683 | + | return true | |
| 684 | + | } | |
| 685 | + | ||
| 686 | + | // The dispatcher for token fetchers. | |
| 687 | + | func yaml_parser_fetch_next_token(parser *yaml_parser_t) (ok bool) { | |
| 688 | + | // Ensure that the buffer is initialized. | |
| 689 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 690 | + | return false | |
| 691 | + | } | |
| 692 | + | ||
| 693 | + | // Check if we just started scanning. Fetch STREAM-START then. | |
| 694 | + | if !parser.stream_start_produced { | |
| 695 | + | return yaml_parser_fetch_stream_start(parser) | |
| 696 | + | } | |
| 697 | + | ||
| 698 | + | scan_mark := parser.mark | |
| 699 | + | ||
| 700 | + | // Eat whitespaces and comments until we reach the next token. | |
| 701 | + | if !yaml_parser_scan_to_next_token(parser) { | |
| 702 | + | return false | |
| 703 | + | } | |
| 704 | + | ||
| 705 | + | // [Go] While unrolling indents, transform the head comments of prior | |
| 706 | + | // indentation levels observed after scan_start into foot comments at | |
| 707 | + | // the respective indexes. | |
| 708 | + | ||
| 709 | + | // Check the indentation level against the current column. | |
| 710 | + | if !yaml_parser_unroll_indent(parser, parser.mark.column, scan_mark) { | |
| 711 | + | return false | |
| 712 | + | } | |
| 713 | + | ||
| 714 | + | // Ensure that the buffer contains at least 4 characters. 4 is the length | |
| 715 | + | // of the longest indicators ('--- ' and '... '). | |
| 716 | + | if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { | |
| 717 | + | return false | |
| 718 | + | } | |
| 719 | + | ||
| 720 | + | // Is it the end of the stream? | |
| 721 | + | if is_z(parser.buffer, parser.buffer_pos) { | |
| 722 | + | return yaml_parser_fetch_stream_end(parser) | |
| 723 | + | } | |
| 724 | + | ||
| 725 | + | // Is it a directive? | |
| 726 | + | if parser.mark.column == 0 && parser.buffer[parser.buffer_pos] == '%' { | |
| 727 | + | return yaml_parser_fetch_directive(parser) | |
| 728 | + | } | |
| 729 | + | ||
| 730 | + | buf := parser.buffer | |
| 731 | + | pos := parser.buffer_pos | |
| 732 | + | ||
| 733 | + | // Is it the document start indicator? | |
| 734 | + | if parser.mark.column == 0 && buf[pos] == '-' && buf[pos+1] == '-' && buf[pos+2] == '-' && is_blankz(buf, pos+3) { | |
| 735 | + | return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_START_TOKEN) | |
| 736 | + | } | |
| 737 | + | ||
| 738 | + | // Is it the document end indicator? | |
| 739 | + | if parser.mark.column == 0 && buf[pos] == '.' && buf[pos+1] == '.' && buf[pos+2] == '.' && is_blankz(buf, pos+3) { | |
| 740 | + | return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_END_TOKEN) | |
| 741 | + | } | |
| 742 | + | ||
| 743 | + | comment_mark := parser.mark | |
| 744 | + | if len(parser.tokens) > 0 && (parser.flow_level == 0 && buf[pos] == ':' || parser.flow_level > 0 && buf[pos] == ',') { | |
| 745 | + | // Associate any following comments with the prior token. | |
| 746 | + | comment_mark = parser.tokens[len(parser.tokens)-1].start_mark | |
| 747 | + | } | |
| 748 | + | defer func() { | |
| 749 | + | if !ok { | |
| 750 | + | return | |
| 751 | + | } | |
| 752 | + | if len(parser.tokens) > 0 && parser.tokens[len(parser.tokens)-1].typ == yaml_BLOCK_ENTRY_TOKEN { | |
| 753 | + | // Sequence indicators alone have no line comments. It becomes | |
| 754 | + | // a head comment for whatever follows. | |
| 755 | + | return | |
| 756 | + | } | |
| 757 | + | if !yaml_parser_scan_line_comment(parser, comment_mark) { | |
| 758 | + | ok = false | |
| 759 | + | return | |
| 760 | + | } | |
| 761 | + | }() | |
| 762 | + | ||
| 763 | + | // Is it the flow sequence start indicator? | |
| 764 | + | if buf[pos] == '[' { | |
| 765 | + | return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_SEQUENCE_START_TOKEN) | |
| 766 | + | } | |
| 767 | + | ||
| 768 | + | // Is it the flow mapping start indicator? | |
| 769 | + | if parser.buffer[parser.buffer_pos] == '{' { | |
| 770 | + | return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_MAPPING_START_TOKEN) | |
| 771 | + | } | |
| 772 | + | ||
| 773 | + | // Is it the flow sequence end indicator? | |
| 774 | + | if parser.buffer[parser.buffer_pos] == ']' { | |
| 775 | + | return yaml_parser_fetch_flow_collection_end(parser, | |
| 776 | + | yaml_FLOW_SEQUENCE_END_TOKEN) | |
| 777 | + | } | |
| 778 | + | ||
| 779 | + | // Is it the flow mapping end indicator? | |
| 780 | + | if parser.buffer[parser.buffer_pos] == '}' { | |
| 781 | + | return yaml_parser_fetch_flow_collection_end(parser, | |
| 782 | + | yaml_FLOW_MAPPING_END_TOKEN) | |
| 783 | + | } | |
| 784 | + | ||
| 785 | + | // Is it the flow entry indicator? | |
| 786 | + | if parser.buffer[parser.buffer_pos] == ',' { | |
| 787 | + | return yaml_parser_fetch_flow_entry(parser) | |
| 788 | + | } | |
| 789 | + | ||
| 790 | + | // Is it the block entry indicator? | |
| 791 | + | if parser.buffer[parser.buffer_pos] == '-' && is_blankz(parser.buffer, parser.buffer_pos+1) { | |
| 792 | + | return yaml_parser_fetch_block_entry(parser) | |
| 793 | + | } | |
| 794 | + | ||
| 795 | + | // Is it the key indicator? | |
| 796 | + | if parser.buffer[parser.buffer_pos] == '?' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { | |
| 797 | + | return yaml_parser_fetch_key(parser) | |
| 798 | + | } | |
| 799 | + | ||
| 800 | + | // Is it the value indicator? | |
| 801 | + | if parser.buffer[parser.buffer_pos] == ':' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { | |
| 802 | + | return yaml_parser_fetch_value(parser) | |
| 803 | + | } | |
| 804 | + | ||
| 805 | + | // Is it an alias? | |
| 806 | + | if parser.buffer[parser.buffer_pos] == '*' { | |
| 807 | + | return yaml_parser_fetch_anchor(parser, yaml_ALIAS_TOKEN) | |
| 808 | + | } | |
| 809 | + | ||
| 810 | + | // Is it an anchor? | |
| 811 | + | if parser.buffer[parser.buffer_pos] == '&' { | |
| 812 | + | return yaml_parser_fetch_anchor(parser, yaml_ANCHOR_TOKEN) | |
| 813 | + | } | |
| 814 | + | ||
| 815 | + | // Is it a tag? | |
| 816 | + | if parser.buffer[parser.buffer_pos] == '!' { | |
| 817 | + | return yaml_parser_fetch_tag(parser) | |
| 818 | + | } | |
| 819 | + | ||
| 820 | + | // Is it a literal scalar? | |
| 821 | + | if parser.buffer[parser.buffer_pos] == '|' && parser.flow_level == 0 { | |
| 822 | + | return yaml_parser_fetch_block_scalar(parser, true) | |
| 823 | + | } | |
| 824 | + | ||
| 825 | + | // Is it a folded scalar? | |
| 826 | + | if parser.buffer[parser.buffer_pos] == '>' && parser.flow_level == 0 { | |
| 827 | + | return yaml_parser_fetch_block_scalar(parser, false) | |
| 828 | + | } | |
| 829 | + | ||
| 830 | + | // Is it a single-quoted scalar? | |
| 831 | + | if parser.buffer[parser.buffer_pos] == '\'' { | |
| 832 | + | return yaml_parser_fetch_flow_scalar(parser, true) | |
| 833 | + | } | |
| 834 | + | ||
| 835 | + | // Is it a double-quoted scalar? | |
| 836 | + | if parser.buffer[parser.buffer_pos] == '"' { | |
| 837 | + | return yaml_parser_fetch_flow_scalar(parser, false) | |
| 838 | + | } | |
| 839 | + | ||
| 840 | + | // Is it a plain scalar? | |
| 841 | + | // | |
| 842 | + | // A plain scalar may start with any non-blank characters except | |
| 843 | + | // | |
| 844 | + | // '-', '?', ':', ',', '[', ']', '{', '}', | |
| 845 | + | // '#', '&', '*', '!', '|', '>', '\'', '\"', | |
| 846 | + | // '%', '@', '`'. | |
| 847 | + | // | |
| 848 | + | // In the block context (and, for the '-' indicator, in the flow context | |
| 849 | + | // too), it may also start with the characters | |
| 850 | + | // | |
| 851 | + | // '-', '?', ':' | |
| 852 | + | // | |
| 853 | + | // if it is followed by a non-space character. | |
| 854 | + | // | |
| 855 | + | // The last rule is more restrictive than the specification requires. | |
| 856 | + | // [Go] TODO Make this logic more reasonable. | |
| 857 | + | //switch parser.buffer[parser.buffer_pos] { | |
| 858 | + | //case '-', '?', ':', ',', '?', '-', ',', ':', ']', '[', '}', '{', '&', '#', '!', '*', '>', '|', '"', '\'', '@', '%', '-', '`': | |
| 859 | + | //} | |
| 860 | + | if !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '-' || | |
| 861 | + | parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':' || | |
| 862 | + | parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '[' || | |
| 863 | + | parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || | |
| 864 | + | parser.buffer[parser.buffer_pos] == '}' || parser.buffer[parser.buffer_pos] == '#' || | |
| 865 | + | parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '*' || | |
| 866 | + | parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '|' || | |
| 867 | + | parser.buffer[parser.buffer_pos] == '>' || parser.buffer[parser.buffer_pos] == '\'' || | |
| 868 | + | parser.buffer[parser.buffer_pos] == '"' || parser.buffer[parser.buffer_pos] == '%' || | |
| 869 | + | parser.buffer[parser.buffer_pos] == '@' || parser.buffer[parser.buffer_pos] == '`') || | |
| 870 | + | (parser.buffer[parser.buffer_pos] == '-' && !is_blank(parser.buffer, parser.buffer_pos+1)) || | |
| 871 | + | (parser.flow_level == 0 && | |
| 872 | + | (parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':') && | |
| 873 | + | !is_blankz(parser.buffer, parser.buffer_pos+1)) { | |
| 874 | + | return yaml_parser_fetch_plain_scalar(parser) | |
| 875 | + | } | |
| 876 | + | ||
| 877 | + | // If we don't determine the token type so far, it is an error. | |
| 878 | + | return yaml_parser_set_scanner_error(parser, | |
| 879 | + | "while scanning for the next token", parser.mark, | |
| 880 | + | "found character that cannot start any token") | |
| 881 | + | } | |
| 882 | + | ||
| 883 | + | func yaml_simple_key_is_valid(parser *yaml_parser_t, simple_key *yaml_simple_key_t) (valid, ok bool) { | |
| 884 | + | if !simple_key.possible { | |
| 885 | + | return false, true | |
| 886 | + | } | |
| 887 | + | ||
| 888 | + | // The 1.2 specification says: | |
| 889 | + | // | |
| 890 | + | // "If the ? indicator is omitted, parsing needs to see past the | |
| 891 | + | // implicit key to recognize it as such. To limit the amount of | |
| 892 | + | // lookahead required, the “:” indicator must appear at most 1024 | |
| 893 | + | // Unicode characters beyond the start of the key. In addition, the key | |
| 894 | + | // is restricted to a single line." | |
| 895 | + | // | |
| 896 | + | if simple_key.mark.line < parser.mark.line || simple_key.mark.index+1024 < parser.mark.index { | |
| 897 | + | // Check if the potential simple key to be removed is required. | |
| 898 | + | if simple_key.required { | |
| 899 | + | return false, yaml_parser_set_scanner_error(parser, | |
| 900 | + | "while scanning a simple key", simple_key.mark, | |
| 901 | + | "could not find expected ':'") | |
| 902 | + | } | |
| 903 | + | simple_key.possible = false | |
| 904 | + | return false, true | |
| 905 | + | } | |
| 906 | + | return true, true | |
| 907 | + | } | |
| 908 | + | ||
| 909 | + | // Check if a simple key may start at the current position and add it if | |
| 910 | + | // needed. | |
| 911 | + | func yaml_parser_save_simple_key(parser *yaml_parser_t) bool { | |
| 912 | + | // A simple key is required at the current position if the scanner is in | |
| 913 | + | // the block context and the current column coincides with the indentation | |
| 914 | + | // level. | |
| 915 | + | ||
| 916 | + | required := parser.flow_level == 0 && parser.indent == parser.mark.column | |
| 917 | + | ||
| 918 | + | // | |
| 919 | + | // If the current position may start a simple key, save it. | |
| 920 | + | // | |
| 921 | + | if parser.simple_key_allowed { | |
| 922 | + | simple_key := yaml_simple_key_t{ | |
| 923 | + | possible: true, | |
| 924 | + | required: required, | |
| 925 | + | token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head), | |
| 926 | + | mark: parser.mark, | |
| 927 | + | } | |
| 928 | + | ||
| 929 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 930 | + | return false | |
| 931 | + | } | |
| 932 | + | parser.simple_keys[len(parser.simple_keys)-1] = simple_key | |
| 933 | + | parser.simple_keys_by_tok[simple_key.token_number] = len(parser.simple_keys) - 1 | |
| 934 | + | } | |
| 935 | + | return true | |
| 936 | + | } | |
| 937 | + | ||
| 938 | + | // Remove a potential simple key at the current flow level. | |
| 939 | + | func yaml_parser_remove_simple_key(parser *yaml_parser_t) bool { | |
| 940 | + | i := len(parser.simple_keys) - 1 | |
| 941 | + | if parser.simple_keys[i].possible { | |
| 942 | + | // If the key is required, it is an error. | |
| 943 | + | if parser.simple_keys[i].required { | |
| 944 | + | return yaml_parser_set_scanner_error(parser, | |
| 945 | + | "while scanning a simple key", parser.simple_keys[i].mark, | |
| 946 | + | "could not find expected ':'") | |
| 947 | + | } | |
| 948 | + | // Remove the key from the stack. | |
| 949 | + | parser.simple_keys[i].possible = false | |
| 950 | + | delete(parser.simple_keys_by_tok, parser.simple_keys[i].token_number) | |
| 951 | + | } | |
| 952 | + | return true | |
| 953 | + | } | |
| 954 | + | ||
| 955 | + | // max_flow_level limits the flow_level | |
| 956 | + | const max_flow_level = 10000 | |
| 957 | + | ||
| 958 | + | // Increase the flow level and resize the simple key list if needed. | |
| 959 | + | func yaml_parser_increase_flow_level(parser *yaml_parser_t) bool { | |
| 960 | + | // Reset the simple key on the next level. | |
| 961 | + | parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{ | |
| 962 | + | possible: false, | |
| 963 | + | required: false, | |
| 964 | + | token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head), | |
| 965 | + | mark: parser.mark, | |
| 966 | + | }) | |
| 967 | + | ||
| 968 | + | // Increase the flow level. | |
| 969 | + | parser.flow_level++ | |
| 970 | + | if parser.flow_level > max_flow_level { | |
| 971 | + | return yaml_parser_set_scanner_error(parser, | |
| 972 | + | "while increasing flow level", parser.simple_keys[len(parser.simple_keys)-1].mark, | |
| 973 | + | fmt.Sprintf("exceeded max depth of %d", max_flow_level)) | |
| 974 | + | } | |
| 975 | + | return true | |
| 976 | + | } | |
| 977 | + | ||
| 978 | + | // Decrease the flow level. | |
| 979 | + | func yaml_parser_decrease_flow_level(parser *yaml_parser_t) bool { | |
| 980 | + | if parser.flow_level > 0 { | |
| 981 | + | parser.flow_level-- | |
| 982 | + | last := len(parser.simple_keys) - 1 | |
| 983 | + | delete(parser.simple_keys_by_tok, parser.simple_keys[last].token_number) | |
| 984 | + | parser.simple_keys = parser.simple_keys[:last] | |
| 985 | + | } | |
| 986 | + | return true | |
| 987 | + | } | |
| 988 | + | ||
| 989 | + | // max_indents limits the indents stack size | |
| 990 | + | const max_indents = 10000 | |
| 991 | + | ||
| 992 | + | // Push the current indentation level to the stack and set the new level | |
| 993 | + | // the current column is greater than the indentation level. In this case, | |
| 994 | + | // append or insert the specified token into the token queue. | |
| 995 | + | func yaml_parser_roll_indent(parser *yaml_parser_t, column, number int, typ yaml_token_type_t, mark yaml_mark_t) bool { | |
| 996 | + | // In the flow context, do nothing. | |
| 997 | + | if parser.flow_level > 0 { | |
| 998 | + | return true | |
| 999 | + | } | |
| 1000 | + | ||
| 1001 | + | if parser.indent < column { | |
| 1002 | + | // Push the current indentation level to the stack and set the new | |
| 1003 | + | // indentation level. | |
| 1004 | + | parser.indents = append(parser.indents, parser.indent) | |
| 1005 | + | parser.indent = column | |
| 1006 | + | if len(parser.indents) > max_indents { | |
| 1007 | + | return yaml_parser_set_scanner_error(parser, | |
| 1008 | + | "while increasing indent level", parser.simple_keys[len(parser.simple_keys)-1].mark, | |
| 1009 | + | fmt.Sprintf("exceeded max depth of %d", max_indents)) | |
| 1010 | + | } | |
| 1011 | + | ||
| 1012 | + | // Create a token and insert it into the queue. | |
| 1013 | + | token := yaml_token_t{ | |
| 1014 | + | typ: typ, | |
| 1015 | + | start_mark: mark, | |
| 1016 | + | end_mark: mark, | |
| 1017 | + | } | |
| 1018 | + | if number > -1 { | |
| 1019 | + | number -= parser.tokens_parsed | |
| 1020 | + | } | |
| 1021 | + | yaml_insert_token(parser, number, &token) | |
| 1022 | + | } | |
| 1023 | + | return true | |
| 1024 | + | } | |
| 1025 | + | ||
| 1026 | + | // Pop indentation levels from the indents stack until the current level | |
| 1027 | + | // becomes less or equal to the column. For each indentation level, append | |
| 1028 | + | // the BLOCK-END token. | |
| 1029 | + | func yaml_parser_unroll_indent(parser *yaml_parser_t, column int, scan_mark yaml_mark_t) bool { | |
| 1030 | + | // In the flow context, do nothing. | |
| 1031 | + | if parser.flow_level > 0 { | |
| 1032 | + | return true | |
| 1033 | + | } | |
| 1034 | + | ||
| 1035 | + | block_mark := scan_mark | |
| 1036 | + | block_mark.index-- | |
| 1037 | + | ||
| 1038 | + | // Loop through the indentation levels in the stack. | |
| 1039 | + | for parser.indent > column { | |
| 1040 | + | ||
| 1041 | + | // [Go] Reposition the end token before potential following | |
| 1042 | + | // foot comments of parent blocks. For that, search | |
| 1043 | + | // backwards for recent comments that were at the same | |
| 1044 | + | // indent as the block that is ending now. | |
| 1045 | + | stop_index := block_mark.index | |
| 1046 | + | for i := len(parser.comments) - 1; i >= 0; i-- { | |
| 1047 | + | comment := &parser.comments[i] | |
| 1048 | + | ||
| 1049 | + | if comment.end_mark.index < stop_index { | |
| 1050 | + | // Don't go back beyond the start of the comment/whitespace scan, unless column < 0. | |
| 1051 | + | // If requested indent column is < 0, then the document is over and everything else | |
| 1052 | + | // is a foot anyway. | |
| 1053 | + | break | |
| 1054 | + | } | |
| 1055 | + | if comment.start_mark.column == parser.indent+1 { | |
| 1056 | + | // This is a good match. But maybe there's a former comment | |
| 1057 | + | // at that same indent level, so keep searching. | |
| 1058 | + | block_mark = comment.start_mark | |
| 1059 | + | } | |
| 1060 | + | ||
| 1061 | + | // While the end of the former comment matches with | |
| 1062 | + | // the start of the following one, we know there's | |
| 1063 | + | // nothing in between and scanning is still safe. | |
| 1064 | + | stop_index = comment.scan_mark.index | |
| 1065 | + | } | |
| 1066 | + | ||
| 1067 | + | // Create a token and append it to the queue. | |
| 1068 | + | token := yaml_token_t{ | |
| 1069 | + | typ: yaml_BLOCK_END_TOKEN, | |
| 1070 | + | start_mark: block_mark, | |
| 1071 | + | end_mark: block_mark, | |
| 1072 | + | } | |
| 1073 | + | yaml_insert_token(parser, -1, &token) | |
| 1074 | + | ||
| 1075 | + | // Pop the indentation level. | |
| 1076 | + | parser.indent = parser.indents[len(parser.indents)-1] | |
| 1077 | + | parser.indents = parser.indents[:len(parser.indents)-1] | |
| 1078 | + | } | |
| 1079 | + | return true | |
| 1080 | + | } | |
| 1081 | + | ||
| 1082 | + | // Initialize the scanner and produce the STREAM-START token. | |
| 1083 | + | func yaml_parser_fetch_stream_start(parser *yaml_parser_t) bool { | |
| 1084 | + | ||
| 1085 | + | // Set the initial indentation. | |
| 1086 | + | parser.indent = -1 | |
| 1087 | + | ||
| 1088 | + | // Initialize the simple key stack. | |
| 1089 | + | parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{}) | |
| 1090 | + | ||
| 1091 | + | parser.simple_keys_by_tok = make(map[int]int) | |
| 1092 | + | ||
| 1093 | + | // A simple key is allowed at the beginning of the stream. | |
| 1094 | + | parser.simple_key_allowed = true | |
| 1095 | + | ||
| 1096 | + | // We have started. | |
| 1097 | + | parser.stream_start_produced = true | |
| 1098 | + | ||
| 1099 | + | // Create the STREAM-START token and append it to the queue. | |
| 1100 | + | token := yaml_token_t{ | |
| 1101 | + | typ: yaml_STREAM_START_TOKEN, | |
| 1102 | + | start_mark: parser.mark, | |
| 1103 | + | end_mark: parser.mark, | |
| 1104 | + | encoding: parser.encoding, | |
| 1105 | + | } | |
| 1106 | + | yaml_insert_token(parser, -1, &token) | |
| 1107 | + | return true | |
| 1108 | + | } | |
| 1109 | + | ||
| 1110 | + | // Produce the STREAM-END token and shut down the scanner. | |
| 1111 | + | func yaml_parser_fetch_stream_end(parser *yaml_parser_t) bool { | |
| 1112 | + | ||
| 1113 | + | // Force new line. | |
| 1114 | + | if parser.mark.column != 0 { | |
| 1115 | + | parser.mark.column = 0 | |
| 1116 | + | parser.mark.line++ | |
| 1117 | + | } | |
| 1118 | + | ||
| 1119 | + | // Reset the indentation level. | |
| 1120 | + | if !yaml_parser_unroll_indent(parser, -1, parser.mark) { | |
| 1121 | + | return false | |
| 1122 | + | } | |
| 1123 | + | ||
| 1124 | + | // Reset simple keys. | |
| 1125 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1126 | + | return false | |
| 1127 | + | } | |
| 1128 | + | ||
| 1129 | + | parser.simple_key_allowed = false | |
| 1130 | + | ||
| 1131 | + | // Create the STREAM-END token and append it to the queue. | |
| 1132 | + | token := yaml_token_t{ | |
| 1133 | + | typ: yaml_STREAM_END_TOKEN, | |
| 1134 | + | start_mark: parser.mark, | |
| 1135 | + | end_mark: parser.mark, | |
| 1136 | + | } | |
| 1137 | + | yaml_insert_token(parser, -1, &token) | |
| 1138 | + | return true | |
| 1139 | + | } | |
| 1140 | + | ||
| 1141 | + | // Produce a VERSION-DIRECTIVE or TAG-DIRECTIVE token. | |
| 1142 | + | func yaml_parser_fetch_directive(parser *yaml_parser_t) bool { | |
| 1143 | + | // Reset the indentation level. | |
| 1144 | + | if !yaml_parser_unroll_indent(parser, -1, parser.mark) { | |
| 1145 | + | return false | |
| 1146 | + | } | |
| 1147 | + | ||
| 1148 | + | // Reset simple keys. | |
| 1149 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1150 | + | return false | |
| 1151 | + | } | |
| 1152 | + | ||
| 1153 | + | parser.simple_key_allowed = false | |
| 1154 | + | ||
| 1155 | + | // Create the YAML-DIRECTIVE or TAG-DIRECTIVE token. | |
| 1156 | + | token := yaml_token_t{} | |
| 1157 | + | if !yaml_parser_scan_directive(parser, &token) { | |
| 1158 | + | return false | |
| 1159 | + | } | |
| 1160 | + | // Append the token to the queue. | |
| 1161 | + | yaml_insert_token(parser, -1, &token) | |
| 1162 | + | return true | |
| 1163 | + | } | |
| 1164 | + | ||
| 1165 | + | // Produce the DOCUMENT-START or DOCUMENT-END token. | |
| 1166 | + | func yaml_parser_fetch_document_indicator(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |
| 1167 | + | // Reset the indentation level. | |
| 1168 | + | if !yaml_parser_unroll_indent(parser, -1, parser.mark) { | |
| 1169 | + | return false | |
| 1170 | + | } | |
| 1171 | + | ||
| 1172 | + | // Reset simple keys. | |
| 1173 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1174 | + | return false | |
| 1175 | + | } | |
| 1176 | + | ||
| 1177 | + | parser.simple_key_allowed = false | |
| 1178 | + | ||
| 1179 | + | // Consume the token. | |
| 1180 | + | start_mark := parser.mark | |
| 1181 | + | ||
| 1182 | + | skip(parser) | |
| 1183 | + | skip(parser) | |
| 1184 | + | skip(parser) | |
| 1185 | + | ||
| 1186 | + | end_mark := parser.mark | |
| 1187 | + | ||
| 1188 | + | // Create the DOCUMENT-START or DOCUMENT-END token. | |
| 1189 | + | token := yaml_token_t{ | |
| 1190 | + | typ: typ, | |
| 1191 | + | start_mark: start_mark, | |
| 1192 | + | end_mark: end_mark, | |
| 1193 | + | } | |
| 1194 | + | // Append the token to the queue. | |
| 1195 | + | yaml_insert_token(parser, -1, &token) | |
| 1196 | + | return true | |
| 1197 | + | } | |
| 1198 | + | ||
| 1199 | + | // Produce the FLOW-SEQUENCE-START or FLOW-MAPPING-START token. | |
| 1200 | + | func yaml_parser_fetch_flow_collection_start(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |
| 1201 | + | ||
| 1202 | + | // The indicators '[' and '{' may start a simple key. | |
| 1203 | + | if !yaml_parser_save_simple_key(parser) { | |
| 1204 | + | return false | |
| 1205 | + | } | |
| 1206 | + | ||
| 1207 | + | // Increase the flow level. | |
| 1208 | + | if !yaml_parser_increase_flow_level(parser) { | |
| 1209 | + | return false | |
| 1210 | + | } | |
| 1211 | + | ||
| 1212 | + | // A simple key may follow the indicators '[' and '{'. | |
| 1213 | + | parser.simple_key_allowed = true | |
| 1214 | + | ||
| 1215 | + | // Consume the token. | |
| 1216 | + | start_mark := parser.mark | |
| 1217 | + | skip(parser) | |
| 1218 | + | end_mark := parser.mark | |
| 1219 | + | ||
| 1220 | + | // Create the FLOW-SEQUENCE-START of FLOW-MAPPING-START token. | |
| 1221 | + | token := yaml_token_t{ | |
| 1222 | + | typ: typ, | |
| 1223 | + | start_mark: start_mark, | |
| 1224 | + | end_mark: end_mark, | |
| 1225 | + | } | |
| 1226 | + | // Append the token to the queue. | |
| 1227 | + | yaml_insert_token(parser, -1, &token) | |
| 1228 | + | return true | |
| 1229 | + | } | |
| 1230 | + | ||
| 1231 | + | // Produce the FLOW-SEQUENCE-END or FLOW-MAPPING-END token. | |
| 1232 | + | func yaml_parser_fetch_flow_collection_end(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |
| 1233 | + | // Reset any potential simple key on the current flow level. | |
| 1234 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1235 | + | return false | |
| 1236 | + | } | |
| 1237 | + | ||
| 1238 | + | // Decrease the flow level. | |
| 1239 | + | if !yaml_parser_decrease_flow_level(parser) { | |
| 1240 | + | return false | |
| 1241 | + | } | |
| 1242 | + | ||
| 1243 | + | // No simple keys after the indicators ']' and '}'. | |
| 1244 | + | parser.simple_key_allowed = false | |
| 1245 | + | ||
| 1246 | + | // Consume the token. | |
| 1247 | + | ||
| 1248 | + | start_mark := parser.mark | |
| 1249 | + | skip(parser) | |
| 1250 | + | end_mark := parser.mark | |
| 1251 | + | ||
| 1252 | + | // Create the FLOW-SEQUENCE-END of FLOW-MAPPING-END token. | |
| 1253 | + | token := yaml_token_t{ | |
| 1254 | + | typ: typ, | |
| 1255 | + | start_mark: start_mark, | |
| 1256 | + | end_mark: end_mark, | |
| 1257 | + | } | |
| 1258 | + | // Append the token to the queue. | |
| 1259 | + | yaml_insert_token(parser, -1, &token) | |
| 1260 | + | return true | |
| 1261 | + | } | |
| 1262 | + | ||
| 1263 | + | // Produce the FLOW-ENTRY token. | |
| 1264 | + | func yaml_parser_fetch_flow_entry(parser *yaml_parser_t) bool { | |
| 1265 | + | // Reset any potential simple keys on the current flow level. | |
| 1266 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1267 | + | return false | |
| 1268 | + | } | |
| 1269 | + | ||
| 1270 | + | // Simple keys are allowed after ','. | |
| 1271 | + | parser.simple_key_allowed = true | |
| 1272 | + | ||
| 1273 | + | // Consume the token. | |
| 1274 | + | start_mark := parser.mark | |
| 1275 | + | skip(parser) | |
| 1276 | + | end_mark := parser.mark | |
| 1277 | + | ||
| 1278 | + | // Create the FLOW-ENTRY token and append it to the queue. | |
| 1279 | + | token := yaml_token_t{ | |
| 1280 | + | typ: yaml_FLOW_ENTRY_TOKEN, | |
| 1281 | + | start_mark: start_mark, | |
| 1282 | + | end_mark: end_mark, | |
| 1283 | + | } | |
| 1284 | + | yaml_insert_token(parser, -1, &token) | |
| 1285 | + | return true | |
| 1286 | + | } | |
| 1287 | + | ||
| 1288 | + | // Produce the BLOCK-ENTRY token. | |
| 1289 | + | func yaml_parser_fetch_block_entry(parser *yaml_parser_t) bool { | |
| 1290 | + | // Check if the scanner is in the block context. | |
| 1291 | + | if parser.flow_level == 0 { | |
| 1292 | + | // Check if we are allowed to start a new entry. | |
| 1293 | + | if !parser.simple_key_allowed { | |
| 1294 | + | return yaml_parser_set_scanner_error(parser, "", parser.mark, | |
| 1295 | + | "block sequence entries are not allowed in this context") | |
| 1296 | + | } | |
| 1297 | + | // Add the BLOCK-SEQUENCE-START token if needed. | |
| 1298 | + | if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_SEQUENCE_START_TOKEN, parser.mark) { | |
| 1299 | + | return false | |
| 1300 | + | } | |
| 1301 | + | } else { | |
| 1302 | + | // It is an error for the '-' indicator to occur in the flow context, | |
| 1303 | + | // but we let the Parser detect and report about it because the Parser | |
| 1304 | + | // is able to point to the context. | |
| 1305 | + | } | |
| 1306 | + | ||
| 1307 | + | // Reset any potential simple keys on the current flow level. | |
| 1308 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1309 | + | return false | |
| 1310 | + | } | |
| 1311 | + | ||
| 1312 | + | // Simple keys are allowed after '-'. | |
| 1313 | + | parser.simple_key_allowed = true | |
| 1314 | + | ||
| 1315 | + | // Consume the token. | |
| 1316 | + | start_mark := parser.mark | |
| 1317 | + | skip(parser) | |
| 1318 | + | end_mark := parser.mark | |
| 1319 | + | ||
| 1320 | + | // Create the BLOCK-ENTRY token and append it to the queue. | |
| 1321 | + | token := yaml_token_t{ | |
| 1322 | + | typ: yaml_BLOCK_ENTRY_TOKEN, | |
| 1323 | + | start_mark: start_mark, | |
| 1324 | + | end_mark: end_mark, | |
| 1325 | + | } | |
| 1326 | + | yaml_insert_token(parser, -1, &token) | |
| 1327 | + | return true | |
| 1328 | + | } | |
| 1329 | + | ||
| 1330 | + | // Produce the KEY token. | |
| 1331 | + | func yaml_parser_fetch_key(parser *yaml_parser_t) bool { | |
| 1332 | + | ||
| 1333 | + | // In the block context, additional checks are required. | |
| 1334 | + | if parser.flow_level == 0 { | |
| 1335 | + | // Check if we are allowed to start a new key (not nessesary simple). | |
| 1336 | + | if !parser.simple_key_allowed { | |
| 1337 | + | return yaml_parser_set_scanner_error(parser, "", parser.mark, | |
| 1338 | + | "mapping keys are not allowed in this context") | |
| 1339 | + | } | |
| 1340 | + | // Add the BLOCK-MAPPING-START token if needed. | |
| 1341 | + | if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { | |
| 1342 | + | return false | |
| 1343 | + | } | |
| 1344 | + | } | |
| 1345 | + | ||
| 1346 | + | // Reset any potential simple keys on the current flow level. | |
| 1347 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1348 | + | return false | |
| 1349 | + | } | |
| 1350 | + | ||
| 1351 | + | // Simple keys are allowed after '?' in the block context. | |
| 1352 | + | parser.simple_key_allowed = parser.flow_level == 0 | |
| 1353 | + | ||
| 1354 | + | // Consume the token. | |
| 1355 | + | start_mark := parser.mark | |
| 1356 | + | skip(parser) | |
| 1357 | + | end_mark := parser.mark | |
| 1358 | + | ||
| 1359 | + | // Create the KEY token and append it to the queue. | |
| 1360 | + | token := yaml_token_t{ | |
| 1361 | + | typ: yaml_KEY_TOKEN, | |
| 1362 | + | start_mark: start_mark, | |
| 1363 | + | end_mark: end_mark, | |
| 1364 | + | } | |
| 1365 | + | yaml_insert_token(parser, -1, &token) | |
| 1366 | + | return true | |
| 1367 | + | } | |
| 1368 | + | ||
| 1369 | + | // Produce the VALUE token. | |
| 1370 | + | func yaml_parser_fetch_value(parser *yaml_parser_t) bool { | |
| 1371 | + | ||
| 1372 | + | simple_key := &parser.simple_keys[len(parser.simple_keys)-1] | |
| 1373 | + | ||
| 1374 | + | // Have we found a simple key? | |
| 1375 | + | if valid, ok := yaml_simple_key_is_valid(parser, simple_key); !ok { | |
| 1376 | + | return false | |
| 1377 | + | ||
| 1378 | + | } else if valid { | |
| 1379 | + | ||
| 1380 | + | // Create the KEY token and insert it into the queue. | |
| 1381 | + | token := yaml_token_t{ | |
| 1382 | + | typ: yaml_KEY_TOKEN, | |
| 1383 | + | start_mark: simple_key.mark, | |
| 1384 | + | end_mark: simple_key.mark, | |
| 1385 | + | } | |
| 1386 | + | yaml_insert_token(parser, simple_key.token_number-parser.tokens_parsed, &token) | |
| 1387 | + | ||
| 1388 | + | // In the block context, we may need to add the BLOCK-MAPPING-START token. | |
| 1389 | + | if !yaml_parser_roll_indent(parser, simple_key.mark.column, | |
| 1390 | + | simple_key.token_number, | |
| 1391 | + | yaml_BLOCK_MAPPING_START_TOKEN, simple_key.mark) { | |
| 1392 | + | return false | |
| 1393 | + | } | |
| 1394 | + | ||
| 1395 | + | // Remove the simple key. | |
| 1396 | + | simple_key.possible = false | |
| 1397 | + | delete(parser.simple_keys_by_tok, simple_key.token_number) | |
| 1398 | + | ||
| 1399 | + | // A simple key cannot follow another simple key. | |
| 1400 | + | parser.simple_key_allowed = false | |
| 1401 | + | ||
| 1402 | + | } else { | |
| 1403 | + | // The ':' indicator follows a complex key. | |
| 1404 | + | ||
| 1405 | + | // In the block context, extra checks are required. | |
| 1406 | + | if parser.flow_level == 0 { | |
| 1407 | + | ||
| 1408 | + | // Check if we are allowed to start a complex value. | |
| 1409 | + | if !parser.simple_key_allowed { | |
| 1410 | + | return yaml_parser_set_scanner_error(parser, "", parser.mark, | |
| 1411 | + | "mapping values are not allowed in this context") | |
| 1412 | + | } | |
| 1413 | + | ||
| 1414 | + | // Add the BLOCK-MAPPING-START token if needed. | |
| 1415 | + | if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { | |
| 1416 | + | return false | |
| 1417 | + | } | |
| 1418 | + | } | |
| 1419 | + | ||
| 1420 | + | // Simple keys after ':' are allowed in the block context. | |
| 1421 | + | parser.simple_key_allowed = parser.flow_level == 0 | |
| 1422 | + | } | |
| 1423 | + | ||
| 1424 | + | // Consume the token. | |
| 1425 | + | start_mark := parser.mark | |
| 1426 | + | skip(parser) | |
| 1427 | + | end_mark := parser.mark | |
| 1428 | + | ||
| 1429 | + | // Create the VALUE token and append it to the queue. | |
| 1430 | + | token := yaml_token_t{ | |
| 1431 | + | typ: yaml_VALUE_TOKEN, | |
| 1432 | + | start_mark: start_mark, | |
| 1433 | + | end_mark: end_mark, | |
| 1434 | + | } | |
| 1435 | + | yaml_insert_token(parser, -1, &token) | |
| 1436 | + | return true | |
| 1437 | + | } | |
| 1438 | + | ||
| 1439 | + | // Produce the ALIAS or ANCHOR token. | |
| 1440 | + | func yaml_parser_fetch_anchor(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |
| 1441 | + | // An anchor or an alias could be a simple key. | |
| 1442 | + | if !yaml_parser_save_simple_key(parser) { | |
| 1443 | + | return false | |
| 1444 | + | } | |
| 1445 | + | ||
| 1446 | + | // A simple key cannot follow an anchor or an alias. | |
| 1447 | + | parser.simple_key_allowed = false | |
| 1448 | + | ||
| 1449 | + | // Create the ALIAS or ANCHOR token and append it to the queue. | |
| 1450 | + | var token yaml_token_t | |
| 1451 | + | if !yaml_parser_scan_anchor(parser, &token, typ) { | |
| 1452 | + | return false | |
| 1453 | + | } | |
| 1454 | + | yaml_insert_token(parser, -1, &token) | |
| 1455 | + | return true | |
| 1456 | + | } | |
| 1457 | + | ||
| 1458 | + | // Produce the TAG token. | |
| 1459 | + | func yaml_parser_fetch_tag(parser *yaml_parser_t) bool { | |
| 1460 | + | // A tag could be a simple key. | |
| 1461 | + | if !yaml_parser_save_simple_key(parser) { | |
| 1462 | + | return false | |
| 1463 | + | } | |
| 1464 | + | ||
| 1465 | + | // A simple key cannot follow a tag. | |
| 1466 | + | parser.simple_key_allowed = false | |
| 1467 | + | ||
| 1468 | + | // Create the TAG token and append it to the queue. | |
| 1469 | + | var token yaml_token_t | |
| 1470 | + | if !yaml_parser_scan_tag(parser, &token) { | |
| 1471 | + | return false | |
| 1472 | + | } | |
| 1473 | + | yaml_insert_token(parser, -1, &token) | |
| 1474 | + | return true | |
| 1475 | + | } | |
| 1476 | + | ||
| 1477 | + | // Produce the SCALAR(...,literal) or SCALAR(...,folded) tokens. | |
| 1478 | + | func yaml_parser_fetch_block_scalar(parser *yaml_parser_t, literal bool) bool { | |
| 1479 | + | // Remove any potential simple keys. | |
| 1480 | + | if !yaml_parser_remove_simple_key(parser) { | |
| 1481 | + | return false | |
| 1482 | + | } | |
| 1483 | + | ||
| 1484 | + | // A simple key may follow a block scalar. | |
| 1485 | + | parser.simple_key_allowed = true | |
| 1486 | + | ||
| 1487 | + | // Create the SCALAR token and append it to the queue. | |
| 1488 | + | var token yaml_token_t | |
| 1489 | + | if !yaml_parser_scan_block_scalar(parser, &token, literal) { | |
| 1490 | + | return false | |
| 1491 | + | } | |
| 1492 | + | yaml_insert_token(parser, -1, &token) | |
| 1493 | + | return true | |
| 1494 | + | } | |
| 1495 | + | ||
| 1496 | + | // Produce the SCALAR(...,single-quoted) or SCALAR(...,double-quoted) tokens. | |
| 1497 | + | func yaml_parser_fetch_flow_scalar(parser *yaml_parser_t, single bool) bool { | |
| 1498 | + | // A plain scalar could be a simple key. | |
| 1499 | + | if !yaml_parser_save_simple_key(parser) { | |
| 1500 | + | return false | |
| 1501 | + | } | |
| 1502 | + | ||
| 1503 | + | // A simple key cannot follow a flow scalar. | |
| 1504 | + | parser.simple_key_allowed = false | |
| 1505 | + | ||
| 1506 | + | // Create the SCALAR token and append it to the queue. | |
| 1507 | + | var token yaml_token_t | |
| 1508 | + | if !yaml_parser_scan_flow_scalar(parser, &token, single) { | |
| 1509 | + | return false | |
| 1510 | + | } | |
| 1511 | + | yaml_insert_token(parser, -1, &token) | |
| 1512 | + | return true | |
| 1513 | + | } | |
| 1514 | + | ||
| 1515 | + | // Produce the SCALAR(...,plain) token. | |
| 1516 | + | func yaml_parser_fetch_plain_scalar(parser *yaml_parser_t) bool { | |
| 1517 | + | // A plain scalar could be a simple key. | |
| 1518 | + | if !yaml_parser_save_simple_key(parser) { | |
| 1519 | + | return false | |
| 1520 | + | } | |
| 1521 | + | ||
| 1522 | + | // A simple key cannot follow a flow scalar. | |
| 1523 | + | parser.simple_key_allowed = false | |
| 1524 | + | ||
| 1525 | + | // Create the SCALAR token and append it to the queue. | |
| 1526 | + | var token yaml_token_t | |
| 1527 | + | if !yaml_parser_scan_plain_scalar(parser, &token) { | |
| 1528 | + | return false | |
| 1529 | + | } | |
| 1530 | + | yaml_insert_token(parser, -1, &token) | |
| 1531 | + | return true | |
| 1532 | + | } | |
| 1533 | + | ||
| 1534 | + | // Eat whitespaces and comments until the next token is found. | |
| 1535 | + | func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool { | |
| 1536 | + | ||
| 1537 | + | scan_mark := parser.mark | |
| 1538 | + | ||
| 1539 | + | // Until the next token is not found. | |
| 1540 | + | for { | |
| 1541 | + | // Allow the BOM mark to start a line. | |
| 1542 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1543 | + | return false | |
| 1544 | + | } | |
| 1545 | + | if parser.mark.column == 0 && is_bom(parser.buffer, parser.buffer_pos) { | |
| 1546 | + | skip(parser) | |
| 1547 | + | } | |
| 1548 | + | ||
| 1549 | + | // Eat whitespaces. | |
| 1550 | + | // Tabs are allowed: | |
| 1551 | + | // - in the flow context | |
| 1552 | + | // - in the block context, but not at the beginning of the line or | |
| 1553 | + | // after '-', '?', or ':' (complex value). | |
| 1554 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1555 | + | return false | |
| 1556 | + | } | |
| 1557 | + | ||
| 1558 | + | for parser.buffer[parser.buffer_pos] == ' ' || ((parser.flow_level > 0 || !parser.simple_key_allowed) && parser.buffer[parser.buffer_pos] == '\t') { | |
| 1559 | + | skip(parser) | |
| 1560 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1561 | + | return false | |
| 1562 | + | } | |
| 1563 | + | } | |
| 1564 | + | ||
| 1565 | + | // Check if we just had a line comment under a sequence entry that | |
| 1566 | + | // looks more like a header to the following content. Similar to this: | |
| 1567 | + | // | |
| 1568 | + | // - # The comment | |
| 1569 | + | // - Some data | |
| 1570 | + | // | |
| 1571 | + | // If so, transform the line comment to a head comment and reposition. | |
| 1572 | + | if len(parser.comments) > 0 && len(parser.tokens) > 1 { | |
| 1573 | + | tokenA := parser.tokens[len(parser.tokens)-2] | |
| 1574 | + | tokenB := parser.tokens[len(parser.tokens)-1] | |
| 1575 | + | comment := &parser.comments[len(parser.comments)-1] | |
| 1576 | + | if tokenA.typ == yaml_BLOCK_SEQUENCE_START_TOKEN && tokenB.typ == yaml_BLOCK_ENTRY_TOKEN && len(comment.line) > 0 && !is_break(parser.buffer, parser.buffer_pos) { | |
| 1577 | + | // If it was in the prior line, reposition so it becomes a | |
| 1578 | + | // header of the follow up token. Otherwise, keep it in place | |
| 1579 | + | // so it becomes a header of the former. | |
| 1580 | + | comment.head = comment.line | |
| 1581 | + | comment.line = nil | |
| 1582 | + | if comment.start_mark.line == parser.mark.line-1 { | |
| 1583 | + | comment.token_mark = parser.mark | |
| 1584 | + | } | |
| 1585 | + | } | |
| 1586 | + | } | |
| 1587 | + | ||
| 1588 | + | // Eat a comment until a line break. | |
| 1589 | + | if parser.buffer[parser.buffer_pos] == '#' { | |
| 1590 | + | if !yaml_parser_scan_comments(parser, scan_mark) { | |
| 1591 | + | return false | |
| 1592 | + | } | |
| 1593 | + | } | |
| 1594 | + | ||
| 1595 | + | // If it is a line break, eat it. | |
| 1596 | + | if is_break(parser.buffer, parser.buffer_pos) { | |
| 1597 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 1598 | + | return false | |
| 1599 | + | } | |
| 1600 | + | skip_line(parser) | |
| 1601 | + | ||
| 1602 | + | // In the block context, a new line may start a simple key. | |
| 1603 | + | if parser.flow_level == 0 { | |
| 1604 | + | parser.simple_key_allowed = true | |
| 1605 | + | } | |
| 1606 | + | } else { | |
| 1607 | + | break // We have found a token. | |
| 1608 | + | } | |
| 1609 | + | } | |
| 1610 | + | ||
| 1611 | + | return true | |
| 1612 | + | } | |
| 1613 | + | ||
| 1614 | + | // Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token. | |
| 1615 | + | // | |
| 1616 | + | // Scope: | |
| 1617 | + | // %YAML 1.1 # a comment \n | |
| 1618 | + | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 1619 | + | // %TAG !yaml! tag:yaml.org,2002: \n | |
| 1620 | + | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 1621 | + | // | |
| 1622 | + | func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool { | |
| 1623 | + | // Eat '%'. | |
| 1624 | + | start_mark := parser.mark | |
| 1625 | + | skip(parser) | |
| 1626 | + | ||
| 1627 | + | // Scan the directive name. | |
| 1628 | + | var name []byte | |
| 1629 | + | if !yaml_parser_scan_directive_name(parser, start_mark, &name) { | |
| 1630 | + | return false | |
| 1631 | + | } | |
| 1632 | + | ||
| 1633 | + | // Is it a YAML directive? | |
| 1634 | + | if bytes.Equal(name, []byte("YAML")) { | |
| 1635 | + | // Scan the VERSION directive value. | |
| 1636 | + | var major, minor int8 | |
| 1637 | + | if !yaml_parser_scan_version_directive_value(parser, start_mark, &major, &minor) { | |
| 1638 | + | return false | |
| 1639 | + | } | |
| 1640 | + | end_mark := parser.mark | |
| 1641 | + | ||
| 1642 | + | // Create a VERSION-DIRECTIVE token. | |
| 1643 | + | *token = yaml_token_t{ | |
| 1644 | + | typ: yaml_VERSION_DIRECTIVE_TOKEN, | |
| 1645 | + | start_mark: start_mark, | |
| 1646 | + | end_mark: end_mark, | |
| 1647 | + | major: major, | |
| 1648 | + | minor: minor, | |
| 1649 | + | } | |
| 1650 | + | ||
| 1651 | + | // Is it a TAG directive? | |
| 1652 | + | } else if bytes.Equal(name, []byte("TAG")) { | |
| 1653 | + | // Scan the TAG directive value. | |
| 1654 | + | var handle, prefix []byte | |
| 1655 | + | if !yaml_parser_scan_tag_directive_value(parser, start_mark, &handle, &prefix) { | |
| 1656 | + | return false | |
| 1657 | + | } | |
| 1658 | + | end_mark := parser.mark | |
| 1659 | + | ||
| 1660 | + | // Create a TAG-DIRECTIVE token. | |
| 1661 | + | *token = yaml_token_t{ | |
| 1662 | + | typ: yaml_TAG_DIRECTIVE_TOKEN, | |
| 1663 | + | start_mark: start_mark, | |
| 1664 | + | end_mark: end_mark, | |
| 1665 | + | value: handle, | |
| 1666 | + | prefix: prefix, | |
| 1667 | + | } | |
| 1668 | + | ||
| 1669 | + | // Unknown directive. | |
| 1670 | + | } else { | |
| 1671 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |
| 1672 | + | start_mark, "found unknown directive name") | |
| 1673 | + | return false | |
| 1674 | + | } | |
| 1675 | + | ||
| 1676 | + | // Eat the rest of the line including any comments. | |
| 1677 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1678 | + | return false | |
| 1679 | + | } | |
| 1680 | + | ||
| 1681 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |
| 1682 | + | skip(parser) | |
| 1683 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1684 | + | return false | |
| 1685 | + | } | |
| 1686 | + | } | |
| 1687 | + | ||
| 1688 | + | if parser.buffer[parser.buffer_pos] == '#' { | |
| 1689 | + | // [Go] Discard this inline comment for the time being. | |
| 1690 | + | //if !yaml_parser_scan_line_comment(parser, start_mark) { | |
| 1691 | + | // return false | |
| 1692 | + | //} | |
| 1693 | + | for !is_breakz(parser.buffer, parser.buffer_pos) { | |
| 1694 | + | skip(parser) | |
| 1695 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1696 | + | return false | |
| 1697 | + | } | |
| 1698 | + | } | |
| 1699 | + | } | |
| 1700 | + | ||
| 1701 | + | // Check if we are at the end of the line. | |
| 1702 | + | if !is_breakz(parser.buffer, parser.buffer_pos) { | |
| 1703 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |
| 1704 | + | start_mark, "did not find expected comment or line break") | |
| 1705 | + | return false | |
| 1706 | + | } | |
| 1707 | + | ||
| 1708 | + | // Eat a line break. | |
| 1709 | + | if is_break(parser.buffer, parser.buffer_pos) { | |
| 1710 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 1711 | + | return false | |
| 1712 | + | } | |
| 1713 | + | skip_line(parser) | |
| 1714 | + | } | |
| 1715 | + | ||
| 1716 | + | return true | |
| 1717 | + | } | |
| 1718 | + | ||
| 1719 | + | // Scan the directive name. | |
| 1720 | + | // | |
| 1721 | + | // Scope: | |
| 1722 | + | // %YAML 1.1 # a comment \n | |
| 1723 | + | // ^^^^ | |
| 1724 | + | // %TAG !yaml! tag:yaml.org,2002: \n | |
| 1725 | + | // ^^^ | |
| 1726 | + | // | |
| 1727 | + | func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool { | |
| 1728 | + | // Consume the directive name. | |
| 1729 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1730 | + | return false | |
| 1731 | + | } | |
| 1732 | + | ||
| 1733 | + | var s []byte | |
| 1734 | + | for is_alpha(parser.buffer, parser.buffer_pos) { | |
| 1735 | + | s = read(parser, s) | |
| 1736 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1737 | + | return false | |
| 1738 | + | } | |
| 1739 | + | } | |
| 1740 | + | ||
| 1741 | + | // Check if the name is empty. | |
| 1742 | + | if len(s) == 0 { | |
| 1743 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |
| 1744 | + | start_mark, "could not find expected directive name") | |
| 1745 | + | return false | |
| 1746 | + | } | |
| 1747 | + | ||
| 1748 | + | // Check for an blank character after the name. | |
| 1749 | + | if !is_blankz(parser.buffer, parser.buffer_pos) { | |
| 1750 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |
| 1751 | + | start_mark, "found unexpected non-alphabetical character") | |
| 1752 | + | return false | |
| 1753 | + | } | |
| 1754 | + | *name = s | |
| 1755 | + | return true | |
| 1756 | + | } | |
| 1757 | + | ||
| 1758 | + | // Scan the value of VERSION-DIRECTIVE. | |
| 1759 | + | // | |
| 1760 | + | // Scope: | |
| 1761 | + | // %YAML 1.1 # a comment \n | |
| 1762 | + | // ^^^^^^ | |
| 1763 | + | func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool { | |
| 1764 | + | // Eat whitespaces. | |
| 1765 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1766 | + | return false | |
| 1767 | + | } | |
| 1768 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |
| 1769 | + | skip(parser) | |
| 1770 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1771 | + | return false | |
| 1772 | + | } | |
| 1773 | + | } | |
| 1774 | + | ||
| 1775 | + | // Consume the major version number. | |
| 1776 | + | if !yaml_parser_scan_version_directive_number(parser, start_mark, major) { | |
| 1777 | + | return false | |
| 1778 | + | } | |
| 1779 | + | ||
| 1780 | + | // Eat '.'. | |
| 1781 | + | if parser.buffer[parser.buffer_pos] != '.' { | |
| 1782 | + | return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", | |
| 1783 | + | start_mark, "did not find expected digit or '.' character") | |
| 1784 | + | } | |
| 1785 | + | ||
| 1786 | + | skip(parser) | |
| 1787 | + | ||
| 1788 | + | // Consume the minor version number. | |
| 1789 | + | if !yaml_parser_scan_version_directive_number(parser, start_mark, minor) { | |
| 1790 | + | return false | |
| 1791 | + | } | |
| 1792 | + | return true | |
| 1793 | + | } | |
| 1794 | + | ||
| 1795 | + | const max_number_length = 2 | |
| 1796 | + | ||
| 1797 | + | // Scan the version number of VERSION-DIRECTIVE. | |
| 1798 | + | // | |
| 1799 | + | // Scope: | |
| 1800 | + | // %YAML 1.1 # a comment \n | |
| 1801 | + | // ^ | |
| 1802 | + | // %YAML 1.1 # a comment \n | |
| 1803 | + | // ^ | |
| 1804 | + | func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark yaml_mark_t, number *int8) bool { | |
| 1805 | + | ||
| 1806 | + | // Repeat while the next character is digit. | |
| 1807 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1808 | + | return false | |
| 1809 | + | } | |
| 1810 | + | var value, length int8 | |
| 1811 | + | for is_digit(parser.buffer, parser.buffer_pos) { | |
| 1812 | + | // Check if the number is too long. | |
| 1813 | + | length++ | |
| 1814 | + | if length > max_number_length { | |
| 1815 | + | return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", | |
| 1816 | + | start_mark, "found extremely long version number") | |
| 1817 | + | } | |
| 1818 | + | value = value*10 + int8(as_digit(parser.buffer, parser.buffer_pos)) | |
| 1819 | + | skip(parser) | |
| 1820 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1821 | + | return false | |
| 1822 | + | } | |
| 1823 | + | } | |
| 1824 | + | ||
| 1825 | + | // Check if the number was present. | |
| 1826 | + | if length == 0 { | |
| 1827 | + | return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", | |
| 1828 | + | start_mark, "did not find expected version number") | |
| 1829 | + | } | |
| 1830 | + | *number = value | |
| 1831 | + | return true | |
| 1832 | + | } | |
| 1833 | + | ||
| 1834 | + | // Scan the value of a TAG-DIRECTIVE token. | |
| 1835 | + | // | |
| 1836 | + | // Scope: | |
| 1837 | + | // %TAG !yaml! tag:yaml.org,2002: \n | |
| 1838 | + | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 1839 | + | // | |
| 1840 | + | func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool { | |
| 1841 | + | var handle_value, prefix_value []byte | |
| 1842 | + | ||
| 1843 | + | // Eat whitespaces. | |
| 1844 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1845 | + | return false | |
| 1846 | + | } | |
| 1847 | + | ||
| 1848 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |
| 1849 | + | skip(parser) | |
| 1850 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1851 | + | return false | |
| 1852 | + | } | |
| 1853 | + | } | |
| 1854 | + | ||
| 1855 | + | // Scan a handle. | |
| 1856 | + | if !yaml_parser_scan_tag_handle(parser, true, start_mark, &handle_value) { | |
| 1857 | + | return false | |
| 1858 | + | } | |
| 1859 | + | ||
| 1860 | + | // Expect a whitespace. | |
| 1861 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1862 | + | return false | |
| 1863 | + | } | |
| 1864 | + | if !is_blank(parser.buffer, parser.buffer_pos) { | |
| 1865 | + | yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", | |
| 1866 | + | start_mark, "did not find expected whitespace") | |
| 1867 | + | return false | |
| 1868 | + | } | |
| 1869 | + | ||
| 1870 | + | // Eat whitespaces. | |
| 1871 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |
| 1872 | + | skip(parser) | |
| 1873 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1874 | + | return false | |
| 1875 | + | } | |
| 1876 | + | } | |
| 1877 | + | ||
| 1878 | + | // Scan a prefix. | |
| 1879 | + | if !yaml_parser_scan_tag_uri(parser, true, nil, start_mark, &prefix_value) { | |
| 1880 | + | return false | |
| 1881 | + | } | |
| 1882 | + | ||
| 1883 | + | // Expect a whitespace or line break. | |
| 1884 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1885 | + | return false | |
| 1886 | + | } | |
| 1887 | + | if !is_blankz(parser.buffer, parser.buffer_pos) { | |
| 1888 | + | yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", | |
| 1889 | + | start_mark, "did not find expected whitespace or line break") | |
| 1890 | + | return false | |
| 1891 | + | } | |
| 1892 | + | ||
| 1893 | + | *handle = handle_value | |
| 1894 | + | *prefix = prefix_value | |
| 1895 | + | return true | |
| 1896 | + | } | |
| 1897 | + | ||
| 1898 | + | func yaml_parser_scan_anchor(parser *yaml_parser_t, token *yaml_token_t, typ yaml_token_type_t) bool { | |
| 1899 | + | var s []byte | |
| 1900 | + | ||
| 1901 | + | // Eat the indicator character. | |
| 1902 | + | start_mark := parser.mark | |
| 1903 | + | skip(parser) | |
| 1904 | + | ||
| 1905 | + | // Consume the value. | |
| 1906 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1907 | + | return false | |
| 1908 | + | } | |
| 1909 | + | ||
| 1910 | + | for is_alpha(parser.buffer, parser.buffer_pos) { | |
| 1911 | + | s = read(parser, s) | |
| 1912 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 1913 | + | return false | |
| 1914 | + | } | |
| 1915 | + | } | |
| 1916 | + | ||
| 1917 | + | end_mark := parser.mark | |
| 1918 | + | ||
| 1919 | + | /* | |
| 1920 | + | * Check if length of the anchor is greater than 0 and it is followed by | |
| 1921 | + | * a whitespace character or one of the indicators: | |
| 1922 | + | * | |
| 1923 | + | * '?', ':', ',', ']', '}', '%', '@', '`'. | |
| 1924 | + | */ | |
| 1925 | + | ||
| 1926 | + | if len(s) == 0 || | |
| 1927 | + | !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '?' || | |
| 1928 | + | parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == ',' || | |
| 1929 | + | parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '}' || | |
| 1930 | + | parser.buffer[parser.buffer_pos] == '%' || parser.buffer[parser.buffer_pos] == '@' || | |
| 1931 | + | parser.buffer[parser.buffer_pos] == '`') { | |
| 1932 | + | context := "while scanning an alias" | |
| 1933 | + | if typ == yaml_ANCHOR_TOKEN { | |
| 1934 | + | context = "while scanning an anchor" | |
| 1935 | + | } | |
| 1936 | + | yaml_parser_set_scanner_error(parser, context, start_mark, | |
| 1937 | + | "did not find expected alphabetic or numeric character") | |
| 1938 | + | return false | |
| 1939 | + | } | |
| 1940 | + | ||
| 1941 | + | // Create a token. | |
| 1942 | + | *token = yaml_token_t{ | |
| 1943 | + | typ: typ, | |
| 1944 | + | start_mark: start_mark, | |
| 1945 | + | end_mark: end_mark, | |
| 1946 | + | value: s, | |
| 1947 | + | } | |
| 1948 | + | ||
| 1949 | + | return true | |
| 1950 | + | } | |
| 1951 | + | ||
| 1952 | + | /* | |
| 1953 | + | * Scan a TAG token. | |
| 1954 | + | */ | |
| 1955 | + | ||
| 1956 | + | func yaml_parser_scan_tag(parser *yaml_parser_t, token *yaml_token_t) bool { | |
| 1957 | + | var handle, suffix []byte | |
| 1958 | + | ||
| 1959 | + | start_mark := parser.mark | |
| 1960 | + | ||
| 1961 | + | // Check if the tag is in the canonical form. | |
| 1962 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 1963 | + | return false | |
| 1964 | + | } | |
| 1965 | + | ||
| 1966 | + | if parser.buffer[parser.buffer_pos+1] == '<' { | |
| 1967 | + | // Keep the handle as '' | |
| 1968 | + | ||
| 1969 | + | // Eat '!<' | |
| 1970 | + | skip(parser) | |
| 1971 | + | skip(parser) | |
| 1972 | + | ||
| 1973 | + | // Consume the tag value. | |
| 1974 | + | if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { | |
| 1975 | + | return false | |
| 1976 | + | } | |
| 1977 | + | ||
| 1978 | + | // Check for '>' and eat it. | |
| 1979 | + | if parser.buffer[parser.buffer_pos] != '>' { | |
| 1980 | + | yaml_parser_set_scanner_error(parser, "while scanning a tag", | |
| 1981 | + | start_mark, "did not find the expected '>'") | |
| 1982 | + | return false | |
| 1983 | + | } | |
| 1984 | + | ||
| 1985 | + | skip(parser) | |
| 1986 | + | } else { | |
| 1987 | + | // The tag has either the '!suffix' or the '!handle!suffix' form. | |
| 1988 | + | ||
| 1989 | + | // First, try to scan a handle. | |
| 1990 | + | if !yaml_parser_scan_tag_handle(parser, false, start_mark, &handle) { | |
| 1991 | + | return false | |
| 1992 | + | } | |
| 1993 | + | ||
| 1994 | + | // Check if it is, indeed, handle. | |
| 1995 | + | if handle[0] == '!' && len(handle) > 1 && handle[len(handle)-1] == '!' { | |
| 1996 | + | // Scan the suffix now. | |
| 1997 | + | if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { | |
| 1998 | + | return false | |
| 1999 | + | } | |
| 2000 | + | } else { | |
| 2001 | + | // It wasn't a handle after all. Scan the rest of the tag. | |
| 2002 | + | if !yaml_parser_scan_tag_uri(parser, false, handle, start_mark, &suffix) { | |
| 2003 | + | return false | |
| 2004 | + | } | |
| 2005 | + | ||
| 2006 | + | // Set the handle to '!'. | |
| 2007 | + | handle = []byte{'!'} | |
| 2008 | + | ||
| 2009 | + | // A special case: the '!' tag. Set the handle to '' and the | |
| 2010 | + | // suffix to '!'. | |
| 2011 | + | if len(suffix) == 0 { | |
| 2012 | + | handle, suffix = suffix, handle | |
| 2013 | + | } | |
| 2014 | + | } | |
| 2015 | + | } | |
| 2016 | + | ||
| 2017 | + | // Check the character which ends the tag. | |
| 2018 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2019 | + | return false | |
| 2020 | + | } | |
| 2021 | + | if !is_blankz(parser.buffer, parser.buffer_pos) { | |
| 2022 | + | yaml_parser_set_scanner_error(parser, "while scanning a tag", | |
| 2023 | + | start_mark, "did not find expected whitespace or line break") | |
| 2024 | + | return false | |
| 2025 | + | } | |
| 2026 | + | ||
| 2027 | + | end_mark := parser.mark | |
| 2028 | + | ||
| 2029 | + | // Create a token. | |
| 2030 | + | *token = yaml_token_t{ | |
| 2031 | + | typ: yaml_TAG_TOKEN, | |
| 2032 | + | start_mark: start_mark, | |
| 2033 | + | end_mark: end_mark, | |
| 2034 | + | value: handle, | |
| 2035 | + | suffix: suffix, | |
| 2036 | + | } | |
| 2037 | + | return true | |
| 2038 | + | } | |
| 2039 | + | ||
| 2040 | + | // Scan a tag handle. | |
| 2041 | + | func yaml_parser_scan_tag_handle(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, handle *[]byte) bool { | |
| 2042 | + | // Check the initial '!' character. | |
| 2043 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2044 | + | return false | |
| 2045 | + | } | |
| 2046 | + | if parser.buffer[parser.buffer_pos] != '!' { | |
| 2047 | + | yaml_parser_set_scanner_tag_error(parser, directive, | |
| 2048 | + | start_mark, "did not find expected '!'") | |
| 2049 | + | return false | |
| 2050 | + | } | |
| 2051 | + | ||
| 2052 | + | var s []byte | |
| 2053 | + | ||
| 2054 | + | // Copy the '!' character. | |
| 2055 | + | s = read(parser, s) | |
| 2056 | + | ||
| 2057 | + | // Copy all subsequent alphabetical and numerical characters. | |
| 2058 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2059 | + | return false | |
| 2060 | + | } | |
| 2061 | + | for is_alpha(parser.buffer, parser.buffer_pos) { | |
| 2062 | + | s = read(parser, s) | |
| 2063 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2064 | + | return false | |
| 2065 | + | } | |
| 2066 | + | } | |
| 2067 | + | ||
| 2068 | + | // Check if the trailing character is '!' and copy it. | |
| 2069 | + | if parser.buffer[parser.buffer_pos] == '!' { | |
| 2070 | + | s = read(parser, s) | |
| 2071 | + | } else { | |
| 2072 | + | // It's either the '!' tag or not really a tag handle. If it's a %TAG | |
| 2073 | + | // directive, it's an error. If it's a tag token, it must be a part of URI. | |
| 2074 | + | if directive && string(s) != "!" { | |
| 2075 | + | yaml_parser_set_scanner_tag_error(parser, directive, | |
| 2076 | + | start_mark, "did not find expected '!'") | |
| 2077 | + | return false | |
| 2078 | + | } | |
| 2079 | + | } | |
| 2080 | + | ||
| 2081 | + | *handle = s | |
| 2082 | + | return true | |
| 2083 | + | } | |
| 2084 | + | ||
| 2085 | + | // Scan a tag. | |
| 2086 | + | func yaml_parser_scan_tag_uri(parser *yaml_parser_t, directive bool, head []byte, start_mark yaml_mark_t, uri *[]byte) bool { | |
| 2087 | + | //size_t length = head ? strlen((char *)head) : 0 | |
| 2088 | + | var s []byte | |
| 2089 | + | hasTag := len(head) > 0 | |
| 2090 | + | ||
| 2091 | + | // Copy the head if needed. | |
| 2092 | + | // | |
| 2093 | + | // Note that we don't copy the leading '!' character. | |
| 2094 | + | if len(head) > 1 { | |
| 2095 | + | s = append(s, head[1:]...) | |
| 2096 | + | } | |
| 2097 | + | ||
| 2098 | + | // Scan the tag. | |
| 2099 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2100 | + | return false | |
| 2101 | + | } | |
| 2102 | + | ||
| 2103 | + | // The set of characters that may appear in URI is as follows: | |
| 2104 | + | // | |
| 2105 | + | // '0'-'9', 'A'-'Z', 'a'-'z', '_', '-', ';', '/', '?', ':', '@', '&', | |
| 2106 | + | // '=', '+', '$', ',', '.', '!', '~', '*', '\'', '(', ')', '[', ']', | |
| 2107 | + | // '%'. | |
| 2108 | + | // [Go] TODO Convert this into more reasonable logic. | |
| 2109 | + | for is_alpha(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == ';' || | |
| 2110 | + | parser.buffer[parser.buffer_pos] == '/' || parser.buffer[parser.buffer_pos] == '?' || | |
| 2111 | + | parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == '@' || | |
| 2112 | + | parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '=' || | |
| 2113 | + | parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '$' || | |
| 2114 | + | parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '.' || | |
| 2115 | + | parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '~' || | |
| 2116 | + | parser.buffer[parser.buffer_pos] == '*' || parser.buffer[parser.buffer_pos] == '\'' || | |
| 2117 | + | parser.buffer[parser.buffer_pos] == '(' || parser.buffer[parser.buffer_pos] == ')' || | |
| 2118 | + | parser.buffer[parser.buffer_pos] == '[' || parser.buffer[parser.buffer_pos] == ']' || | |
| 2119 | + | parser.buffer[parser.buffer_pos] == '%' { | |
| 2120 | + | // Check if it is a URI-escape sequence. | |
| 2121 | + | if parser.buffer[parser.buffer_pos] == '%' { | |
| 2122 | + | if !yaml_parser_scan_uri_escapes(parser, directive, start_mark, &s) { | |
| 2123 | + | return false | |
| 2124 | + | } | |
| 2125 | + | } else { | |
| 2126 | + | s = read(parser, s) | |
| 2127 | + | } | |
| 2128 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2129 | + | return false | |
| 2130 | + | } | |
| 2131 | + | hasTag = true | |
| 2132 | + | } | |
| 2133 | + | ||
| 2134 | + | if !hasTag { | |
| 2135 | + | yaml_parser_set_scanner_tag_error(parser, directive, | |
| 2136 | + | start_mark, "did not find expected tag URI") | |
| 2137 | + | return false | |
| 2138 | + | } | |
| 2139 | + | *uri = s | |
| 2140 | + | return true | |
| 2141 | + | } | |
| 2142 | + | ||
| 2143 | + | // Decode an URI-escape sequence corresponding to a single UTF-8 character. | |
| 2144 | + | func yaml_parser_scan_uri_escapes(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, s *[]byte) bool { | |
| 2145 | + | ||
| 2146 | + | // Decode the required number of characters. | |
| 2147 | + | w := 1024 | |
| 2148 | + | for w > 0 { | |
| 2149 | + | // Check for a URI-escaped octet. | |
| 2150 | + | if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { | |
| 2151 | + | return false | |
| 2152 | + | } | |
| 2153 | + | ||
| 2154 | + | if !(parser.buffer[parser.buffer_pos] == '%' && | |
| 2155 | + | is_hex(parser.buffer, parser.buffer_pos+1) && | |
| 2156 | + | is_hex(parser.buffer, parser.buffer_pos+2)) { | |
| 2157 | + | return yaml_parser_set_scanner_tag_error(parser, directive, | |
| 2158 | + | start_mark, "did not find URI escaped octet") | |
| 2159 | + | } | |
| 2160 | + | ||
| 2161 | + | // Get the octet. | |
| 2162 | + | octet := byte((as_hex(parser.buffer, parser.buffer_pos+1) << 4) + as_hex(parser.buffer, parser.buffer_pos+2)) | |
| 2163 | + | ||
| 2164 | + | // If it is the leading octet, determine the length of the UTF-8 sequence. | |
| 2165 | + | if w == 1024 { | |
| 2166 | + | w = width(octet) | |
| 2167 | + | if w == 0 { | |
| 2168 | + | return yaml_parser_set_scanner_tag_error(parser, directive, | |
| 2169 | + | start_mark, "found an incorrect leading UTF-8 octet") | |
| 2170 | + | } | |
| 2171 | + | } else { | |
| 2172 | + | // Check if the trailing octet is correct. | |
| 2173 | + | if octet&0xC0 != 0x80 { | |
| 2174 | + | return yaml_parser_set_scanner_tag_error(parser, directive, | |
| 2175 | + | start_mark, "found an incorrect trailing UTF-8 octet") | |
| 2176 | + | } | |
| 2177 | + | } | |
| 2178 | + | ||
| 2179 | + | // Copy the octet and move the pointers. | |
| 2180 | + | *s = append(*s, octet) | |
| 2181 | + | skip(parser) | |
| 2182 | + | skip(parser) | |
| 2183 | + | skip(parser) | |
| 2184 | + | w-- | |
| 2185 | + | } | |
| 2186 | + | return true | |
| 2187 | + | } | |
| 2188 | + | ||
| 2189 | + | // Scan a block scalar. | |
| 2190 | + | func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, literal bool) bool { | |
| 2191 | + | // Eat the indicator '|' or '>'. | |
| 2192 | + | start_mark := parser.mark | |
| 2193 | + | skip(parser) | |
| 2194 | + | ||
| 2195 | + | // Scan the additional block scalar indicators. | |
| 2196 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2197 | + | return false | |
| 2198 | + | } | |
| 2199 | + | ||
| 2200 | + | // Check for a chomping indicator. | |
| 2201 | + | var chomping, increment int | |
| 2202 | + | if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { | |
| 2203 | + | // Set the chomping method and eat the indicator. | |
| 2204 | + | if parser.buffer[parser.buffer_pos] == '+' { | |
| 2205 | + | chomping = +1 | |
| 2206 | + | } else { | |
| 2207 | + | chomping = -1 | |
| 2208 | + | } | |
| 2209 | + | skip(parser) | |
| 2210 | + | ||
| 2211 | + | // Check for an indentation indicator. | |
| 2212 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2213 | + | return false | |
| 2214 | + | } | |
| 2215 | + | if is_digit(parser.buffer, parser.buffer_pos) { | |
| 2216 | + | // Check that the indentation is greater than 0. | |
| 2217 | + | if parser.buffer[parser.buffer_pos] == '0' { | |
| 2218 | + | yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |
| 2219 | + | start_mark, "found an indentation indicator equal to 0") | |
| 2220 | + | return false | |
| 2221 | + | } | |
| 2222 | + | ||
| 2223 | + | // Get the indentation level and eat the indicator. | |
| 2224 | + | increment = as_digit(parser.buffer, parser.buffer_pos) | |
| 2225 | + | skip(parser) | |
| 2226 | + | } | |
| 2227 | + | ||
| 2228 | + | } else if is_digit(parser.buffer, parser.buffer_pos) { | |
| 2229 | + | // Do the same as above, but in the opposite order. | |
| 2230 | + | ||
| 2231 | + | if parser.buffer[parser.buffer_pos] == '0' { | |
| 2232 | + | yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |
| 2233 | + | start_mark, "found an indentation indicator equal to 0") | |
| 2234 | + | return false | |
| 2235 | + | } | |
| 2236 | + | increment = as_digit(parser.buffer, parser.buffer_pos) | |
| 2237 | + | skip(parser) | |
| 2238 | + | ||
| 2239 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2240 | + | return false | |
| 2241 | + | } | |
| 2242 | + | if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { | |
| 2243 | + | if parser.buffer[parser.buffer_pos] == '+' { | |
| 2244 | + | chomping = +1 | |
| 2245 | + | } else { | |
| 2246 | + | chomping = -1 | |
| 2247 | + | } | |
| 2248 | + | skip(parser) | |
| 2249 | + | } | |
| 2250 | + | } | |
| 2251 | + | ||
| 2252 | + | // Eat whitespaces and comments to the end of the line. | |
| 2253 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2254 | + | return false | |
| 2255 | + | } | |
| 2256 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |
| 2257 | + | skip(parser) | |
| 2258 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2259 | + | return false | |
| 2260 | + | } | |
| 2261 | + | } | |
| 2262 | + | if parser.buffer[parser.buffer_pos] == '#' { | |
| 2263 | + | if !yaml_parser_scan_line_comment(parser, start_mark) { | |
| 2264 | + | return false | |
| 2265 | + | } | |
| 2266 | + | for !is_breakz(parser.buffer, parser.buffer_pos) { | |
| 2267 | + | skip(parser) | |
| 2268 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2269 | + | return false | |
| 2270 | + | } | |
| 2271 | + | } | |
| 2272 | + | } | |
| 2273 | + | ||
| 2274 | + | // Check if we are at the end of the line. | |
| 2275 | + | if !is_breakz(parser.buffer, parser.buffer_pos) { | |
| 2276 | + | yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |
| 2277 | + | start_mark, "did not find expected comment or line break") | |
| 2278 | + | return false | |
| 2279 | + | } | |
| 2280 | + | ||
| 2281 | + | // Eat a line break. | |
| 2282 | + | if is_break(parser.buffer, parser.buffer_pos) { | |
| 2283 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2284 | + | return false | |
| 2285 | + | } | |
| 2286 | + | skip_line(parser) | |
| 2287 | + | } | |
| 2288 | + | ||
| 2289 | + | end_mark := parser.mark | |
| 2290 | + | ||
| 2291 | + | // Set the indentation level if it was specified. | |
| 2292 | + | var indent int | |
| 2293 | + | if increment > 0 { | |
| 2294 | + | if parser.indent >= 0 { | |
| 2295 | + | indent = parser.indent + increment | |
| 2296 | + | } else { | |
| 2297 | + | indent = increment | |
| 2298 | + | } | |
| 2299 | + | } | |
| 2300 | + | ||
| 2301 | + | // Scan the leading line breaks and determine the indentation level if needed. | |
| 2302 | + | var s, leading_break, trailing_breaks []byte | |
| 2303 | + | if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { | |
| 2304 | + | return false | |
| 2305 | + | } | |
| 2306 | + | ||
| 2307 | + | // Scan the block scalar content. | |
| 2308 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2309 | + | return false | |
| 2310 | + | } | |
| 2311 | + | var leading_blank, trailing_blank bool | |
| 2312 | + | for parser.mark.column == indent && !is_z(parser.buffer, parser.buffer_pos) { | |
| 2313 | + | // We are at the beginning of a non-empty line. | |
| 2314 | + | ||
| 2315 | + | // Is it a trailing whitespace? | |
| 2316 | + | trailing_blank = is_blank(parser.buffer, parser.buffer_pos) | |
| 2317 | + | ||
| 2318 | + | // Check if we need to fold the leading line break. | |
| 2319 | + | if !literal && !leading_blank && !trailing_blank && len(leading_break) > 0 && leading_break[0] == '\n' { | |
| 2320 | + | // Do we need to join the lines by space? | |
| 2321 | + | if len(trailing_breaks) == 0 { | |
| 2322 | + | s = append(s, ' ') | |
| 2323 | + | } | |
| 2324 | + | } else { | |
| 2325 | + | s = append(s, leading_break...) | |
| 2326 | + | } | |
| 2327 | + | leading_break = leading_break[:0] | |
| 2328 | + | ||
| 2329 | + | // Append the remaining line breaks. | |
| 2330 | + | s = append(s, trailing_breaks...) | |
| 2331 | + | trailing_breaks = trailing_breaks[:0] | |
| 2332 | + | ||
| 2333 | + | // Is it a leading whitespace? | |
| 2334 | + | leading_blank = is_blank(parser.buffer, parser.buffer_pos) | |
| 2335 | + | ||
| 2336 | + | // Consume the current line. | |
| 2337 | + | for !is_breakz(parser.buffer, parser.buffer_pos) { | |
| 2338 | + | s = read(parser, s) | |
| 2339 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2340 | + | return false | |
| 2341 | + | } | |
| 2342 | + | } | |
| 2343 | + | ||
| 2344 | + | // Consume the line break. | |
| 2345 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2346 | + | return false | |
| 2347 | + | } | |
| 2348 | + | ||
| 2349 | + | leading_break = read_line(parser, leading_break) | |
| 2350 | + | ||
| 2351 | + | // Eat the following indentation spaces and line breaks. | |
| 2352 | + | if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { | |
| 2353 | + | return false | |
| 2354 | + | } | |
| 2355 | + | } | |
| 2356 | + | ||
| 2357 | + | // Chomp the tail. | |
| 2358 | + | if chomping != -1 { | |
| 2359 | + | s = append(s, leading_break...) | |
| 2360 | + | } | |
| 2361 | + | if chomping == 1 { | |
| 2362 | + | s = append(s, trailing_breaks...) | |
| 2363 | + | } | |
| 2364 | + | ||
| 2365 | + | // Create a token. | |
| 2366 | + | *token = yaml_token_t{ | |
| 2367 | + | typ: yaml_SCALAR_TOKEN, | |
| 2368 | + | start_mark: start_mark, | |
| 2369 | + | end_mark: end_mark, | |
| 2370 | + | value: s, | |
| 2371 | + | style: yaml_LITERAL_SCALAR_STYLE, | |
| 2372 | + | } | |
| 2373 | + | if !literal { | |
| 2374 | + | token.style = yaml_FOLDED_SCALAR_STYLE | |
| 2375 | + | } | |
| 2376 | + | return true | |
| 2377 | + | } | |
| 2378 | + | ||
| 2379 | + | // Scan indentation spaces and line breaks for a block scalar. Determine the | |
| 2380 | + | // indentation level if needed. | |
| 2381 | + | func yaml_parser_scan_block_scalar_breaks(parser *yaml_parser_t, indent *int, breaks *[]byte, start_mark yaml_mark_t, end_mark *yaml_mark_t) bool { | |
| 2382 | + | *end_mark = parser.mark | |
| 2383 | + | ||
| 2384 | + | // Eat the indentation spaces and line breaks. | |
| 2385 | + | max_indent := 0 | |
| 2386 | + | for { | |
| 2387 | + | // Eat the indentation spaces. | |
| 2388 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2389 | + | return false | |
| 2390 | + | } | |
| 2391 | + | for (*indent == 0 || parser.mark.column < *indent) && is_space(parser.buffer, parser.buffer_pos) { | |
| 2392 | + | skip(parser) | |
| 2393 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2394 | + | return false | |
| 2395 | + | } | |
| 2396 | + | } | |
| 2397 | + | if parser.mark.column > max_indent { | |
| 2398 | + | max_indent = parser.mark.column | |
| 2399 | + | } | |
| 2400 | + | ||
| 2401 | + | // Check for a tab character messing the indentation. | |
| 2402 | + | if (*indent == 0 || parser.mark.column < *indent) && is_tab(parser.buffer, parser.buffer_pos) { | |
| 2403 | + | return yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |
| 2404 | + | start_mark, "found a tab character where an indentation space is expected") | |
| 2405 | + | } | |
| 2406 | + | ||
| 2407 | + | // Have we found a non-empty line? | |
| 2408 | + | if !is_break(parser.buffer, parser.buffer_pos) { | |
| 2409 | + | break | |
| 2410 | + | } | |
| 2411 | + | ||
| 2412 | + | // Consume the line break. | |
| 2413 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2414 | + | return false | |
| 2415 | + | } | |
| 2416 | + | // [Go] Should really be returning breaks instead. | |
| 2417 | + | *breaks = read_line(parser, *breaks) | |
| 2418 | + | *end_mark = parser.mark | |
| 2419 | + | } | |
| 2420 | + | ||
| 2421 | + | // Determine the indentation level if needed. | |
| 2422 | + | if *indent == 0 { | |
| 2423 | + | *indent = max_indent | |
| 2424 | + | if *indent < parser.indent+1 { | |
| 2425 | + | *indent = parser.indent + 1 | |
| 2426 | + | } | |
| 2427 | + | if *indent < 1 { | |
| 2428 | + | *indent = 1 | |
| 2429 | + | } | |
| 2430 | + | } | |
| 2431 | + | return true | |
| 2432 | + | } | |
| 2433 | + | ||
| 2434 | + | // Scan a quoted scalar. | |
| 2435 | + | func yaml_parser_scan_flow_scalar(parser *yaml_parser_t, token *yaml_token_t, single bool) bool { | |
| 2436 | + | // Eat the left quote. | |
| 2437 | + | start_mark := parser.mark | |
| 2438 | + | skip(parser) | |
| 2439 | + | ||
| 2440 | + | // Consume the content of the quoted scalar. | |
| 2441 | + | var s, leading_break, trailing_breaks, whitespaces []byte | |
| 2442 | + | for { | |
| 2443 | + | // Check that there are no document indicators at the beginning of the line. | |
| 2444 | + | if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { | |
| 2445 | + | return false | |
| 2446 | + | } | |
| 2447 | + | ||
| 2448 | + | if parser.mark.column == 0 && | |
| 2449 | + | ((parser.buffer[parser.buffer_pos+0] == '-' && | |
| 2450 | + | parser.buffer[parser.buffer_pos+1] == '-' && | |
| 2451 | + | parser.buffer[parser.buffer_pos+2] == '-') || | |
| 2452 | + | (parser.buffer[parser.buffer_pos+0] == '.' && | |
| 2453 | + | parser.buffer[parser.buffer_pos+1] == '.' && | |
| 2454 | + | parser.buffer[parser.buffer_pos+2] == '.')) && | |
| 2455 | + | is_blankz(parser.buffer, parser.buffer_pos+3) { | |
| 2456 | + | yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", | |
| 2457 | + | start_mark, "found unexpected document indicator") | |
| 2458 | + | return false | |
| 2459 | + | } | |
| 2460 | + | ||
| 2461 | + | // Check for EOF. | |
| 2462 | + | if is_z(parser.buffer, parser.buffer_pos) { | |
| 2463 | + | yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", | |
| 2464 | + | start_mark, "found unexpected end of stream") | |
| 2465 | + | return false | |
| 2466 | + | } | |
| 2467 | + | ||
| 2468 | + | // Consume non-blank characters. | |
| 2469 | + | leading_blanks := false | |
| 2470 | + | for !is_blankz(parser.buffer, parser.buffer_pos) { | |
| 2471 | + | if single && parser.buffer[parser.buffer_pos] == '\'' && parser.buffer[parser.buffer_pos+1] == '\'' { | |
| 2472 | + | // Is is an escaped single quote. | |
| 2473 | + | s = append(s, '\'') | |
| 2474 | + | skip(parser) | |
| 2475 | + | skip(parser) | |
| 2476 | + | ||
| 2477 | + | } else if single && parser.buffer[parser.buffer_pos] == '\'' { | |
| 2478 | + | // It is a right single quote. | |
| 2479 | + | break | |
| 2480 | + | } else if !single && parser.buffer[parser.buffer_pos] == '"' { | |
| 2481 | + | // It is a right double quote. | |
| 2482 | + | break | |
| 2483 | + | ||
| 2484 | + | } else if !single && parser.buffer[parser.buffer_pos] == '\\' && is_break(parser.buffer, parser.buffer_pos+1) { | |
| 2485 | + | // It is an escaped line break. | |
| 2486 | + | if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { | |
| 2487 | + | return false | |
| 2488 | + | } | |
| 2489 | + | skip(parser) | |
| 2490 | + | skip_line(parser) | |
| 2491 | + | leading_blanks = true | |
| 2492 | + | break | |
| 2493 | + | ||
| 2494 | + | } else if !single && parser.buffer[parser.buffer_pos] == '\\' { | |
| 2495 | + | // It is an escape sequence. | |
| 2496 | + | code_length := 0 | |
| 2497 | + | ||
| 2498 | + | // Check the escape character. | |
| 2499 | + | switch parser.buffer[parser.buffer_pos+1] { | |
| 2500 | + | case '0': | |
| 2501 | + | s = append(s, 0) | |
| 2502 | + | case 'a': | |
| 2503 | + | s = append(s, '\x07') | |
| 2504 | + | case 'b': | |
| 2505 | + | s = append(s, '\x08') | |
| 2506 | + | case 't', '\t': | |
| 2507 | + | s = append(s, '\x09') | |
| 2508 | + | case 'n': | |
| 2509 | + | s = append(s, '\x0A') | |
| 2510 | + | case 'v': | |
| 2511 | + | s = append(s, '\x0B') | |
| 2512 | + | case 'f': | |
| 2513 | + | s = append(s, '\x0C') | |
| 2514 | + | case 'r': | |
| 2515 | + | s = append(s, '\x0D') | |
| 2516 | + | case 'e': | |
| 2517 | + | s = append(s, '\x1B') | |
| 2518 | + | case ' ': | |
| 2519 | + | s = append(s, '\x20') | |
| 2520 | + | case '"': | |
| 2521 | + | s = append(s, '"') | |
| 2522 | + | case '\'': | |
| 2523 | + | s = append(s, '\'') | |
| 2524 | + | case '\\': | |
| 2525 | + | s = append(s, '\\') | |
| 2526 | + | case 'N': // NEL (#x85) | |
| 2527 | + | s = append(s, '\xC2') | |
| 2528 | + | s = append(s, '\x85') | |
| 2529 | + | case '_': // #xA0 | |
| 2530 | + | s = append(s, '\xC2') | |
| 2531 | + | s = append(s, '\xA0') | |
| 2532 | + | case 'L': // LS (#x2028) | |
| 2533 | + | s = append(s, '\xE2') | |
| 2534 | + | s = append(s, '\x80') | |
| 2535 | + | s = append(s, '\xA8') | |
| 2536 | + | case 'P': // PS (#x2029) | |
| 2537 | + | s = append(s, '\xE2') | |
| 2538 | + | s = append(s, '\x80') | |
| 2539 | + | s = append(s, '\xA9') | |
| 2540 | + | case 'x': | |
| 2541 | + | code_length = 2 | |
| 2542 | + | case 'u': | |
| 2543 | + | code_length = 4 | |
| 2544 | + | case 'U': | |
| 2545 | + | code_length = 8 | |
| 2546 | + | default: | |
| 2547 | + | yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", | |
| 2548 | + | start_mark, "found unknown escape character") | |
| 2549 | + | return false | |
| 2550 | + | } | |
| 2551 | + | ||
| 2552 | + | skip(parser) | |
| 2553 | + | skip(parser) | |
| 2554 | + | ||
| 2555 | + | // Consume an arbitrary escape code. | |
| 2556 | + | if code_length > 0 { | |
| 2557 | + | var value int | |
| 2558 | + | ||
| 2559 | + | // Scan the character value. | |
| 2560 | + | if parser.unread < code_length && !yaml_parser_update_buffer(parser, code_length) { | |
| 2561 | + | return false | |
| 2562 | + | } | |
| 2563 | + | for k := 0; k < code_length; k++ { | |
| 2564 | + | if !is_hex(parser.buffer, parser.buffer_pos+k) { | |
| 2565 | + | yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", | |
| 2566 | + | start_mark, "did not find expected hexdecimal number") | |
| 2567 | + | return false | |
| 2568 | + | } | |
| 2569 | + | value = (value << 4) + as_hex(parser.buffer, parser.buffer_pos+k) | |
| 2570 | + | } | |
| 2571 | + | ||
| 2572 | + | // Check the value and write the character. | |
| 2573 | + | if (value >= 0xD800 && value <= 0xDFFF) || value > 0x10FFFF { | |
| 2574 | + | yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", | |
| 2575 | + | start_mark, "found invalid Unicode character escape code") | |
| 2576 | + | return false | |
| 2577 | + | } | |
| 2578 | + | if value <= 0x7F { | |
| 2579 | + | s = append(s, byte(value)) | |
| 2580 | + | } else if value <= 0x7FF { | |
| 2581 | + | s = append(s, byte(0xC0+(value>>6))) | |
| 2582 | + | s = append(s, byte(0x80+(value&0x3F))) | |
| 2583 | + | } else if value <= 0xFFFF { | |
| 2584 | + | s = append(s, byte(0xE0+(value>>12))) | |
| 2585 | + | s = append(s, byte(0x80+((value>>6)&0x3F))) | |
| 2586 | + | s = append(s, byte(0x80+(value&0x3F))) | |
| 2587 | + | } else { | |
| 2588 | + | s = append(s, byte(0xF0+(value>>18))) | |
| 2589 | + | s = append(s, byte(0x80+((value>>12)&0x3F))) | |
| 2590 | + | s = append(s, byte(0x80+((value>>6)&0x3F))) | |
| 2591 | + | s = append(s, byte(0x80+(value&0x3F))) | |
| 2592 | + | } | |
| 2593 | + | ||
| 2594 | + | // Advance the pointer. | |
| 2595 | + | for k := 0; k < code_length; k++ { | |
| 2596 | + | skip(parser) | |
| 2597 | + | } | |
| 2598 | + | } | |
| 2599 | + | } else { | |
| 2600 | + | // It is a non-escaped non-blank character. | |
| 2601 | + | s = read(parser, s) | |
| 2602 | + | } | |
| 2603 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2604 | + | return false | |
| 2605 | + | } | |
| 2606 | + | } | |
| 2607 | + | ||
| 2608 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2609 | + | return false | |
| 2610 | + | } | |
| 2611 | + | ||
| 2612 | + | // Check if we are at the end of the scalar. | |
| 2613 | + | if single { | |
| 2614 | + | if parser.buffer[parser.buffer_pos] == '\'' { | |
| 2615 | + | break | |
| 2616 | + | } | |
| 2617 | + | } else { | |
| 2618 | + | if parser.buffer[parser.buffer_pos] == '"' { | |
| 2619 | + | break | |
| 2620 | + | } | |
| 2621 | + | } | |
| 2622 | + | ||
| 2623 | + | // Consume blank characters. | |
| 2624 | + | for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { | |
| 2625 | + | if is_blank(parser.buffer, parser.buffer_pos) { | |
| 2626 | + | // Consume a space or a tab character. | |
| 2627 | + | if !leading_blanks { | |
| 2628 | + | whitespaces = read(parser, whitespaces) | |
| 2629 | + | } else { | |
| 2630 | + | skip(parser) | |
| 2631 | + | } | |
| 2632 | + | } else { | |
| 2633 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2634 | + | return false | |
| 2635 | + | } | |
| 2636 | + | ||
| 2637 | + | // Check if it is a first line break. | |
| 2638 | + | if !leading_blanks { | |
| 2639 | + | whitespaces = whitespaces[:0] | |
| 2640 | + | leading_break = read_line(parser, leading_break) | |
| 2641 | + | leading_blanks = true | |
| 2642 | + | } else { | |
| 2643 | + | trailing_breaks = read_line(parser, trailing_breaks) | |
| 2644 | + | } | |
| 2645 | + | } | |
| 2646 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2647 | + | return false | |
| 2648 | + | } | |
| 2649 | + | } | |
| 2650 | + | ||
| 2651 | + | // Join the whitespaces or fold line breaks. | |
| 2652 | + | if leading_blanks { | |
| 2653 | + | // Do we need to fold line breaks? | |
| 2654 | + | if len(leading_break) > 0 && leading_break[0] == '\n' { | |
| 2655 | + | if len(trailing_breaks) == 0 { | |
| 2656 | + | s = append(s, ' ') | |
| 2657 | + | } else { | |
| 2658 | + | s = append(s, trailing_breaks...) | |
| 2659 | + | } | |
| 2660 | + | } else { | |
| 2661 | + | s = append(s, leading_break...) | |
| 2662 | + | s = append(s, trailing_breaks...) | |
| 2663 | + | } | |
| 2664 | + | trailing_breaks = trailing_breaks[:0] | |
| 2665 | + | leading_break = leading_break[:0] | |
| 2666 | + | } else { | |
| 2667 | + | s = append(s, whitespaces...) | |
| 2668 | + | whitespaces = whitespaces[:0] | |
| 2669 | + | } | |
| 2670 | + | } | |
| 2671 | + | ||
| 2672 | + | // Eat the right quote. | |
| 2673 | + | skip(parser) | |
| 2674 | + | end_mark := parser.mark | |
| 2675 | + | ||
| 2676 | + | // Create a token. | |
| 2677 | + | *token = yaml_token_t{ | |
| 2678 | + | typ: yaml_SCALAR_TOKEN, | |
| 2679 | + | start_mark: start_mark, | |
| 2680 | + | end_mark: end_mark, | |
| 2681 | + | value: s, | |
| 2682 | + | style: yaml_SINGLE_QUOTED_SCALAR_STYLE, | |
| 2683 | + | } | |
| 2684 | + | if !single { | |
| 2685 | + | token.style = yaml_DOUBLE_QUOTED_SCALAR_STYLE | |
| 2686 | + | } | |
| 2687 | + | return true | |
| 2688 | + | } | |
| 2689 | + | ||
| 2690 | + | // Scan a plain scalar. | |
| 2691 | + | func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) bool { | |
| 2692 | + | ||
| 2693 | + | var s, leading_break, trailing_breaks, whitespaces []byte | |
| 2694 | + | var leading_blanks bool | |
| 2695 | + | var indent = parser.indent + 1 | |
| 2696 | + | ||
| 2697 | + | start_mark := parser.mark | |
| 2698 | + | end_mark := parser.mark | |
| 2699 | + | ||
| 2700 | + | // Consume the content of the plain scalar. | |
| 2701 | + | for { | |
| 2702 | + | // Check for a document indicator. | |
| 2703 | + | if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { | |
| 2704 | + | return false | |
| 2705 | + | } | |
| 2706 | + | if parser.mark.column == 0 && | |
| 2707 | + | ((parser.buffer[parser.buffer_pos+0] == '-' && | |
| 2708 | + | parser.buffer[parser.buffer_pos+1] == '-' && | |
| 2709 | + | parser.buffer[parser.buffer_pos+2] == '-') || | |
| 2710 | + | (parser.buffer[parser.buffer_pos+0] == '.' && | |
| 2711 | + | parser.buffer[parser.buffer_pos+1] == '.' && | |
| 2712 | + | parser.buffer[parser.buffer_pos+2] == '.')) && | |
| 2713 | + | is_blankz(parser.buffer, parser.buffer_pos+3) { | |
| 2714 | + | break | |
| 2715 | + | } | |
| 2716 | + | ||
| 2717 | + | // Check for a comment. | |
| 2718 | + | if parser.buffer[parser.buffer_pos] == '#' { | |
| 2719 | + | break | |
| 2720 | + | } | |
| 2721 | + | ||
| 2722 | + | // Consume non-blank characters. | |
| 2723 | + | for !is_blankz(parser.buffer, parser.buffer_pos) { | |
| 2724 | + | ||
| 2725 | + | // Check for indicators that may end a plain scalar. | |
| 2726 | + | if (parser.buffer[parser.buffer_pos] == ':' && is_blankz(parser.buffer, parser.buffer_pos+1)) || | |
| 2727 | + | (parser.flow_level > 0 && | |
| 2728 | + | (parser.buffer[parser.buffer_pos] == ',' || | |
| 2729 | + | parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == '[' || | |
| 2730 | + | parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || | |
| 2731 | + | parser.buffer[parser.buffer_pos] == '}')) { | |
| 2732 | + | break | |
| 2733 | + | } | |
| 2734 | + | ||
| 2735 | + | // Check if we need to join whitespaces and breaks. | |
| 2736 | + | if leading_blanks || len(whitespaces) > 0 { | |
| 2737 | + | if leading_blanks { | |
| 2738 | + | // Do we need to fold line breaks? | |
| 2739 | + | if leading_break[0] == '\n' { | |
| 2740 | + | if len(trailing_breaks) == 0 { | |
| 2741 | + | s = append(s, ' ') | |
| 2742 | + | } else { | |
| 2743 | + | s = append(s, trailing_breaks...) | |
| 2744 | + | } | |
| 2745 | + | } else { | |
| 2746 | + | s = append(s, leading_break...) | |
| 2747 | + | s = append(s, trailing_breaks...) | |
| 2748 | + | } | |
| 2749 | + | trailing_breaks = trailing_breaks[:0] | |
| 2750 | + | leading_break = leading_break[:0] | |
| 2751 | + | leading_blanks = false | |
| 2752 | + | } else { | |
| 2753 | + | s = append(s, whitespaces...) | |
| 2754 | + | whitespaces = whitespaces[:0] | |
| 2755 | + | } | |
| 2756 | + | } | |
| 2757 | + | ||
| 2758 | + | // Copy the character. | |
| 2759 | + | s = read(parser, s) | |
| 2760 | + | ||
| 2761 | + | end_mark = parser.mark | |
| 2762 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2763 | + | return false | |
| 2764 | + | } | |
| 2765 | + | } | |
| 2766 | + | ||
| 2767 | + | // Is it the end? | |
| 2768 | + | if !(is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos)) { | |
| 2769 | + | break | |
| 2770 | + | } | |
| 2771 | + | ||
| 2772 | + | // Consume blank characters. | |
| 2773 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2774 | + | return false | |
| 2775 | + | } | |
| 2776 | + | ||
| 2777 | + | for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { | |
| 2778 | + | if is_blank(parser.buffer, parser.buffer_pos) { | |
| 2779 | + | ||
| 2780 | + | // Check for tab characters that abuse indentation. | |
| 2781 | + | if leading_blanks && parser.mark.column < indent && is_tab(parser.buffer, parser.buffer_pos) { | |
| 2782 | + | yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", | |
| 2783 | + | start_mark, "found a tab character that violates indentation") | |
| 2784 | + | return false | |
| 2785 | + | } | |
| 2786 | + | ||
| 2787 | + | // Consume a space or a tab character. | |
| 2788 | + | if !leading_blanks { | |
| 2789 | + | whitespaces = read(parser, whitespaces) | |
| 2790 | + | } else { | |
| 2791 | + | skip(parser) | |
| 2792 | + | } | |
| 2793 | + | } else { | |
| 2794 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2795 | + | return false | |
| 2796 | + | } | |
| 2797 | + | ||
| 2798 | + | // Check if it is a first line break. | |
| 2799 | + | if !leading_blanks { | |
| 2800 | + | whitespaces = whitespaces[:0] | |
| 2801 | + | leading_break = read_line(parser, leading_break) | |
| 2802 | + | leading_blanks = true | |
| 2803 | + | } else { | |
| 2804 | + | trailing_breaks = read_line(parser, trailing_breaks) | |
| 2805 | + | } | |
| 2806 | + | } | |
| 2807 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2808 | + | return false | |
| 2809 | + | } | |
| 2810 | + | } | |
| 2811 | + | ||
| 2812 | + | // Check indentation level. | |
| 2813 | + | if parser.flow_level == 0 && parser.mark.column < indent { | |
| 2814 | + | break | |
| 2815 | + | } | |
| 2816 | + | } | |
| 2817 | + | ||
| 2818 | + | // Create a token. | |
| 2819 | + | *token = yaml_token_t{ | |
| 2820 | + | typ: yaml_SCALAR_TOKEN, | |
| 2821 | + | start_mark: start_mark, | |
| 2822 | + | end_mark: end_mark, | |
| 2823 | + | value: s, | |
| 2824 | + | style: yaml_PLAIN_SCALAR_STYLE, | |
| 2825 | + | } | |
| 2826 | + | ||
| 2827 | + | // Note that we change the 'simple_key_allowed' flag. | |
| 2828 | + | if leading_blanks { | |
| 2829 | + | parser.simple_key_allowed = true | |
| 2830 | + | } | |
| 2831 | + | return true | |
| 2832 | + | } | |
| 2833 | + | ||
| 2834 | + | func yaml_parser_scan_line_comment(parser *yaml_parser_t, token_mark yaml_mark_t) bool { | |
| 2835 | + | if parser.newlines > 0 { | |
| 2836 | + | return true | |
| 2837 | + | } | |
| 2838 | + | ||
| 2839 | + | var start_mark yaml_mark_t | |
| 2840 | + | var text []byte | |
| 2841 | + | ||
| 2842 | + | for peek := 0; peek < 512; peek++ { | |
| 2843 | + | if parser.unread < peek+1 && !yaml_parser_update_buffer(parser, peek+1) { | |
| 2844 | + | break | |
| 2845 | + | } | |
| 2846 | + | if is_blank(parser.buffer, parser.buffer_pos+peek) { | |
| 2847 | + | continue | |
| 2848 | + | } | |
| 2849 | + | if parser.buffer[parser.buffer_pos+peek] == '#' { | |
| 2850 | + | seen := parser.mark.index+peek | |
| 2851 | + | for { | |
| 2852 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 2853 | + | return false | |
| 2854 | + | } | |
| 2855 | + | if is_breakz(parser.buffer, parser.buffer_pos) { | |
| 2856 | + | if parser.mark.index >= seen { | |
| 2857 | + | break | |
| 2858 | + | } | |
| 2859 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 2860 | + | return false | |
| 2861 | + | } | |
| 2862 | + | skip_line(parser) | |
| 2863 | + | } else if parser.mark.index >= seen { | |
| 2864 | + | if len(text) == 0 { | |
| 2865 | + | start_mark = parser.mark | |
| 2866 | + | } | |
| 2867 | + | text = read(parser, text) | |
| 2868 | + | } else { | |
| 2869 | + | skip(parser) | |
| 2870 | + | } | |
| 2871 | + | } | |
| 2872 | + | } | |
| 2873 | + | break | |
| 2874 | + | } | |
| 2875 | + | if len(text) > 0 { | |
| 2876 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |
| 2877 | + | token_mark: token_mark, | |
| 2878 | + | start_mark: start_mark, | |
| 2879 | + | line: text, | |
| 2880 | + | }) | |
| 2881 | + | } | |
| 2882 | + | return true | |
| 2883 | + | } | |
| 2884 | + | ||
| 2885 | + | func yaml_parser_scan_comments(parser *yaml_parser_t, scan_mark yaml_mark_t) bool { | |
| 2886 | + | token := parser.tokens[len(parser.tokens)-1] | |
| 2887 | + | ||
| 2888 | + | if token.typ == yaml_FLOW_ENTRY_TOKEN && len(parser.tokens) > 1 { | |
| 2889 | + | token = parser.tokens[len(parser.tokens)-2] | |
| 2890 | + | } | |
| 2891 | + | ||
| 2892 | + | var token_mark = token.start_mark | |
| 2893 | + | var start_mark yaml_mark_t | |
| 2894 | + | var next_indent = parser.indent | |
| 2895 | + | if next_indent < 0 { | |
| 2896 | + | next_indent = 0 | |
| 2897 | + | } | |
| 2898 | + | ||
| 2899 | + | var recent_empty = false | |
| 2900 | + | var first_empty = parser.newlines <= 1 | |
| 2901 | + | ||
| 2902 | + | var line = parser.mark.line | |
| 2903 | + | var column = parser.mark.column | |
| 2904 | + | ||
| 2905 | + | var text []byte | |
| 2906 | + | ||
| 2907 | + | // The foot line is the place where a comment must start to | |
| 2908 | + | // still be considered as a foot of the prior content. | |
| 2909 | + | // If there's some content in the currently parsed line, then | |
| 2910 | + | // the foot is the line below it. | |
| 2911 | + | var foot_line = -1 | |
| 2912 | + | if scan_mark.line > 0 { | |
| 2913 | + | foot_line = parser.mark.line-parser.newlines+1 | |
| 2914 | + | if parser.newlines == 0 && parser.mark.column > 1 { | |
| 2915 | + | foot_line++ | |
| 2916 | + | } | |
| 2917 | + | } | |
| 2918 | + | ||
| 2919 | + | var peek = 0 | |
| 2920 | + | for ; peek < 512; peek++ { | |
| 2921 | + | if parser.unread < peek+1 && !yaml_parser_update_buffer(parser, peek+1) { | |
| 2922 | + | break | |
| 2923 | + | } | |
| 2924 | + | column++ | |
| 2925 | + | if is_blank(parser.buffer, parser.buffer_pos+peek) { | |
| 2926 | + | continue | |
| 2927 | + | } | |
| 2928 | + | c := parser.buffer[parser.buffer_pos+peek] | |
| 2929 | + | var close_flow = parser.flow_level > 0 && (c == ']' || c == '}') | |
| 2930 | + | if close_flow || is_breakz(parser.buffer, parser.buffer_pos+peek) { | |
| 2931 | + | // Got line break or terminator. | |
| 2932 | + | if close_flow || !recent_empty { | |
| 2933 | + | if close_flow || first_empty && (start_mark.line == foot_line && token.typ != yaml_VALUE_TOKEN || start_mark.column-1 < next_indent) { | |
| 2934 | + | // This is the first empty line and there were no empty lines before, | |
| 2935 | + | // so this initial part of the comment is a foot of the prior token | |
| 2936 | + | // instead of being a head for the following one. Split it up. | |
| 2937 | + | // Alternatively, this might also be the last comment inside a flow | |
| 2938 | + | // scope, so it must be a footer. | |
| 2939 | + | if len(text) > 0 { | |
| 2940 | + | if start_mark.column-1 < next_indent { | |
| 2941 | + | // If dedented it's unrelated to the prior token. | |
| 2942 | + | token_mark = start_mark | |
| 2943 | + | } | |
| 2944 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |
| 2945 | + | scan_mark: scan_mark, | |
| 2946 | + | token_mark: token_mark, | |
| 2947 | + | start_mark: start_mark, | |
| 2948 | + | end_mark: yaml_mark_t{parser.mark.index + peek, line, column}, | |
| 2949 | + | foot: text, | |
| 2950 | + | }) | |
| 2951 | + | scan_mark = yaml_mark_t{parser.mark.index + peek, line, column} | |
| 2952 | + | token_mark = scan_mark | |
| 2953 | + | text = nil | |
| 2954 | + | } | |
| 2955 | + | } else { | |
| 2956 | + | if len(text) > 0 && parser.buffer[parser.buffer_pos+peek] != 0 { | |
| 2957 | + | text = append(text, '\n') | |
| 2958 | + | } | |
| 2959 | + | } | |
| 2960 | + | } | |
| 2961 | + | if !is_break(parser.buffer, parser.buffer_pos+peek) { | |
| 2962 | + | break | |
| 2963 | + | } | |
| 2964 | + | first_empty = false | |
| 2965 | + | recent_empty = true | |
| 2966 | + | column = 0 | |
| 2967 | + | line++ | |
| 2968 | + | continue | |
| 2969 | + | } | |
| 2970 | + | ||
| 2971 | + | if len(text) > 0 && (close_flow || column-1 < next_indent && column != start_mark.column) { | |
| 2972 | + | // The comment at the different indentation is a foot of the | |
| 2973 | + | // preceding data rather than a head of the upcoming one. | |
| 2974 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |
| 2975 | + | scan_mark: scan_mark, | |
| 2976 | + | token_mark: token_mark, | |
| 2977 | + | start_mark: start_mark, | |
| 2978 | + | end_mark: yaml_mark_t{parser.mark.index + peek, line, column}, | |
| 2979 | + | foot: text, | |
| 2980 | + | }) | |
| 2981 | + | scan_mark = yaml_mark_t{parser.mark.index + peek, line, column} | |
| 2982 | + | token_mark = scan_mark | |
| 2983 | + | text = nil | |
| 2984 | + | } | |
| 2985 | + | ||
| 2986 | + | if parser.buffer[parser.buffer_pos+peek] != '#' { | |
| 2987 | + | break | |
| 2988 | + | } | |
| 2989 | + | ||
| 2990 | + | if len(text) == 0 { | |
| 2991 | + | start_mark = yaml_mark_t{parser.mark.index + peek, line, column} | |
| 2992 | + | } else { | |
| 2993 | + | text = append(text, '\n') | |
| 2994 | + | } | |
| 2995 | + | ||
| 2996 | + | recent_empty = false | |
| 2997 | + | ||
| 2998 | + | // Consume until after the consumed comment line. | |
| 2999 | + | seen := parser.mark.index+peek | |
| 3000 | + | for { | |
| 3001 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |
| 3002 | + | return false | |
| 3003 | + | } | |
| 3004 | + | if is_breakz(parser.buffer, parser.buffer_pos) { | |
| 3005 | + | if parser.mark.index >= seen { | |
| 3006 | + | break | |
| 3007 | + | } | |
| 3008 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |
| 3009 | + | return false | |
| 3010 | + | } | |
| 3011 | + | skip_line(parser) | |
| 3012 | + | } else if parser.mark.index >= seen { | |
| 3013 | + | text = read(parser, text) | |
| 3014 | + | } else { | |
| 3015 | + | skip(parser) | |
| 3016 | + | } | |
| 3017 | + | } | |
| 3018 | + | ||
| 3019 | + | peek = 0 | |
| 3020 | + | column = 0 | |
| 3021 | + | line = parser.mark.line | |
| 3022 | + | next_indent = parser.indent | |
| 3023 | + | if next_indent < 0 { | |
| 3024 | + | next_indent = 0 | |
| 3025 | + | } | |
| 3026 | + | } | |
| 3027 | + | ||
| 3028 | + | if len(text) > 0 { | |
| 3029 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |
| 3030 | + | scan_mark: scan_mark, | |
| 3031 | + | token_mark: start_mark, | |
| 3032 | + | start_mark: start_mark, | |
| 3033 | + | end_mark: yaml_mark_t{parser.mark.index + peek - 1, line, column}, | |
| 3034 | + | head: text, | |
| 3035 | + | }) | |
| 3036 | + | } | |
| 3037 | + | return true | |
| 3038 | + | } | |
| @@ -0,0 +1,3038 @@ | |||||
| 1 | + | // | |||
| 2 | + | // Copyright (c) 2011-2019 Canonical Ltd | |||
| 3 | + | // Copyright (c) 2006-2010 Kirill Simonov | |||
| 4 | + | // | |||
| 5 | + | // Permission is hereby granted, free of charge, to any person obtaining a copy of | |||
| 6 | + | // this software and associated documentation files (the "Software"), to deal in | |||
| 7 | + | // the Software without restriction, including without limitation the rights to | |||
| 8 | + | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |||
| 9 | + | // of the Software, and to permit persons to whom the Software is furnished to do | |||
| 10 | + | // so, subject to the following conditions: | |||
| 11 | + | // | |||
| 12 | + | // The above copyright notice and this permission notice shall be included in all | |||
| 13 | + | // copies or substantial portions of the Software. | |||
| 14 | + | // | |||
| 15 | + | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||
| 16 | + | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
| 17 | + | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||
| 18 | + | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||
| 19 | + | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
| 20 | + | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
| 21 | + | // SOFTWARE. | |||
| 22 | + | ||||
| 23 | + | package yaml | |||
| 24 | + | ||||
| 25 | + | import ( | |||
| 26 | + | "bytes" | |||
| 27 | + | "fmt" | |||
| 28 | + | ) | |||
| 29 | + | ||||
| 30 | + | // Introduction | |||
| 31 | + | // ************ | |||
| 32 | + | // | |||
| 33 | + | // The following notes assume that you are familiar with the YAML specification | |||
| 34 | + | // (http://yaml.org/spec/1.2/spec.html). We mostly follow it, although in | |||
| 35 | + | // some cases we are less restrictive that it requires. | |||
| 36 | + | // | |||
| 37 | + | // The process of transforming a YAML stream into a sequence of events is | |||
| 38 | + | // divided on two steps: Scanning and Parsing. | |||
| 39 | + | // | |||
| 40 | + | // The Scanner transforms the input stream into a sequence of tokens, while the | |||
| 41 | + | // parser transform the sequence of tokens produced by the Scanner into a | |||
| 42 | + | // sequence of parsing events. | |||
| 43 | + | // | |||
| 44 | + | // The Scanner is rather clever and complicated. The Parser, on the contrary, | |||
| 45 | + | // is a straightforward implementation of a recursive-descendant parser (or, | |||
| 46 | + | // LL(1) parser, as it is usually called). | |||
| 47 | + | // | |||
| 48 | + | // Actually there are two issues of Scanning that might be called "clever", the | |||
| 49 | + | // rest is quite straightforward. The issues are "block collection start" and | |||
| 50 | + | // "simple keys". Both issues are explained below in details. | |||
| 51 | + | // | |||
| 52 | + | // Here the Scanning step is explained and implemented. We start with the list | |||
| 53 | + | // of all the tokens produced by the Scanner together with short descriptions. | |||
| 54 | + | // | |||
| 55 | + | // Now, tokens: | |||
| 56 | + | // | |||
| 57 | + | // STREAM-START(encoding) # The stream start. | |||
| 58 | + | // STREAM-END # The stream end. | |||
| 59 | + | // VERSION-DIRECTIVE(major,minor) # The '%YAML' directive. | |||
| 60 | + | // TAG-DIRECTIVE(handle,prefix) # The '%TAG' directive. | |||
| 61 | + | // DOCUMENT-START # '---' | |||
| 62 | + | // DOCUMENT-END # '...' | |||
| 63 | + | // BLOCK-SEQUENCE-START # Indentation increase denoting a block | |||
| 64 | + | // BLOCK-MAPPING-START # sequence or a block mapping. | |||
| 65 | + | // BLOCK-END # Indentation decrease. | |||
| 66 | + | // FLOW-SEQUENCE-START # '[' | |||
| 67 | + | // FLOW-SEQUENCE-END # ']' | |||
| 68 | + | // BLOCK-SEQUENCE-START # '{' | |||
| 69 | + | // BLOCK-SEQUENCE-END # '}' | |||
| 70 | + | // BLOCK-ENTRY # '-' | |||
| 71 | + | // FLOW-ENTRY # ',' | |||
| 72 | + | // KEY # '?' or nothing (simple keys). | |||
| 73 | + | // VALUE # ':' | |||
| 74 | + | // ALIAS(anchor) # '*anchor' | |||
| 75 | + | // ANCHOR(anchor) # '&anchor' | |||
| 76 | + | // TAG(handle,suffix) # '!handle!suffix' | |||
| 77 | + | // SCALAR(value,style) # A scalar. | |||
| 78 | + | // | |||
| 79 | + | // The following two tokens are "virtual" tokens denoting the beginning and the | |||
| 80 | + | // end of the stream: | |||
| 81 | + | // | |||
| 82 | + | // STREAM-START(encoding) | |||
| 83 | + | // STREAM-END | |||
| 84 | + | // | |||
| 85 | + | // We pass the information about the input stream encoding with the | |||
| 86 | + | // STREAM-START token. | |||
| 87 | + | // | |||
| 88 | + | // The next two tokens are responsible for tags: | |||
| 89 | + | // | |||
| 90 | + | // VERSION-DIRECTIVE(major,minor) | |||
| 91 | + | // TAG-DIRECTIVE(handle,prefix) | |||
| 92 | + | // | |||
| 93 | + | // Example: | |||
| 94 | + | // | |||
| 95 | + | // %YAML 1.1 | |||
| 96 | + | // %TAG ! !foo | |||
| 97 | + | // %TAG !yaml! tag:yaml.org,2002: | |||
| 98 | + | // --- | |||
| 99 | + | // | |||
| 100 | + | // The correspoding sequence of tokens: | |||
| 101 | + | // | |||
| 102 | + | // STREAM-START(utf-8) | |||
| 103 | + | // VERSION-DIRECTIVE(1,1) | |||
| 104 | + | // TAG-DIRECTIVE("!","!foo") | |||
| 105 | + | // TAG-DIRECTIVE("!yaml","tag:yaml.org,2002:") | |||
| 106 | + | // DOCUMENT-START | |||
| 107 | + | // STREAM-END | |||
| 108 | + | // | |||
| 109 | + | // Note that the VERSION-DIRECTIVE and TAG-DIRECTIVE tokens occupy a whole | |||
| 110 | + | // line. | |||
| 111 | + | // | |||
| 112 | + | // The document start and end indicators are represented by: | |||
| 113 | + | // | |||
| 114 | + | // DOCUMENT-START | |||
| 115 | + | // DOCUMENT-END | |||
| 116 | + | // | |||
| 117 | + | // Note that if a YAML stream contains an implicit document (without '---' | |||
| 118 | + | // and '...' indicators), no DOCUMENT-START and DOCUMENT-END tokens will be | |||
| 119 | + | // produced. | |||
| 120 | + | // | |||
| 121 | + | // In the following examples, we present whole documents together with the | |||
| 122 | + | // produced tokens. | |||
| 123 | + | // | |||
| 124 | + | // 1. An implicit document: | |||
| 125 | + | // | |||
| 126 | + | // 'a scalar' | |||
| 127 | + | // | |||
| 128 | + | // Tokens: | |||
| 129 | + | // | |||
| 130 | + | // STREAM-START(utf-8) | |||
| 131 | + | // SCALAR("a scalar",single-quoted) | |||
| 132 | + | // STREAM-END | |||
| 133 | + | // | |||
| 134 | + | // 2. An explicit document: | |||
| 135 | + | // | |||
| 136 | + | // --- | |||
| 137 | + | // 'a scalar' | |||
| 138 | + | // ... | |||
| 139 | + | // | |||
| 140 | + | // Tokens: | |||
| 141 | + | // | |||
| 142 | + | // STREAM-START(utf-8) | |||
| 143 | + | // DOCUMENT-START | |||
| 144 | + | // SCALAR("a scalar",single-quoted) | |||
| 145 | + | // DOCUMENT-END | |||
| 146 | + | // STREAM-END | |||
| 147 | + | // | |||
| 148 | + | // 3. Several documents in a stream: | |||
| 149 | + | // | |||
| 150 | + | // 'a scalar' | |||
| 151 | + | // --- | |||
| 152 | + | // 'another scalar' | |||
| 153 | + | // --- | |||
| 154 | + | // 'yet another scalar' | |||
| 155 | + | // | |||
| 156 | + | // Tokens: | |||
| 157 | + | // | |||
| 158 | + | // STREAM-START(utf-8) | |||
| 159 | + | // SCALAR("a scalar",single-quoted) | |||
| 160 | + | // DOCUMENT-START | |||
| 161 | + | // SCALAR("another scalar",single-quoted) | |||
| 162 | + | // DOCUMENT-START | |||
| 163 | + | // SCALAR("yet another scalar",single-quoted) | |||
| 164 | + | // STREAM-END | |||
| 165 | + | // | |||
| 166 | + | // We have already introduced the SCALAR token above. The following tokens are | |||
| 167 | + | // used to describe aliases, anchors, tag, and scalars: | |||
| 168 | + | // | |||
| 169 | + | // ALIAS(anchor) | |||
| 170 | + | // ANCHOR(anchor) | |||
| 171 | + | // TAG(handle,suffix) | |||
| 172 | + | // SCALAR(value,style) | |||
| 173 | + | // | |||
| 174 | + | // The following series of examples illustrate the usage of these tokens: | |||
| 175 | + | // | |||
| 176 | + | // 1. A recursive sequence: | |||
| 177 | + | // | |||
| 178 | + | // &A [ *A ] | |||
| 179 | + | // | |||
| 180 | + | // Tokens: | |||
| 181 | + | // | |||
| 182 | + | // STREAM-START(utf-8) | |||
| 183 | + | // ANCHOR("A") | |||
| 184 | + | // FLOW-SEQUENCE-START | |||
| 185 | + | // ALIAS("A") | |||
| 186 | + | // FLOW-SEQUENCE-END | |||
| 187 | + | // STREAM-END | |||
| 188 | + | // | |||
| 189 | + | // 2. A tagged scalar: | |||
| 190 | + | // | |||
| 191 | + | // !!float "3.14" # A good approximation. | |||
| 192 | + | // | |||
| 193 | + | // Tokens: | |||
| 194 | + | // | |||
| 195 | + | // STREAM-START(utf-8) | |||
| 196 | + | // TAG("!!","float") | |||
| 197 | + | // SCALAR("3.14",double-quoted) | |||
| 198 | + | // STREAM-END | |||
| 199 | + | // | |||
| 200 | + | // 3. Various scalar styles: | |||
| 201 | + | // | |||
| 202 | + | // --- # Implicit empty plain scalars do not produce tokens. | |||
| 203 | + | // --- a plain scalar | |||
| 204 | + | // --- 'a single-quoted scalar' | |||
| 205 | + | // --- "a double-quoted scalar" | |||
| 206 | + | // --- |- | |||
| 207 | + | // a literal scalar | |||
| 208 | + | // --- >- | |||
| 209 | + | // a folded | |||
| 210 | + | // scalar | |||
| 211 | + | // | |||
| 212 | + | // Tokens: | |||
| 213 | + | // | |||
| 214 | + | // STREAM-START(utf-8) | |||
| 215 | + | // DOCUMENT-START | |||
| 216 | + | // DOCUMENT-START | |||
| 217 | + | // SCALAR("a plain scalar",plain) | |||
| 218 | + | // DOCUMENT-START | |||
| 219 | + | // SCALAR("a single-quoted scalar",single-quoted) | |||
| 220 | + | // DOCUMENT-START | |||
| 221 | + | // SCALAR("a double-quoted scalar",double-quoted) | |||
| 222 | + | // DOCUMENT-START | |||
| 223 | + | // SCALAR("a literal scalar",literal) | |||
| 224 | + | // DOCUMENT-START | |||
| 225 | + | // SCALAR("a folded scalar",folded) | |||
| 226 | + | // STREAM-END | |||
| 227 | + | // | |||
| 228 | + | // Now it's time to review collection-related tokens. We will start with | |||
| 229 | + | // flow collections: | |||
| 230 | + | // | |||
| 231 | + | // FLOW-SEQUENCE-START | |||
| 232 | + | // FLOW-SEQUENCE-END | |||
| 233 | + | // FLOW-MAPPING-START | |||
| 234 | + | // FLOW-MAPPING-END | |||
| 235 | + | // FLOW-ENTRY | |||
| 236 | + | // KEY | |||
| 237 | + | // VALUE | |||
| 238 | + | // | |||
| 239 | + | // The tokens FLOW-SEQUENCE-START, FLOW-SEQUENCE-END, FLOW-MAPPING-START, and | |||
| 240 | + | // FLOW-MAPPING-END represent the indicators '[', ']', '{', and '}' | |||
| 241 | + | // correspondingly. FLOW-ENTRY represent the ',' indicator. Finally the | |||
| 242 | + | // indicators '?' and ':', which are used for denoting mapping keys and values, | |||
| 243 | + | // are represented by the KEY and VALUE tokens. | |||
| 244 | + | // | |||
| 245 | + | // The following examples show flow collections: | |||
| 246 | + | // | |||
| 247 | + | // 1. A flow sequence: | |||
| 248 | + | // | |||
| 249 | + | // [item 1, item 2, item 3] | |||
| 250 | + | // | |||
| 251 | + | // Tokens: | |||
| 252 | + | // | |||
| 253 | + | // STREAM-START(utf-8) | |||
| 254 | + | // FLOW-SEQUENCE-START | |||
| 255 | + | // SCALAR("item 1",plain) | |||
| 256 | + | // FLOW-ENTRY | |||
| 257 | + | // SCALAR("item 2",plain) | |||
| 258 | + | // FLOW-ENTRY | |||
| 259 | + | // SCALAR("item 3",plain) | |||
| 260 | + | // FLOW-SEQUENCE-END | |||
| 261 | + | // STREAM-END | |||
| 262 | + | // | |||
| 263 | + | // 2. A flow mapping: | |||
| 264 | + | // | |||
| 265 | + | // { | |||
| 266 | + | // a simple key: a value, # Note that the KEY token is produced. | |||
| 267 | + | // ? a complex key: another value, | |||
| 268 | + | // } | |||
| 269 | + | // | |||
| 270 | + | // Tokens: | |||
| 271 | + | // | |||
| 272 | + | // STREAM-START(utf-8) | |||
| 273 | + | // FLOW-MAPPING-START | |||
| 274 | + | // KEY | |||
| 275 | + | // SCALAR("a simple key",plain) | |||
| 276 | + | // VALUE | |||
| 277 | + | // SCALAR("a value",plain) | |||
| 278 | + | // FLOW-ENTRY | |||
| 279 | + | // KEY | |||
| 280 | + | // SCALAR("a complex key",plain) | |||
| 281 | + | // VALUE | |||
| 282 | + | // SCALAR("another value",plain) | |||
| 283 | + | // FLOW-ENTRY | |||
| 284 | + | // FLOW-MAPPING-END | |||
| 285 | + | // STREAM-END | |||
| 286 | + | // | |||
| 287 | + | // A simple key is a key which is not denoted by the '?' indicator. Note that | |||
| 288 | + | // the Scanner still produce the KEY token whenever it encounters a simple key. | |||
| 289 | + | // | |||
| 290 | + | // For scanning block collections, the following tokens are used (note that we | |||
| 291 | + | // repeat KEY and VALUE here): | |||
| 292 | + | // | |||
| 293 | + | // BLOCK-SEQUENCE-START | |||
| 294 | + | // BLOCK-MAPPING-START | |||
| 295 | + | // BLOCK-END | |||
| 296 | + | // BLOCK-ENTRY | |||
| 297 | + | // KEY | |||
| 298 | + | // VALUE | |||
| 299 | + | // | |||
| 300 | + | // The tokens BLOCK-SEQUENCE-START and BLOCK-MAPPING-START denote indentation | |||
| 301 | + | // increase that precedes a block collection (cf. the INDENT token in Python). | |||
| 302 | + | // The token BLOCK-END denote indentation decrease that ends a block collection | |||
| 303 | + | // (cf. the DEDENT token in Python). However YAML has some syntax pecularities | |||
| 304 | + | // that makes detections of these tokens more complex. | |||
| 305 | + | // | |||
| 306 | + | // The tokens BLOCK-ENTRY, KEY, and VALUE are used to represent the indicators | |||
| 307 | + | // '-', '?', and ':' correspondingly. | |||
| 308 | + | // | |||
| 309 | + | // The following examples show how the tokens BLOCK-SEQUENCE-START, | |||
| 310 | + | // BLOCK-MAPPING-START, and BLOCK-END are emitted by the Scanner: | |||
| 311 | + | // | |||
| 312 | + | // 1. Block sequences: | |||
| 313 | + | // | |||
| 314 | + | // - item 1 | |||
| 315 | + | // - item 2 | |||
| 316 | + | // - | |||
| 317 | + | // - item 3.1 | |||
| 318 | + | // - item 3.2 | |||
| 319 | + | // - | |||
| 320 | + | // key 1: value 1 | |||
| 321 | + | // key 2: value 2 | |||
| 322 | + | // | |||
| 323 | + | // Tokens: | |||
| 324 | + | // | |||
| 325 | + | // STREAM-START(utf-8) | |||
| 326 | + | // BLOCK-SEQUENCE-START | |||
| 327 | + | // BLOCK-ENTRY | |||
| 328 | + | // SCALAR("item 1",plain) | |||
| 329 | + | // BLOCK-ENTRY | |||
| 330 | + | // SCALAR("item 2",plain) | |||
| 331 | + | // BLOCK-ENTRY | |||
| 332 | + | // BLOCK-SEQUENCE-START | |||
| 333 | + | // BLOCK-ENTRY | |||
| 334 | + | // SCALAR("item 3.1",plain) | |||
| 335 | + | // BLOCK-ENTRY | |||
| 336 | + | // SCALAR("item 3.2",plain) | |||
| 337 | + | // BLOCK-END | |||
| 338 | + | // BLOCK-ENTRY | |||
| 339 | + | // BLOCK-MAPPING-START | |||
| 340 | + | // KEY | |||
| 341 | + | // SCALAR("key 1",plain) | |||
| 342 | + | // VALUE | |||
| 343 | + | // SCALAR("value 1",plain) | |||
| 344 | + | // KEY | |||
| 345 | + | // SCALAR("key 2",plain) | |||
| 346 | + | // VALUE | |||
| 347 | + | // SCALAR("value 2",plain) | |||
| 348 | + | // BLOCK-END | |||
| 349 | + | // BLOCK-END | |||
| 350 | + | // STREAM-END | |||
| 351 | + | // | |||
| 352 | + | // 2. Block mappings: | |||
| 353 | + | // | |||
| 354 | + | // a simple key: a value # The KEY token is produced here. | |||
| 355 | + | // ? a complex key | |||
| 356 | + | // : another value | |||
| 357 | + | // a mapping: | |||
| 358 | + | // key 1: value 1 | |||
| 359 | + | // key 2: value 2 | |||
| 360 | + | // a sequence: | |||
| 361 | + | // - item 1 | |||
| 362 | + | // - item 2 | |||
| 363 | + | // | |||
| 364 | + | // Tokens: | |||
| 365 | + | // | |||
| 366 | + | // STREAM-START(utf-8) | |||
| 367 | + | // BLOCK-MAPPING-START | |||
| 368 | + | // KEY | |||
| 369 | + | // SCALAR("a simple key",plain) | |||
| 370 | + | // VALUE | |||
| 371 | + | // SCALAR("a value",plain) | |||
| 372 | + | // KEY | |||
| 373 | + | // SCALAR("a complex key",plain) | |||
| 374 | + | // VALUE | |||
| 375 | + | // SCALAR("another value",plain) | |||
| 376 | + | // KEY | |||
| 377 | + | // SCALAR("a mapping",plain) | |||
| 378 | + | // BLOCK-MAPPING-START | |||
| 379 | + | // KEY | |||
| 380 | + | // SCALAR("key 1",plain) | |||
| 381 | + | // VALUE | |||
| 382 | + | // SCALAR("value 1",plain) | |||
| 383 | + | // KEY | |||
| 384 | + | // SCALAR("key 2",plain) | |||
| 385 | + | // VALUE | |||
| 386 | + | // SCALAR("value 2",plain) | |||
| 387 | + | // BLOCK-END | |||
| 388 | + | // KEY | |||
| 389 | + | // SCALAR("a sequence",plain) | |||
| 390 | + | // VALUE | |||
| 391 | + | // BLOCK-SEQUENCE-START | |||
| 392 | + | // BLOCK-ENTRY | |||
| 393 | + | // SCALAR("item 1",plain) | |||
| 394 | + | // BLOCK-ENTRY | |||
| 395 | + | // SCALAR("item 2",plain) | |||
| 396 | + | // BLOCK-END | |||
| 397 | + | // BLOCK-END | |||
| 398 | + | // STREAM-END | |||
| 399 | + | // | |||
| 400 | + | // YAML does not always require to start a new block collection from a new | |||
| 401 | + | // line. If the current line contains only '-', '?', and ':' indicators, a new | |||
| 402 | + | // block collection may start at the current line. The following examples | |||
| 403 | + | // illustrate this case: | |||
| 404 | + | // | |||
| 405 | + | // 1. Collections in a sequence: | |||
| 406 | + | // | |||
| 407 | + | // - - item 1 | |||
| 408 | + | // - item 2 | |||
| 409 | + | // - key 1: value 1 | |||
| 410 | + | // key 2: value 2 | |||
| 411 | + | // - ? complex key | |||
| 412 | + | // : complex value | |||
| 413 | + | // | |||
| 414 | + | // Tokens: | |||
| 415 | + | // | |||
| 416 | + | // STREAM-START(utf-8) | |||
| 417 | + | // BLOCK-SEQUENCE-START | |||
| 418 | + | // BLOCK-ENTRY | |||
| 419 | + | // BLOCK-SEQUENCE-START | |||
| 420 | + | // BLOCK-ENTRY | |||
| 421 | + | // SCALAR("item 1",plain) | |||
| 422 | + | // BLOCK-ENTRY | |||
| 423 | + | // SCALAR("item 2",plain) | |||
| 424 | + | // BLOCK-END | |||
| 425 | + | // BLOCK-ENTRY | |||
| 426 | + | // BLOCK-MAPPING-START | |||
| 427 | + | // KEY | |||
| 428 | + | // SCALAR("key 1",plain) | |||
| 429 | + | // VALUE | |||
| 430 | + | // SCALAR("value 1",plain) | |||
| 431 | + | // KEY | |||
| 432 | + | // SCALAR("key 2",plain) | |||
| 433 | + | // VALUE | |||
| 434 | + | // SCALAR("value 2",plain) | |||
| 435 | + | // BLOCK-END | |||
| 436 | + | // BLOCK-ENTRY | |||
| 437 | + | // BLOCK-MAPPING-START | |||
| 438 | + | // KEY | |||
| 439 | + | // SCALAR("complex key") | |||
| 440 | + | // VALUE | |||
| 441 | + | // SCALAR("complex value") | |||
| 442 | + | // BLOCK-END | |||
| 443 | + | // BLOCK-END | |||
| 444 | + | // STREAM-END | |||
| 445 | + | // | |||
| 446 | + | // 2. Collections in a mapping: | |||
| 447 | + | // | |||
| 448 | + | // ? a sequence | |||
| 449 | + | // : - item 1 | |||
| 450 | + | // - item 2 | |||
| 451 | + | // ? a mapping | |||
| 452 | + | // : key 1: value 1 | |||
| 453 | + | // key 2: value 2 | |||
| 454 | + | // | |||
| 455 | + | // Tokens: | |||
| 456 | + | // | |||
| 457 | + | // STREAM-START(utf-8) | |||
| 458 | + | // BLOCK-MAPPING-START | |||
| 459 | + | // KEY | |||
| 460 | + | // SCALAR("a sequence",plain) | |||
| 461 | + | // VALUE | |||
| 462 | + | // BLOCK-SEQUENCE-START | |||
| 463 | + | // BLOCK-ENTRY | |||
| 464 | + | // SCALAR("item 1",plain) | |||
| 465 | + | // BLOCK-ENTRY | |||
| 466 | + | // SCALAR("item 2",plain) | |||
| 467 | + | // BLOCK-END | |||
| 468 | + | // KEY | |||
| 469 | + | // SCALAR("a mapping",plain) | |||
| 470 | + | // VALUE | |||
| 471 | + | // BLOCK-MAPPING-START | |||
| 472 | + | // KEY | |||
| 473 | + | // SCALAR("key 1",plain) | |||
| 474 | + | // VALUE | |||
| 475 | + | // SCALAR("value 1",plain) | |||
| 476 | + | // KEY | |||
| 477 | + | // SCALAR("key 2",plain) | |||
| 478 | + | // VALUE | |||
| 479 | + | // SCALAR("value 2",plain) | |||
| 480 | + | // BLOCK-END | |||
| 481 | + | // BLOCK-END | |||
| 482 | + | // STREAM-END | |||
| 483 | + | // | |||
| 484 | + | // YAML also permits non-indented sequences if they are included into a block | |||
| 485 | + | // mapping. In this case, the token BLOCK-SEQUENCE-START is not produced: | |||
| 486 | + | // | |||
| 487 | + | // key: | |||
| 488 | + | // - item 1 # BLOCK-SEQUENCE-START is NOT produced here. | |||
| 489 | + | // - item 2 | |||
| 490 | + | // | |||
| 491 | + | // Tokens: | |||
| 492 | + | // | |||
| 493 | + | // STREAM-START(utf-8) | |||
| 494 | + | // BLOCK-MAPPING-START | |||
| 495 | + | // KEY | |||
| 496 | + | // SCALAR("key",plain) | |||
| 497 | + | // VALUE | |||
| 498 | + | // BLOCK-ENTRY | |||
| 499 | + | // SCALAR("item 1",plain) | |||
| 500 | + | // BLOCK-ENTRY | |||
| 501 | + | // SCALAR("item 2",plain) | |||
| 502 | + | // BLOCK-END | |||
| 503 | + | // | |||
| 504 | + | ||||
| 505 | + | // Ensure that the buffer contains the required number of characters. | |||
| 506 | + | // Return true on success, false on failure (reader error or memory error). | |||
| 507 | + | func cache(parser *yaml_parser_t, length int) bool { | |||
| 508 | + | // [Go] This was inlined: !cache(A, B) -> unread < B && !update(A, B) | |||
| 509 | + | return parser.unread >= length || yaml_parser_update_buffer(parser, length) | |||
| 510 | + | } | |||
| 511 | + | ||||
| 512 | + | // Advance the buffer pointer. | |||
| 513 | + | func skip(parser *yaml_parser_t) { | |||
| 514 | + | if !is_blank(parser.buffer, parser.buffer_pos) { | |||
| 515 | + | parser.newlines = 0 | |||
| 516 | + | } | |||
| 517 | + | parser.mark.index++ | |||
| 518 | + | parser.mark.column++ | |||
| 519 | + | parser.unread-- | |||
| 520 | + | parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) | |||
| 521 | + | } | |||
| 522 | + | ||||
| 523 | + | func skip_line(parser *yaml_parser_t) { | |||
| 524 | + | if is_crlf(parser.buffer, parser.buffer_pos) { | |||
| 525 | + | parser.mark.index += 2 | |||
| 526 | + | parser.mark.column = 0 | |||
| 527 | + | parser.mark.line++ | |||
| 528 | + | parser.unread -= 2 | |||
| 529 | + | parser.buffer_pos += 2 | |||
| 530 | + | parser.newlines++ | |||
| 531 | + | } else if is_break(parser.buffer, parser.buffer_pos) { | |||
| 532 | + | parser.mark.index++ | |||
| 533 | + | parser.mark.column = 0 | |||
| 534 | + | parser.mark.line++ | |||
| 535 | + | parser.unread-- | |||
| 536 | + | parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) | |||
| 537 | + | parser.newlines++ | |||
| 538 | + | } | |||
| 539 | + | } | |||
| 540 | + | ||||
| 541 | + | // Copy a character to a string buffer and advance pointers. | |||
| 542 | + | func read(parser *yaml_parser_t, s []byte) []byte { | |||
| 543 | + | if !is_blank(parser.buffer, parser.buffer_pos) { | |||
| 544 | + | parser.newlines = 0 | |||
| 545 | + | } | |||
| 546 | + | w := width(parser.buffer[parser.buffer_pos]) | |||
| 547 | + | if w == 0 { | |||
| 548 | + | panic("invalid character sequence") | |||
| 549 | + | } | |||
| 550 | + | if len(s) == 0 { | |||
| 551 | + | s = make([]byte, 0, 32) | |||
| 552 | + | } | |||
| 553 | + | if w == 1 && len(s)+w <= cap(s) { | |||
| 554 | + | s = s[:len(s)+1] | |||
| 555 | + | s[len(s)-1] = parser.buffer[parser.buffer_pos] | |||
| 556 | + | parser.buffer_pos++ | |||
| 557 | + | } else { | |||
| 558 | + | s = append(s, parser.buffer[parser.buffer_pos:parser.buffer_pos+w]...) | |||
| 559 | + | parser.buffer_pos += w | |||
| 560 | + | } | |||
| 561 | + | parser.mark.index++ | |||
| 562 | + | parser.mark.column++ | |||
| 563 | + | parser.unread-- | |||
| 564 | + | return s | |||
| 565 | + | } | |||
| 566 | + | ||||
| 567 | + | // Copy a line break character to a string buffer and advance pointers. | |||
| 568 | + | func read_line(parser *yaml_parser_t, s []byte) []byte { | |||
| 569 | + | buf := parser.buffer | |||
| 570 | + | pos := parser.buffer_pos | |||
| 571 | + | switch { | |||
| 572 | + | case buf[pos] == '\r' && buf[pos+1] == '\n': | |||
| 573 | + | // CR LF . LF | |||
| 574 | + | s = append(s, '\n') | |||
| 575 | + | parser.buffer_pos += 2 | |||
| 576 | + | parser.mark.index++ | |||
| 577 | + | parser.unread-- | |||
| 578 | + | case buf[pos] == '\r' || buf[pos] == '\n': | |||
| 579 | + | // CR|LF . LF | |||
| 580 | + | s = append(s, '\n') | |||
| 581 | + | parser.buffer_pos += 1 | |||
| 582 | + | case buf[pos] == '\xC2' && buf[pos+1] == '\x85': | |||
| 583 | + | // NEL . LF | |||
| 584 | + | s = append(s, '\n') | |||
| 585 | + | parser.buffer_pos += 2 | |||
| 586 | + | case buf[pos] == '\xE2' && buf[pos+1] == '\x80' && (buf[pos+2] == '\xA8' || buf[pos+2] == '\xA9'): | |||
| 587 | + | // LS|PS . LS|PS | |||
| 588 | + | s = append(s, buf[parser.buffer_pos:pos+3]...) | |||
| 589 | + | parser.buffer_pos += 3 | |||
| 590 | + | default: | |||
| 591 | + | return s | |||
| 592 | + | } | |||
| 593 | + | parser.mark.index++ | |||
| 594 | + | parser.mark.column = 0 | |||
| 595 | + | parser.mark.line++ | |||
| 596 | + | parser.unread-- | |||
| 597 | + | parser.newlines++ | |||
| 598 | + | return s | |||
| 599 | + | } | |||
| 600 | + | ||||
| 601 | + | // Get the next token. | |||
| 602 | + | func yaml_parser_scan(parser *yaml_parser_t, token *yaml_token_t) bool { | |||
| 603 | + | // Erase the token object. | |||
| 604 | + | *token = yaml_token_t{} // [Go] Is this necessary? | |||
| 605 | + | ||||
| 606 | + | // No tokens after STREAM-END or error. | |||
| 607 | + | if parser.stream_end_produced || parser.error != yaml_NO_ERROR { | |||
| 608 | + | return true | |||
| 609 | + | } | |||
| 610 | + | ||||
| 611 | + | // Ensure that the tokens queue contains enough tokens. | |||
| 612 | + | if !parser.token_available { | |||
| 613 | + | if !yaml_parser_fetch_more_tokens(parser) { | |||
| 614 | + | return false | |||
| 615 | + | } | |||
| 616 | + | } | |||
| 617 | + | ||||
| 618 | + | // Fetch the next token from the queue. | |||
| 619 | + | *token = parser.tokens[parser.tokens_head] | |||
| 620 | + | parser.tokens_head++ | |||
| 621 | + | parser.tokens_parsed++ | |||
| 622 | + | parser.token_available = false | |||
| 623 | + | ||||
| 624 | + | if token.typ == yaml_STREAM_END_TOKEN { | |||
| 625 | + | parser.stream_end_produced = true | |||
| 626 | + | } | |||
| 627 | + | return true | |||
| 628 | + | } | |||
| 629 | + | ||||
| 630 | + | // Set the scanner error and return false. | |||
| 631 | + | func yaml_parser_set_scanner_error(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string) bool { | |||
| 632 | + | parser.error = yaml_SCANNER_ERROR | |||
| 633 | + | parser.context = context | |||
| 634 | + | parser.context_mark = context_mark | |||
| 635 | + | parser.problem = problem | |||
| 636 | + | parser.problem_mark = parser.mark | |||
| 637 | + | return false | |||
| 638 | + | } | |||
| 639 | + | ||||
| 640 | + | func yaml_parser_set_scanner_tag_error(parser *yaml_parser_t, directive bool, context_mark yaml_mark_t, problem string) bool { | |||
| 641 | + | context := "while parsing a tag" | |||
| 642 | + | if directive { | |||
| 643 | + | context = "while parsing a %TAG directive" | |||
| 644 | + | } | |||
| 645 | + | return yaml_parser_set_scanner_error(parser, context, context_mark, problem) | |||
| 646 | + | } | |||
| 647 | + | ||||
| 648 | + | func trace(args ...interface{}) func() { | |||
| 649 | + | pargs := append([]interface{}{"+++"}, args...) | |||
| 650 | + | fmt.Println(pargs...) | |||
| 651 | + | pargs = append([]interface{}{"---"}, args...) | |||
| 652 | + | return func() { fmt.Println(pargs...) } | |||
| 653 | + | } | |||
| 654 | + | ||||
| 655 | + | // Ensure that the tokens queue contains at least one token which can be | |||
| 656 | + | // returned to the Parser. | |||
| 657 | + | func yaml_parser_fetch_more_tokens(parser *yaml_parser_t) bool { | |||
| 658 | + | // While we need more tokens to fetch, do it. | |||
| 659 | + | for { | |||
| 660 | + | // [Go] The comment parsing logic requires a lookahead of two tokens | |||
| 661 | + | // so that foot comments may be parsed in time of associating them | |||
| 662 | + | // with the tokens that are parsed before them, and also for line | |||
| 663 | + | // comments to be transformed into head comments in some edge cases. | |||
| 664 | + | if parser.tokens_head < len(parser.tokens)-2 { | |||
| 665 | + | // If a potential simple key is at the head position, we need to fetch | |||
| 666 | + | // the next token to disambiguate it. | |||
| 667 | + | head_tok_idx, ok := parser.simple_keys_by_tok[parser.tokens_parsed] | |||
| 668 | + | if !ok { | |||
| 669 | + | break | |||
| 670 | + | } else if valid, ok := yaml_simple_key_is_valid(parser, &parser.simple_keys[head_tok_idx]); !ok { | |||
| 671 | + | return false | |||
| 672 | + | } else if !valid { | |||
| 673 | + | break | |||
| 674 | + | } | |||
| 675 | + | } | |||
| 676 | + | // Fetch the next token. | |||
| 677 | + | if !yaml_parser_fetch_next_token(parser) { | |||
| 678 | + | return false | |||
| 679 | + | } | |||
| 680 | + | } | |||
| 681 | + | ||||
| 682 | + | parser.token_available = true | |||
| 683 | + | return true | |||
| 684 | + | } | |||
| 685 | + | ||||
| 686 | + | // The dispatcher for token fetchers. | |||
| 687 | + | func yaml_parser_fetch_next_token(parser *yaml_parser_t) (ok bool) { | |||
| 688 | + | // Ensure that the buffer is initialized. | |||
| 689 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 690 | + | return false | |||
| 691 | + | } | |||
| 692 | + | ||||
| 693 | + | // Check if we just started scanning. Fetch STREAM-START then. | |||
| 694 | + | if !parser.stream_start_produced { | |||
| 695 | + | return yaml_parser_fetch_stream_start(parser) | |||
| 696 | + | } | |||
| 697 | + | ||||
| 698 | + | scan_mark := parser.mark | |||
| 699 | + | ||||
| 700 | + | // Eat whitespaces and comments until we reach the next token. | |||
| 701 | + | if !yaml_parser_scan_to_next_token(parser) { | |||
| 702 | + | return false | |||
| 703 | + | } | |||
| 704 | + | ||||
| 705 | + | // [Go] While unrolling indents, transform the head comments of prior | |||
| 706 | + | // indentation levels observed after scan_start into foot comments at | |||
| 707 | + | // the respective indexes. | |||
| 708 | + | ||||
| 709 | + | // Check the indentation level against the current column. | |||
| 710 | + | if !yaml_parser_unroll_indent(parser, parser.mark.column, scan_mark) { | |||
| 711 | + | return false | |||
| 712 | + | } | |||
| 713 | + | ||||
| 714 | + | // Ensure that the buffer contains at least 4 characters. 4 is the length | |||
| 715 | + | // of the longest indicators ('--- ' and '... '). | |||
| 716 | + | if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { | |||
| 717 | + | return false | |||
| 718 | + | } | |||
| 719 | + | ||||
| 720 | + | // Is it the end of the stream? | |||
| 721 | + | if is_z(parser.buffer, parser.buffer_pos) { | |||
| 722 | + | return yaml_parser_fetch_stream_end(parser) | |||
| 723 | + | } | |||
| 724 | + | ||||
| 725 | + | // Is it a directive? | |||
| 726 | + | if parser.mark.column == 0 && parser.buffer[parser.buffer_pos] == '%' { | |||
| 727 | + | return yaml_parser_fetch_directive(parser) | |||
| 728 | + | } | |||
| 729 | + | ||||
| 730 | + | buf := parser.buffer | |||
| 731 | + | pos := parser.buffer_pos | |||
| 732 | + | ||||
| 733 | + | // Is it the document start indicator? | |||
| 734 | + | if parser.mark.column == 0 && buf[pos] == '-' && buf[pos+1] == '-' && buf[pos+2] == '-' && is_blankz(buf, pos+3) { | |||
| 735 | + | return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_START_TOKEN) | |||
| 736 | + | } | |||
| 737 | + | ||||
| 738 | + | // Is it the document end indicator? | |||
| 739 | + | if parser.mark.column == 0 && buf[pos] == '.' && buf[pos+1] == '.' && buf[pos+2] == '.' && is_blankz(buf, pos+3) { | |||
| 740 | + | return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_END_TOKEN) | |||
| 741 | + | } | |||
| 742 | + | ||||
| 743 | + | comment_mark := parser.mark | |||
| 744 | + | if len(parser.tokens) > 0 && (parser.flow_level == 0 && buf[pos] == ':' || parser.flow_level > 0 && buf[pos] == ',') { | |||
| 745 | + | // Associate any following comments with the prior token. | |||
| 746 | + | comment_mark = parser.tokens[len(parser.tokens)-1].start_mark | |||
| 747 | + | } | |||
| 748 | + | defer func() { | |||
| 749 | + | if !ok { | |||
| 750 | + | return | |||
| 751 | + | } | |||
| 752 | + | if len(parser.tokens) > 0 && parser.tokens[len(parser.tokens)-1].typ == yaml_BLOCK_ENTRY_TOKEN { | |||
| 753 | + | // Sequence indicators alone have no line comments. It becomes | |||
| 754 | + | // a head comment for whatever follows. | |||
| 755 | + | return | |||
| 756 | + | } | |||
| 757 | + | if !yaml_parser_scan_line_comment(parser, comment_mark) { | |||
| 758 | + | ok = false | |||
| 759 | + | return | |||
| 760 | + | } | |||
| 761 | + | }() | |||
| 762 | + | ||||
| 763 | + | // Is it the flow sequence start indicator? | |||
| 764 | + | if buf[pos] == '[' { | |||
| 765 | + | return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_SEQUENCE_START_TOKEN) | |||
| 766 | + | } | |||
| 767 | + | ||||
| 768 | + | // Is it the flow mapping start indicator? | |||
| 769 | + | if parser.buffer[parser.buffer_pos] == '{' { | |||
| 770 | + | return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_MAPPING_START_TOKEN) | |||
| 771 | + | } | |||
| 772 | + | ||||
| 773 | + | // Is it the flow sequence end indicator? | |||
| 774 | + | if parser.buffer[parser.buffer_pos] == ']' { | |||
| 775 | + | return yaml_parser_fetch_flow_collection_end(parser, | |||
| 776 | + | yaml_FLOW_SEQUENCE_END_TOKEN) | |||
| 777 | + | } | |||
| 778 | + | ||||
| 779 | + | // Is it the flow mapping end indicator? | |||
| 780 | + | if parser.buffer[parser.buffer_pos] == '}' { | |||
| 781 | + | return yaml_parser_fetch_flow_collection_end(parser, | |||
| 782 | + | yaml_FLOW_MAPPING_END_TOKEN) | |||
| 783 | + | } | |||
| 784 | + | ||||
| 785 | + | // Is it the flow entry indicator? | |||
| 786 | + | if parser.buffer[parser.buffer_pos] == ',' { | |||
| 787 | + | return yaml_parser_fetch_flow_entry(parser) | |||
| 788 | + | } | |||
| 789 | + | ||||
| 790 | + | // Is it the block entry indicator? | |||
| 791 | + | if parser.buffer[parser.buffer_pos] == '-' && is_blankz(parser.buffer, parser.buffer_pos+1) { | |||
| 792 | + | return yaml_parser_fetch_block_entry(parser) | |||
| 793 | + | } | |||
| 794 | + | ||||
| 795 | + | // Is it the key indicator? | |||
| 796 | + | if parser.buffer[parser.buffer_pos] == '?' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { | |||
| 797 | + | return yaml_parser_fetch_key(parser) | |||
| 798 | + | } | |||
| 799 | + | ||||
| 800 | + | // Is it the value indicator? | |||
| 801 | + | if parser.buffer[parser.buffer_pos] == ':' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { | |||
| 802 | + | return yaml_parser_fetch_value(parser) | |||
| 803 | + | } | |||
| 804 | + | ||||
| 805 | + | // Is it an alias? | |||
| 806 | + | if parser.buffer[parser.buffer_pos] == '*' { | |||
| 807 | + | return yaml_parser_fetch_anchor(parser, yaml_ALIAS_TOKEN) | |||
| 808 | + | } | |||
| 809 | + | ||||
| 810 | + | // Is it an anchor? | |||
| 811 | + | if parser.buffer[parser.buffer_pos] == '&' { | |||
| 812 | + | return yaml_parser_fetch_anchor(parser, yaml_ANCHOR_TOKEN) | |||
| 813 | + | } | |||
| 814 | + | ||||
| 815 | + | // Is it a tag? | |||
| 816 | + | if parser.buffer[parser.buffer_pos] == '!' { | |||
| 817 | + | return yaml_parser_fetch_tag(parser) | |||
| 818 | + | } | |||
| 819 | + | ||||
| 820 | + | // Is it a literal scalar? | |||
| 821 | + | if parser.buffer[parser.buffer_pos] == '|' && parser.flow_level == 0 { | |||
| 822 | + | return yaml_parser_fetch_block_scalar(parser, true) | |||
| 823 | + | } | |||
| 824 | + | ||||
| 825 | + | // Is it a folded scalar? | |||
| 826 | + | if parser.buffer[parser.buffer_pos] == '>' && parser.flow_level == 0 { | |||
| 827 | + | return yaml_parser_fetch_block_scalar(parser, false) | |||
| 828 | + | } | |||
| 829 | + | ||||
| 830 | + | // Is it a single-quoted scalar? | |||
| 831 | + | if parser.buffer[parser.buffer_pos] == '\'' { | |||
| 832 | + | return yaml_parser_fetch_flow_scalar(parser, true) | |||
| 833 | + | } | |||
| 834 | + | ||||
| 835 | + | // Is it a double-quoted scalar? | |||
| 836 | + | if parser.buffer[parser.buffer_pos] == '"' { | |||
| 837 | + | return yaml_parser_fetch_flow_scalar(parser, false) | |||
| 838 | + | } | |||
| 839 | + | ||||
| 840 | + | // Is it a plain scalar? | |||
| 841 | + | // | |||
| 842 | + | // A plain scalar may start with any non-blank characters except | |||
| 843 | + | // | |||
| 844 | + | // '-', '?', ':', ',', '[', ']', '{', '}', | |||
| 845 | + | // '#', '&', '*', '!', '|', '>', '\'', '\"', | |||
| 846 | + | // '%', '@', '`'. | |||
| 847 | + | // | |||
| 848 | + | // In the block context (and, for the '-' indicator, in the flow context | |||
| 849 | + | // too), it may also start with the characters | |||
| 850 | + | // | |||
| 851 | + | // '-', '?', ':' | |||
| 852 | + | // | |||
| 853 | + | // if it is followed by a non-space character. | |||
| 854 | + | // | |||
| 855 | + | // The last rule is more restrictive than the specification requires. | |||
| 856 | + | // [Go] TODO Make this logic more reasonable. | |||
| 857 | + | //switch parser.buffer[parser.buffer_pos] { | |||
| 858 | + | //case '-', '?', ':', ',', '?', '-', ',', ':', ']', '[', '}', '{', '&', '#', '!', '*', '>', '|', '"', '\'', '@', '%', '-', '`': | |||
| 859 | + | //} | |||
| 860 | + | if !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '-' || | |||
| 861 | + | parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':' || | |||
| 862 | + | parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '[' || | |||
| 863 | + | parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || | |||
| 864 | + | parser.buffer[parser.buffer_pos] == '}' || parser.buffer[parser.buffer_pos] == '#' || | |||
| 865 | + | parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '*' || | |||
| 866 | + | parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '|' || | |||
| 867 | + | parser.buffer[parser.buffer_pos] == '>' || parser.buffer[parser.buffer_pos] == '\'' || | |||
| 868 | + | parser.buffer[parser.buffer_pos] == '"' || parser.buffer[parser.buffer_pos] == '%' || | |||
| 869 | + | parser.buffer[parser.buffer_pos] == '@' || parser.buffer[parser.buffer_pos] == '`') || | |||
| 870 | + | (parser.buffer[parser.buffer_pos] == '-' && !is_blank(parser.buffer, parser.buffer_pos+1)) || | |||
| 871 | + | (parser.flow_level == 0 && | |||
| 872 | + | (parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':') && | |||
| 873 | + | !is_blankz(parser.buffer, parser.buffer_pos+1)) { | |||
| 874 | + | return yaml_parser_fetch_plain_scalar(parser) | |||
| 875 | + | } | |||
| 876 | + | ||||
| 877 | + | // If we don't determine the token type so far, it is an error. | |||
| 878 | + | return yaml_parser_set_scanner_error(parser, | |||
| 879 | + | "while scanning for the next token", parser.mark, | |||
| 880 | + | "found character that cannot start any token") | |||
| 881 | + | } | |||
| 882 | + | ||||
| 883 | + | func yaml_simple_key_is_valid(parser *yaml_parser_t, simple_key *yaml_simple_key_t) (valid, ok bool) { | |||
| 884 | + | if !simple_key.possible { | |||
| 885 | + | return false, true | |||
| 886 | + | } | |||
| 887 | + | ||||
| 888 | + | // The 1.2 specification says: | |||
| 889 | + | // | |||
| 890 | + | // "If the ? indicator is omitted, parsing needs to see past the | |||
| 891 | + | // implicit key to recognize it as such. To limit the amount of | |||
| 892 | + | // lookahead required, the “:” indicator must appear at most 1024 | |||
| 893 | + | // Unicode characters beyond the start of the key. In addition, the key | |||
| 894 | + | // is restricted to a single line." | |||
| 895 | + | // | |||
| 896 | + | if simple_key.mark.line < parser.mark.line || simple_key.mark.index+1024 < parser.mark.index { | |||
| 897 | + | // Check if the potential simple key to be removed is required. | |||
| 898 | + | if simple_key.required { | |||
| 899 | + | return false, yaml_parser_set_scanner_error(parser, | |||
| 900 | + | "while scanning a simple key", simple_key.mark, | |||
| 901 | + | "could not find expected ':'") | |||
| 902 | + | } | |||
| 903 | + | simple_key.possible = false | |||
| 904 | + | return false, true | |||
| 905 | + | } | |||
| 906 | + | return true, true | |||
| 907 | + | } | |||
| 908 | + | ||||
| 909 | + | // Check if a simple key may start at the current position and add it if | |||
| 910 | + | // needed. | |||
| 911 | + | func yaml_parser_save_simple_key(parser *yaml_parser_t) bool { | |||
| 912 | + | // A simple key is required at the current position if the scanner is in | |||
| 913 | + | // the block context and the current column coincides with the indentation | |||
| 914 | + | // level. | |||
| 915 | + | ||||
| 916 | + | required := parser.flow_level == 0 && parser.indent == parser.mark.column | |||
| 917 | + | ||||
| 918 | + | // | |||
| 919 | + | // If the current position may start a simple key, save it. | |||
| 920 | + | // | |||
| 921 | + | if parser.simple_key_allowed { | |||
| 922 | + | simple_key := yaml_simple_key_t{ | |||
| 923 | + | possible: true, | |||
| 924 | + | required: required, | |||
| 925 | + | token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head), | |||
| 926 | + | mark: parser.mark, | |||
| 927 | + | } | |||
| 928 | + | ||||
| 929 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 930 | + | return false | |||
| 931 | + | } | |||
| 932 | + | parser.simple_keys[len(parser.simple_keys)-1] = simple_key | |||
| 933 | + | parser.simple_keys_by_tok[simple_key.token_number] = len(parser.simple_keys) - 1 | |||
| 934 | + | } | |||
| 935 | + | return true | |||
| 936 | + | } | |||
| 937 | + | ||||
| 938 | + | // Remove a potential simple key at the current flow level. | |||
| 939 | + | func yaml_parser_remove_simple_key(parser *yaml_parser_t) bool { | |||
| 940 | + | i := len(parser.simple_keys) - 1 | |||
| 941 | + | if parser.simple_keys[i].possible { | |||
| 942 | + | // If the key is required, it is an error. | |||
| 943 | + | if parser.simple_keys[i].required { | |||
| 944 | + | return yaml_parser_set_scanner_error(parser, | |||
| 945 | + | "while scanning a simple key", parser.simple_keys[i].mark, | |||
| 946 | + | "could not find expected ':'") | |||
| 947 | + | } | |||
| 948 | + | // Remove the key from the stack. | |||
| 949 | + | parser.simple_keys[i].possible = false | |||
| 950 | + | delete(parser.simple_keys_by_tok, parser.simple_keys[i].token_number) | |||
| 951 | + | } | |||
| 952 | + | return true | |||
| 953 | + | } | |||
| 954 | + | ||||
| 955 | + | // max_flow_level limits the flow_level | |||
| 956 | + | const max_flow_level = 10000 | |||
| 957 | + | ||||
| 958 | + | // Increase the flow level and resize the simple key list if needed. | |||
| 959 | + | func yaml_parser_increase_flow_level(parser *yaml_parser_t) bool { | |||
| 960 | + | // Reset the simple key on the next level. | |||
| 961 | + | parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{ | |||
| 962 | + | possible: false, | |||
| 963 | + | required: false, | |||
| 964 | + | token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head), | |||
| 965 | + | mark: parser.mark, | |||
| 966 | + | }) | |||
| 967 | + | ||||
| 968 | + | // Increase the flow level. | |||
| 969 | + | parser.flow_level++ | |||
| 970 | + | if parser.flow_level > max_flow_level { | |||
| 971 | + | return yaml_parser_set_scanner_error(parser, | |||
| 972 | + | "while increasing flow level", parser.simple_keys[len(parser.simple_keys)-1].mark, | |||
| 973 | + | fmt.Sprintf("exceeded max depth of %d", max_flow_level)) | |||
| 974 | + | } | |||
| 975 | + | return true | |||
| 976 | + | } | |||
| 977 | + | ||||
| 978 | + | // Decrease the flow level. | |||
| 979 | + | func yaml_parser_decrease_flow_level(parser *yaml_parser_t) bool { | |||
| 980 | + | if parser.flow_level > 0 { | |||
| 981 | + | parser.flow_level-- | |||
| 982 | + | last := len(parser.simple_keys) - 1 | |||
| 983 | + | delete(parser.simple_keys_by_tok, parser.simple_keys[last].token_number) | |||
| 984 | + | parser.simple_keys = parser.simple_keys[:last] | |||
| 985 | + | } | |||
| 986 | + | return true | |||
| 987 | + | } | |||
| 988 | + | ||||
| 989 | + | // max_indents limits the indents stack size | |||
| 990 | + | const max_indents = 10000 | |||
| 991 | + | ||||
| 992 | + | // Push the current indentation level to the stack and set the new level | |||
| 993 | + | // the current column is greater than the indentation level. In this case, | |||
| 994 | + | // append or insert the specified token into the token queue. | |||
| 995 | + | func yaml_parser_roll_indent(parser *yaml_parser_t, column, number int, typ yaml_token_type_t, mark yaml_mark_t) bool { | |||
| 996 | + | // In the flow context, do nothing. | |||
| 997 | + | if parser.flow_level > 0 { | |||
| 998 | + | return true | |||
| 999 | + | } | |||
| 1000 | + | ||||
| 1001 | + | if parser.indent < column { | |||
| 1002 | + | // Push the current indentation level to the stack and set the new | |||
| 1003 | + | // indentation level. | |||
| 1004 | + | parser.indents = append(parser.indents, parser.indent) | |||
| 1005 | + | parser.indent = column | |||
| 1006 | + | if len(parser.indents) > max_indents { | |||
| 1007 | + | return yaml_parser_set_scanner_error(parser, | |||
| 1008 | + | "while increasing indent level", parser.simple_keys[len(parser.simple_keys)-1].mark, | |||
| 1009 | + | fmt.Sprintf("exceeded max depth of %d", max_indents)) | |||
| 1010 | + | } | |||
| 1011 | + | ||||
| 1012 | + | // Create a token and insert it into the queue. | |||
| 1013 | + | token := yaml_token_t{ | |||
| 1014 | + | typ: typ, | |||
| 1015 | + | start_mark: mark, | |||
| 1016 | + | end_mark: mark, | |||
| 1017 | + | } | |||
| 1018 | + | if number > -1 { | |||
| 1019 | + | number -= parser.tokens_parsed | |||
| 1020 | + | } | |||
| 1021 | + | yaml_insert_token(parser, number, &token) | |||
| 1022 | + | } | |||
| 1023 | + | return true | |||
| 1024 | + | } | |||
| 1025 | + | ||||
| 1026 | + | // Pop indentation levels from the indents stack until the current level | |||
| 1027 | + | // becomes less or equal to the column. For each indentation level, append | |||
| 1028 | + | // the BLOCK-END token. | |||
| 1029 | + | func yaml_parser_unroll_indent(parser *yaml_parser_t, column int, scan_mark yaml_mark_t) bool { | |||
| 1030 | + | // In the flow context, do nothing. | |||
| 1031 | + | if parser.flow_level > 0 { | |||
| 1032 | + | return true | |||
| 1033 | + | } | |||
| 1034 | + | ||||
| 1035 | + | block_mark := scan_mark | |||
| 1036 | + | block_mark.index-- | |||
| 1037 | + | ||||
| 1038 | + | // Loop through the indentation levels in the stack. | |||
| 1039 | + | for parser.indent > column { | |||
| 1040 | + | ||||
| 1041 | + | // [Go] Reposition the end token before potential following | |||
| 1042 | + | // foot comments of parent blocks. For that, search | |||
| 1043 | + | // backwards for recent comments that were at the same | |||
| 1044 | + | // indent as the block that is ending now. | |||
| 1045 | + | stop_index := block_mark.index | |||
| 1046 | + | for i := len(parser.comments) - 1; i >= 0; i-- { | |||
| 1047 | + | comment := &parser.comments[i] | |||
| 1048 | + | ||||
| 1049 | + | if comment.end_mark.index < stop_index { | |||
| 1050 | + | // Don't go back beyond the start of the comment/whitespace scan, unless column < 0. | |||
| 1051 | + | // If requested indent column is < 0, then the document is over and everything else | |||
| 1052 | + | // is a foot anyway. | |||
| 1053 | + | break | |||
| 1054 | + | } | |||
| 1055 | + | if comment.start_mark.column == parser.indent+1 { | |||
| 1056 | + | // This is a good match. But maybe there's a former comment | |||
| 1057 | + | // at that same indent level, so keep searching. | |||
| 1058 | + | block_mark = comment.start_mark | |||
| 1059 | + | } | |||
| 1060 | + | ||||
| 1061 | + | // While the end of the former comment matches with | |||
| 1062 | + | // the start of the following one, we know there's | |||
| 1063 | + | // nothing in between and scanning is still safe. | |||
| 1064 | + | stop_index = comment.scan_mark.index | |||
| 1065 | + | } | |||
| 1066 | + | ||||
| 1067 | + | // Create a token and append it to the queue. | |||
| 1068 | + | token := yaml_token_t{ | |||
| 1069 | + | typ: yaml_BLOCK_END_TOKEN, | |||
| 1070 | + | start_mark: block_mark, | |||
| 1071 | + | end_mark: block_mark, | |||
| 1072 | + | } | |||
| 1073 | + | yaml_insert_token(parser, -1, &token) | |||
| 1074 | + | ||||
| 1075 | + | // Pop the indentation level. | |||
| 1076 | + | parser.indent = parser.indents[len(parser.indents)-1] | |||
| 1077 | + | parser.indents = parser.indents[:len(parser.indents)-1] | |||
| 1078 | + | } | |||
| 1079 | + | return true | |||
| 1080 | + | } | |||
| 1081 | + | ||||
| 1082 | + | // Initialize the scanner and produce the STREAM-START token. | |||
| 1083 | + | func yaml_parser_fetch_stream_start(parser *yaml_parser_t) bool { | |||
| 1084 | + | ||||
| 1085 | + | // Set the initial indentation. | |||
| 1086 | + | parser.indent = -1 | |||
| 1087 | + | ||||
| 1088 | + | // Initialize the simple key stack. | |||
| 1089 | + | parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{}) | |||
| 1090 | + | ||||
| 1091 | + | parser.simple_keys_by_tok = make(map[int]int) | |||
| 1092 | + | ||||
| 1093 | + | // A simple key is allowed at the beginning of the stream. | |||
| 1094 | + | parser.simple_key_allowed = true | |||
| 1095 | + | ||||
| 1096 | + | // We have started. | |||
| 1097 | + | parser.stream_start_produced = true | |||
| 1098 | + | ||||
| 1099 | + | // Create the STREAM-START token and append it to the queue. | |||
| 1100 | + | token := yaml_token_t{ | |||
| 1101 | + | typ: yaml_STREAM_START_TOKEN, | |||
| 1102 | + | start_mark: parser.mark, | |||
| 1103 | + | end_mark: parser.mark, | |||
| 1104 | + | encoding: parser.encoding, | |||
| 1105 | + | } | |||
| 1106 | + | yaml_insert_token(parser, -1, &token) | |||
| 1107 | + | return true | |||
| 1108 | + | } | |||
| 1109 | + | ||||
| 1110 | + | // Produce the STREAM-END token and shut down the scanner. | |||
| 1111 | + | func yaml_parser_fetch_stream_end(parser *yaml_parser_t) bool { | |||
| 1112 | + | ||||
| 1113 | + | // Force new line. | |||
| 1114 | + | if parser.mark.column != 0 { | |||
| 1115 | + | parser.mark.column = 0 | |||
| 1116 | + | parser.mark.line++ | |||
| 1117 | + | } | |||
| 1118 | + | ||||
| 1119 | + | // Reset the indentation level. | |||
| 1120 | + | if !yaml_parser_unroll_indent(parser, -1, parser.mark) { | |||
| 1121 | + | return false | |||
| 1122 | + | } | |||
| 1123 | + | ||||
| 1124 | + | // Reset simple keys. | |||
| 1125 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1126 | + | return false | |||
| 1127 | + | } | |||
| 1128 | + | ||||
| 1129 | + | parser.simple_key_allowed = false | |||
| 1130 | + | ||||
| 1131 | + | // Create the STREAM-END token and append it to the queue. | |||
| 1132 | + | token := yaml_token_t{ | |||
| 1133 | + | typ: yaml_STREAM_END_TOKEN, | |||
| 1134 | + | start_mark: parser.mark, | |||
| 1135 | + | end_mark: parser.mark, | |||
| 1136 | + | } | |||
| 1137 | + | yaml_insert_token(parser, -1, &token) | |||
| 1138 | + | return true | |||
| 1139 | + | } | |||
| 1140 | + | ||||
| 1141 | + | // Produce a VERSION-DIRECTIVE or TAG-DIRECTIVE token. | |||
| 1142 | + | func yaml_parser_fetch_directive(parser *yaml_parser_t) bool { | |||
| 1143 | + | // Reset the indentation level. | |||
| 1144 | + | if !yaml_parser_unroll_indent(parser, -1, parser.mark) { | |||
| 1145 | + | return false | |||
| 1146 | + | } | |||
| 1147 | + | ||||
| 1148 | + | // Reset simple keys. | |||
| 1149 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1150 | + | return false | |||
| 1151 | + | } | |||
| 1152 | + | ||||
| 1153 | + | parser.simple_key_allowed = false | |||
| 1154 | + | ||||
| 1155 | + | // Create the YAML-DIRECTIVE or TAG-DIRECTIVE token. | |||
| 1156 | + | token := yaml_token_t{} | |||
| 1157 | + | if !yaml_parser_scan_directive(parser, &token) { | |||
| 1158 | + | return false | |||
| 1159 | + | } | |||
| 1160 | + | // Append the token to the queue. | |||
| 1161 | + | yaml_insert_token(parser, -1, &token) | |||
| 1162 | + | return true | |||
| 1163 | + | } | |||
| 1164 | + | ||||
| 1165 | + | // Produce the DOCUMENT-START or DOCUMENT-END token. | |||
| 1166 | + | func yaml_parser_fetch_document_indicator(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |||
| 1167 | + | // Reset the indentation level. | |||
| 1168 | + | if !yaml_parser_unroll_indent(parser, -1, parser.mark) { | |||
| 1169 | + | return false | |||
| 1170 | + | } | |||
| 1171 | + | ||||
| 1172 | + | // Reset simple keys. | |||
| 1173 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1174 | + | return false | |||
| 1175 | + | } | |||
| 1176 | + | ||||
| 1177 | + | parser.simple_key_allowed = false | |||
| 1178 | + | ||||
| 1179 | + | // Consume the token. | |||
| 1180 | + | start_mark := parser.mark | |||
| 1181 | + | ||||
| 1182 | + | skip(parser) | |||
| 1183 | + | skip(parser) | |||
| 1184 | + | skip(parser) | |||
| 1185 | + | ||||
| 1186 | + | end_mark := parser.mark | |||
| 1187 | + | ||||
| 1188 | + | // Create the DOCUMENT-START or DOCUMENT-END token. | |||
| 1189 | + | token := yaml_token_t{ | |||
| 1190 | + | typ: typ, | |||
| 1191 | + | start_mark: start_mark, | |||
| 1192 | + | end_mark: end_mark, | |||
| 1193 | + | } | |||
| 1194 | + | // Append the token to the queue. | |||
| 1195 | + | yaml_insert_token(parser, -1, &token) | |||
| 1196 | + | return true | |||
| 1197 | + | } | |||
| 1198 | + | ||||
| 1199 | + | // Produce the FLOW-SEQUENCE-START or FLOW-MAPPING-START token. | |||
| 1200 | + | func yaml_parser_fetch_flow_collection_start(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |||
| 1201 | + | ||||
| 1202 | + | // The indicators '[' and '{' may start a simple key. | |||
| 1203 | + | if !yaml_parser_save_simple_key(parser) { | |||
| 1204 | + | return false | |||
| 1205 | + | } | |||
| 1206 | + | ||||
| 1207 | + | // Increase the flow level. | |||
| 1208 | + | if !yaml_parser_increase_flow_level(parser) { | |||
| 1209 | + | return false | |||
| 1210 | + | } | |||
| 1211 | + | ||||
| 1212 | + | // A simple key may follow the indicators '[' and '{'. | |||
| 1213 | + | parser.simple_key_allowed = true | |||
| 1214 | + | ||||
| 1215 | + | // Consume the token. | |||
| 1216 | + | start_mark := parser.mark | |||
| 1217 | + | skip(parser) | |||
| 1218 | + | end_mark := parser.mark | |||
| 1219 | + | ||||
| 1220 | + | // Create the FLOW-SEQUENCE-START of FLOW-MAPPING-START token. | |||
| 1221 | + | token := yaml_token_t{ | |||
| 1222 | + | typ: typ, | |||
| 1223 | + | start_mark: start_mark, | |||
| 1224 | + | end_mark: end_mark, | |||
| 1225 | + | } | |||
| 1226 | + | // Append the token to the queue. | |||
| 1227 | + | yaml_insert_token(parser, -1, &token) | |||
| 1228 | + | return true | |||
| 1229 | + | } | |||
| 1230 | + | ||||
| 1231 | + | // Produce the FLOW-SEQUENCE-END or FLOW-MAPPING-END token. | |||
| 1232 | + | func yaml_parser_fetch_flow_collection_end(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |||
| 1233 | + | // Reset any potential simple key on the current flow level. | |||
| 1234 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1235 | + | return false | |||
| 1236 | + | } | |||
| 1237 | + | ||||
| 1238 | + | // Decrease the flow level. | |||
| 1239 | + | if !yaml_parser_decrease_flow_level(parser) { | |||
| 1240 | + | return false | |||
| 1241 | + | } | |||
| 1242 | + | ||||
| 1243 | + | // No simple keys after the indicators ']' and '}'. | |||
| 1244 | + | parser.simple_key_allowed = false | |||
| 1245 | + | ||||
| 1246 | + | // Consume the token. | |||
| 1247 | + | ||||
| 1248 | + | start_mark := parser.mark | |||
| 1249 | + | skip(parser) | |||
| 1250 | + | end_mark := parser.mark | |||
| 1251 | + | ||||
| 1252 | + | // Create the FLOW-SEQUENCE-END of FLOW-MAPPING-END token. | |||
| 1253 | + | token := yaml_token_t{ | |||
| 1254 | + | typ: typ, | |||
| 1255 | + | start_mark: start_mark, | |||
| 1256 | + | end_mark: end_mark, | |||
| 1257 | + | } | |||
| 1258 | + | // Append the token to the queue. | |||
| 1259 | + | yaml_insert_token(parser, -1, &token) | |||
| 1260 | + | return true | |||
| 1261 | + | } | |||
| 1262 | + | ||||
| 1263 | + | // Produce the FLOW-ENTRY token. | |||
| 1264 | + | func yaml_parser_fetch_flow_entry(parser *yaml_parser_t) bool { | |||
| 1265 | + | // Reset any potential simple keys on the current flow level. | |||
| 1266 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1267 | + | return false | |||
| 1268 | + | } | |||
| 1269 | + | ||||
| 1270 | + | // Simple keys are allowed after ','. | |||
| 1271 | + | parser.simple_key_allowed = true | |||
| 1272 | + | ||||
| 1273 | + | // Consume the token. | |||
| 1274 | + | start_mark := parser.mark | |||
| 1275 | + | skip(parser) | |||
| 1276 | + | end_mark := parser.mark | |||
| 1277 | + | ||||
| 1278 | + | // Create the FLOW-ENTRY token and append it to the queue. | |||
| 1279 | + | token := yaml_token_t{ | |||
| 1280 | + | typ: yaml_FLOW_ENTRY_TOKEN, | |||
| 1281 | + | start_mark: start_mark, | |||
| 1282 | + | end_mark: end_mark, | |||
| 1283 | + | } | |||
| 1284 | + | yaml_insert_token(parser, -1, &token) | |||
| 1285 | + | return true | |||
| 1286 | + | } | |||
| 1287 | + | ||||
| 1288 | + | // Produce the BLOCK-ENTRY token. | |||
| 1289 | + | func yaml_parser_fetch_block_entry(parser *yaml_parser_t) bool { | |||
| 1290 | + | // Check if the scanner is in the block context. | |||
| 1291 | + | if parser.flow_level == 0 { | |||
| 1292 | + | // Check if we are allowed to start a new entry. | |||
| 1293 | + | if !parser.simple_key_allowed { | |||
| 1294 | + | return yaml_parser_set_scanner_error(parser, "", parser.mark, | |||
| 1295 | + | "block sequence entries are not allowed in this context") | |||
| 1296 | + | } | |||
| 1297 | + | // Add the BLOCK-SEQUENCE-START token if needed. | |||
| 1298 | + | if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_SEQUENCE_START_TOKEN, parser.mark) { | |||
| 1299 | + | return false | |||
| 1300 | + | } | |||
| 1301 | + | } else { | |||
| 1302 | + | // It is an error for the '-' indicator to occur in the flow context, | |||
| 1303 | + | // but we let the Parser detect and report about it because the Parser | |||
| 1304 | + | // is able to point to the context. | |||
| 1305 | + | } | |||
| 1306 | + | ||||
| 1307 | + | // Reset any potential simple keys on the current flow level. | |||
| 1308 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1309 | + | return false | |||
| 1310 | + | } | |||
| 1311 | + | ||||
| 1312 | + | // Simple keys are allowed after '-'. | |||
| 1313 | + | parser.simple_key_allowed = true | |||
| 1314 | + | ||||
| 1315 | + | // Consume the token. | |||
| 1316 | + | start_mark := parser.mark | |||
| 1317 | + | skip(parser) | |||
| 1318 | + | end_mark := parser.mark | |||
| 1319 | + | ||||
| 1320 | + | // Create the BLOCK-ENTRY token and append it to the queue. | |||
| 1321 | + | token := yaml_token_t{ | |||
| 1322 | + | typ: yaml_BLOCK_ENTRY_TOKEN, | |||
| 1323 | + | start_mark: start_mark, | |||
| 1324 | + | end_mark: end_mark, | |||
| 1325 | + | } | |||
| 1326 | + | yaml_insert_token(parser, -1, &token) | |||
| 1327 | + | return true | |||
| 1328 | + | } | |||
| 1329 | + | ||||
| 1330 | + | // Produce the KEY token. | |||
| 1331 | + | func yaml_parser_fetch_key(parser *yaml_parser_t) bool { | |||
| 1332 | + | ||||
| 1333 | + | // In the block context, additional checks are required. | |||
| 1334 | + | if parser.flow_level == 0 { | |||
| 1335 | + | // Check if we are allowed to start a new key (not nessesary simple). | |||
| 1336 | + | if !parser.simple_key_allowed { | |||
| 1337 | + | return yaml_parser_set_scanner_error(parser, "", parser.mark, | |||
| 1338 | + | "mapping keys are not allowed in this context") | |||
| 1339 | + | } | |||
| 1340 | + | // Add the BLOCK-MAPPING-START token if needed. | |||
| 1341 | + | if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { | |||
| 1342 | + | return false | |||
| 1343 | + | } | |||
| 1344 | + | } | |||
| 1345 | + | ||||
| 1346 | + | // Reset any potential simple keys on the current flow level. | |||
| 1347 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1348 | + | return false | |||
| 1349 | + | } | |||
| 1350 | + | ||||
| 1351 | + | // Simple keys are allowed after '?' in the block context. | |||
| 1352 | + | parser.simple_key_allowed = parser.flow_level == 0 | |||
| 1353 | + | ||||
| 1354 | + | // Consume the token. | |||
| 1355 | + | start_mark := parser.mark | |||
| 1356 | + | skip(parser) | |||
| 1357 | + | end_mark := parser.mark | |||
| 1358 | + | ||||
| 1359 | + | // Create the KEY token and append it to the queue. | |||
| 1360 | + | token := yaml_token_t{ | |||
| 1361 | + | typ: yaml_KEY_TOKEN, | |||
| 1362 | + | start_mark: start_mark, | |||
| 1363 | + | end_mark: end_mark, | |||
| 1364 | + | } | |||
| 1365 | + | yaml_insert_token(parser, -1, &token) | |||
| 1366 | + | return true | |||
| 1367 | + | } | |||
| 1368 | + | ||||
| 1369 | + | // Produce the VALUE token. | |||
| 1370 | + | func yaml_parser_fetch_value(parser *yaml_parser_t) bool { | |||
| 1371 | + | ||||
| 1372 | + | simple_key := &parser.simple_keys[len(parser.simple_keys)-1] | |||
| 1373 | + | ||||
| 1374 | + | // Have we found a simple key? | |||
| 1375 | + | if valid, ok := yaml_simple_key_is_valid(parser, simple_key); !ok { | |||
| 1376 | + | return false | |||
| 1377 | + | ||||
| 1378 | + | } else if valid { | |||
| 1379 | + | ||||
| 1380 | + | // Create the KEY token and insert it into the queue. | |||
| 1381 | + | token := yaml_token_t{ | |||
| 1382 | + | typ: yaml_KEY_TOKEN, | |||
| 1383 | + | start_mark: simple_key.mark, | |||
| 1384 | + | end_mark: simple_key.mark, | |||
| 1385 | + | } | |||
| 1386 | + | yaml_insert_token(parser, simple_key.token_number-parser.tokens_parsed, &token) | |||
| 1387 | + | ||||
| 1388 | + | // In the block context, we may need to add the BLOCK-MAPPING-START token. | |||
| 1389 | + | if !yaml_parser_roll_indent(parser, simple_key.mark.column, | |||
| 1390 | + | simple_key.token_number, | |||
| 1391 | + | yaml_BLOCK_MAPPING_START_TOKEN, simple_key.mark) { | |||
| 1392 | + | return false | |||
| 1393 | + | } | |||
| 1394 | + | ||||
| 1395 | + | // Remove the simple key. | |||
| 1396 | + | simple_key.possible = false | |||
| 1397 | + | delete(parser.simple_keys_by_tok, simple_key.token_number) | |||
| 1398 | + | ||||
| 1399 | + | // A simple key cannot follow another simple key. | |||
| 1400 | + | parser.simple_key_allowed = false | |||
| 1401 | + | ||||
| 1402 | + | } else { | |||
| 1403 | + | // The ':' indicator follows a complex key. | |||
| 1404 | + | ||||
| 1405 | + | // In the block context, extra checks are required. | |||
| 1406 | + | if parser.flow_level == 0 { | |||
| 1407 | + | ||||
| 1408 | + | // Check if we are allowed to start a complex value. | |||
| 1409 | + | if !parser.simple_key_allowed { | |||
| 1410 | + | return yaml_parser_set_scanner_error(parser, "", parser.mark, | |||
| 1411 | + | "mapping values are not allowed in this context") | |||
| 1412 | + | } | |||
| 1413 | + | ||||
| 1414 | + | // Add the BLOCK-MAPPING-START token if needed. | |||
| 1415 | + | if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { | |||
| 1416 | + | return false | |||
| 1417 | + | } | |||
| 1418 | + | } | |||
| 1419 | + | ||||
| 1420 | + | // Simple keys after ':' are allowed in the block context. | |||
| 1421 | + | parser.simple_key_allowed = parser.flow_level == 0 | |||
| 1422 | + | } | |||
| 1423 | + | ||||
| 1424 | + | // Consume the token. | |||
| 1425 | + | start_mark := parser.mark | |||
| 1426 | + | skip(parser) | |||
| 1427 | + | end_mark := parser.mark | |||
| 1428 | + | ||||
| 1429 | + | // Create the VALUE token and append it to the queue. | |||
| 1430 | + | token := yaml_token_t{ | |||
| 1431 | + | typ: yaml_VALUE_TOKEN, | |||
| 1432 | + | start_mark: start_mark, | |||
| 1433 | + | end_mark: end_mark, | |||
| 1434 | + | } | |||
| 1435 | + | yaml_insert_token(parser, -1, &token) | |||
| 1436 | + | return true | |||
| 1437 | + | } | |||
| 1438 | + | ||||
| 1439 | + | // Produce the ALIAS or ANCHOR token. | |||
| 1440 | + | func yaml_parser_fetch_anchor(parser *yaml_parser_t, typ yaml_token_type_t) bool { | |||
| 1441 | + | // An anchor or an alias could be a simple key. | |||
| 1442 | + | if !yaml_parser_save_simple_key(parser) { | |||
| 1443 | + | return false | |||
| 1444 | + | } | |||
| 1445 | + | ||||
| 1446 | + | // A simple key cannot follow an anchor or an alias. | |||
| 1447 | + | parser.simple_key_allowed = false | |||
| 1448 | + | ||||
| 1449 | + | // Create the ALIAS or ANCHOR token and append it to the queue. | |||
| 1450 | + | var token yaml_token_t | |||
| 1451 | + | if !yaml_parser_scan_anchor(parser, &token, typ) { | |||
| 1452 | + | return false | |||
| 1453 | + | } | |||
| 1454 | + | yaml_insert_token(parser, -1, &token) | |||
| 1455 | + | return true | |||
| 1456 | + | } | |||
| 1457 | + | ||||
| 1458 | + | // Produce the TAG token. | |||
| 1459 | + | func yaml_parser_fetch_tag(parser *yaml_parser_t) bool { | |||
| 1460 | + | // A tag could be a simple key. | |||
| 1461 | + | if !yaml_parser_save_simple_key(parser) { | |||
| 1462 | + | return false | |||
| 1463 | + | } | |||
| 1464 | + | ||||
| 1465 | + | // A simple key cannot follow a tag. | |||
| 1466 | + | parser.simple_key_allowed = false | |||
| 1467 | + | ||||
| 1468 | + | // Create the TAG token and append it to the queue. | |||
| 1469 | + | var token yaml_token_t | |||
| 1470 | + | if !yaml_parser_scan_tag(parser, &token) { | |||
| 1471 | + | return false | |||
| 1472 | + | } | |||
| 1473 | + | yaml_insert_token(parser, -1, &token) | |||
| 1474 | + | return true | |||
| 1475 | + | } | |||
| 1476 | + | ||||
| 1477 | + | // Produce the SCALAR(...,literal) or SCALAR(...,folded) tokens. | |||
| 1478 | + | func yaml_parser_fetch_block_scalar(parser *yaml_parser_t, literal bool) bool { | |||
| 1479 | + | // Remove any potential simple keys. | |||
| 1480 | + | if !yaml_parser_remove_simple_key(parser) { | |||
| 1481 | + | return false | |||
| 1482 | + | } | |||
| 1483 | + | ||||
| 1484 | + | // A simple key may follow a block scalar. | |||
| 1485 | + | parser.simple_key_allowed = true | |||
| 1486 | + | ||||
| 1487 | + | // Create the SCALAR token and append it to the queue. | |||
| 1488 | + | var token yaml_token_t | |||
| 1489 | + | if !yaml_parser_scan_block_scalar(parser, &token, literal) { | |||
| 1490 | + | return false | |||
| 1491 | + | } | |||
| 1492 | + | yaml_insert_token(parser, -1, &token) | |||
| 1493 | + | return true | |||
| 1494 | + | } | |||
| 1495 | + | ||||
| 1496 | + | // Produce the SCALAR(...,single-quoted) or SCALAR(...,double-quoted) tokens. | |||
| 1497 | + | func yaml_parser_fetch_flow_scalar(parser *yaml_parser_t, single bool) bool { | |||
| 1498 | + | // A plain scalar could be a simple key. | |||
| 1499 | + | if !yaml_parser_save_simple_key(parser) { | |||
| 1500 | + | return false | |||
| 1501 | + | } | |||
| 1502 | + | ||||
| 1503 | + | // A simple key cannot follow a flow scalar. | |||
| 1504 | + | parser.simple_key_allowed = false | |||
| 1505 | + | ||||
| 1506 | + | // Create the SCALAR token and append it to the queue. | |||
| 1507 | + | var token yaml_token_t | |||
| 1508 | + | if !yaml_parser_scan_flow_scalar(parser, &token, single) { | |||
| 1509 | + | return false | |||
| 1510 | + | } | |||
| 1511 | + | yaml_insert_token(parser, -1, &token) | |||
| 1512 | + | return true | |||
| 1513 | + | } | |||
| 1514 | + | ||||
| 1515 | + | // Produce the SCALAR(...,plain) token. | |||
| 1516 | + | func yaml_parser_fetch_plain_scalar(parser *yaml_parser_t) bool { | |||
| 1517 | + | // A plain scalar could be a simple key. | |||
| 1518 | + | if !yaml_parser_save_simple_key(parser) { | |||
| 1519 | + | return false | |||
| 1520 | + | } | |||
| 1521 | + | ||||
| 1522 | + | // A simple key cannot follow a flow scalar. | |||
| 1523 | + | parser.simple_key_allowed = false | |||
| 1524 | + | ||||
| 1525 | + | // Create the SCALAR token and append it to the queue. | |||
| 1526 | + | var token yaml_token_t | |||
| 1527 | + | if !yaml_parser_scan_plain_scalar(parser, &token) { | |||
| 1528 | + | return false | |||
| 1529 | + | } | |||
| 1530 | + | yaml_insert_token(parser, -1, &token) | |||
| 1531 | + | return true | |||
| 1532 | + | } | |||
| 1533 | + | ||||
| 1534 | + | // Eat whitespaces and comments until the next token is found. | |||
| 1535 | + | func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool { | |||
| 1536 | + | ||||
| 1537 | + | scan_mark := parser.mark | |||
| 1538 | + | ||||
| 1539 | + | // Until the next token is not found. | |||
| 1540 | + | for { | |||
| 1541 | + | // Allow the BOM mark to start a line. | |||
| 1542 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1543 | + | return false | |||
| 1544 | + | } | |||
| 1545 | + | if parser.mark.column == 0 && is_bom(parser.buffer, parser.buffer_pos) { | |||
| 1546 | + | skip(parser) | |||
| 1547 | + | } | |||
| 1548 | + | ||||
| 1549 | + | // Eat whitespaces. | |||
| 1550 | + | // Tabs are allowed: | |||
| 1551 | + | // - in the flow context | |||
| 1552 | + | // - in the block context, but not at the beginning of the line or | |||
| 1553 | + | // after '-', '?', or ':' (complex value). | |||
| 1554 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1555 | + | return false | |||
| 1556 | + | } | |||
| 1557 | + | ||||
| 1558 | + | for parser.buffer[parser.buffer_pos] == ' ' || ((parser.flow_level > 0 || !parser.simple_key_allowed) && parser.buffer[parser.buffer_pos] == '\t') { | |||
| 1559 | + | skip(parser) | |||
| 1560 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1561 | + | return false | |||
| 1562 | + | } | |||
| 1563 | + | } | |||
| 1564 | + | ||||
| 1565 | + | // Check if we just had a line comment under a sequence entry that | |||
| 1566 | + | // looks more like a header to the following content. Similar to this: | |||
| 1567 | + | // | |||
| 1568 | + | // - # The comment | |||
| 1569 | + | // - Some data | |||
| 1570 | + | // | |||
| 1571 | + | // If so, transform the line comment to a head comment and reposition. | |||
| 1572 | + | if len(parser.comments) > 0 && len(parser.tokens) > 1 { | |||
| 1573 | + | tokenA := parser.tokens[len(parser.tokens)-2] | |||
| 1574 | + | tokenB := parser.tokens[len(parser.tokens)-1] | |||
| 1575 | + | comment := &parser.comments[len(parser.comments)-1] | |||
| 1576 | + | if tokenA.typ == yaml_BLOCK_SEQUENCE_START_TOKEN && tokenB.typ == yaml_BLOCK_ENTRY_TOKEN && len(comment.line) > 0 && !is_break(parser.buffer, parser.buffer_pos) { | |||
| 1577 | + | // If it was in the prior line, reposition so it becomes a | |||
| 1578 | + | // header of the follow up token. Otherwise, keep it in place | |||
| 1579 | + | // so it becomes a header of the former. | |||
| 1580 | + | comment.head = comment.line | |||
| 1581 | + | comment.line = nil | |||
| 1582 | + | if comment.start_mark.line == parser.mark.line-1 { | |||
| 1583 | + | comment.token_mark = parser.mark | |||
| 1584 | + | } | |||
| 1585 | + | } | |||
| 1586 | + | } | |||
| 1587 | + | ||||
| 1588 | + | // Eat a comment until a line break. | |||
| 1589 | + | if parser.buffer[parser.buffer_pos] == '#' { | |||
| 1590 | + | if !yaml_parser_scan_comments(parser, scan_mark) { | |||
| 1591 | + | return false | |||
| 1592 | + | } | |||
| 1593 | + | } | |||
| 1594 | + | ||||
| 1595 | + | // If it is a line break, eat it. | |||
| 1596 | + | if is_break(parser.buffer, parser.buffer_pos) { | |||
| 1597 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 1598 | + | return false | |||
| 1599 | + | } | |||
| 1600 | + | skip_line(parser) | |||
| 1601 | + | ||||
| 1602 | + | // In the block context, a new line may start a simple key. | |||
| 1603 | + | if parser.flow_level == 0 { | |||
| 1604 | + | parser.simple_key_allowed = true | |||
| 1605 | + | } | |||
| 1606 | + | } else { | |||
| 1607 | + | break // We have found a token. | |||
| 1608 | + | } | |||
| 1609 | + | } | |||
| 1610 | + | ||||
| 1611 | + | return true | |||
| 1612 | + | } | |||
| 1613 | + | ||||
| 1614 | + | // Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token. | |||
| 1615 | + | // | |||
| 1616 | + | // Scope: | |||
| 1617 | + | // %YAML 1.1 # a comment \n | |||
| 1618 | + | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
| 1619 | + | // %TAG !yaml! tag:yaml.org,2002: \n | |||
| 1620 | + | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
| 1621 | + | // | |||
| 1622 | + | func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool { | |||
| 1623 | + | // Eat '%'. | |||
| 1624 | + | start_mark := parser.mark | |||
| 1625 | + | skip(parser) | |||
| 1626 | + | ||||
| 1627 | + | // Scan the directive name. | |||
| 1628 | + | var name []byte | |||
| 1629 | + | if !yaml_parser_scan_directive_name(parser, start_mark, &name) { | |||
| 1630 | + | return false | |||
| 1631 | + | } | |||
| 1632 | + | ||||
| 1633 | + | // Is it a YAML directive? | |||
| 1634 | + | if bytes.Equal(name, []byte("YAML")) { | |||
| 1635 | + | // Scan the VERSION directive value. | |||
| 1636 | + | var major, minor int8 | |||
| 1637 | + | if !yaml_parser_scan_version_directive_value(parser, start_mark, &major, &minor) { | |||
| 1638 | + | return false | |||
| 1639 | + | } | |||
| 1640 | + | end_mark := parser.mark | |||
| 1641 | + | ||||
| 1642 | + | // Create a VERSION-DIRECTIVE token. | |||
| 1643 | + | *token = yaml_token_t{ | |||
| 1644 | + | typ: yaml_VERSION_DIRECTIVE_TOKEN, | |||
| 1645 | + | start_mark: start_mark, | |||
| 1646 | + | end_mark: end_mark, | |||
| 1647 | + | major: major, | |||
| 1648 | + | minor: minor, | |||
| 1649 | + | } | |||
| 1650 | + | ||||
| 1651 | + | // Is it a TAG directive? | |||
| 1652 | + | } else if bytes.Equal(name, []byte("TAG")) { | |||
| 1653 | + | // Scan the TAG directive value. | |||
| 1654 | + | var handle, prefix []byte | |||
| 1655 | + | if !yaml_parser_scan_tag_directive_value(parser, start_mark, &handle, &prefix) { | |||
| 1656 | + | return false | |||
| 1657 | + | } | |||
| 1658 | + | end_mark := parser.mark | |||
| 1659 | + | ||||
| 1660 | + | // Create a TAG-DIRECTIVE token. | |||
| 1661 | + | *token = yaml_token_t{ | |||
| 1662 | + | typ: yaml_TAG_DIRECTIVE_TOKEN, | |||
| 1663 | + | start_mark: start_mark, | |||
| 1664 | + | end_mark: end_mark, | |||
| 1665 | + | value: handle, | |||
| 1666 | + | prefix: prefix, | |||
| 1667 | + | } | |||
| 1668 | + | ||||
| 1669 | + | // Unknown directive. | |||
| 1670 | + | } else { | |||
| 1671 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |||
| 1672 | + | start_mark, "found unknown directive name") | |||
| 1673 | + | return false | |||
| 1674 | + | } | |||
| 1675 | + | ||||
| 1676 | + | // Eat the rest of the line including any comments. | |||
| 1677 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1678 | + | return false | |||
| 1679 | + | } | |||
| 1680 | + | ||||
| 1681 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |||
| 1682 | + | skip(parser) | |||
| 1683 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1684 | + | return false | |||
| 1685 | + | } | |||
| 1686 | + | } | |||
| 1687 | + | ||||
| 1688 | + | if parser.buffer[parser.buffer_pos] == '#' { | |||
| 1689 | + | // [Go] Discard this inline comment for the time being. | |||
| 1690 | + | //if !yaml_parser_scan_line_comment(parser, start_mark) { | |||
| 1691 | + | // return false | |||
| 1692 | + | //} | |||
| 1693 | + | for !is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 1694 | + | skip(parser) | |||
| 1695 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1696 | + | return false | |||
| 1697 | + | } | |||
| 1698 | + | } | |||
| 1699 | + | } | |||
| 1700 | + | ||||
| 1701 | + | // Check if we are at the end of the line. | |||
| 1702 | + | if !is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 1703 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |||
| 1704 | + | start_mark, "did not find expected comment or line break") | |||
| 1705 | + | return false | |||
| 1706 | + | } | |||
| 1707 | + | ||||
| 1708 | + | // Eat a line break. | |||
| 1709 | + | if is_break(parser.buffer, parser.buffer_pos) { | |||
| 1710 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 1711 | + | return false | |||
| 1712 | + | } | |||
| 1713 | + | skip_line(parser) | |||
| 1714 | + | } | |||
| 1715 | + | ||||
| 1716 | + | return true | |||
| 1717 | + | } | |||
| 1718 | + | ||||
| 1719 | + | // Scan the directive name. | |||
| 1720 | + | // | |||
| 1721 | + | // Scope: | |||
| 1722 | + | // %YAML 1.1 # a comment \n | |||
| 1723 | + | // ^^^^ | |||
| 1724 | + | // %TAG !yaml! tag:yaml.org,2002: \n | |||
| 1725 | + | // ^^^ | |||
| 1726 | + | // | |||
| 1727 | + | func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool { | |||
| 1728 | + | // Consume the directive name. | |||
| 1729 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1730 | + | return false | |||
| 1731 | + | } | |||
| 1732 | + | ||||
| 1733 | + | var s []byte | |||
| 1734 | + | for is_alpha(parser.buffer, parser.buffer_pos) { | |||
| 1735 | + | s = read(parser, s) | |||
| 1736 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1737 | + | return false | |||
| 1738 | + | } | |||
| 1739 | + | } | |||
| 1740 | + | ||||
| 1741 | + | // Check if the name is empty. | |||
| 1742 | + | if len(s) == 0 { | |||
| 1743 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |||
| 1744 | + | start_mark, "could not find expected directive name") | |||
| 1745 | + | return false | |||
| 1746 | + | } | |||
| 1747 | + | ||||
| 1748 | + | // Check for an blank character after the name. | |||
| 1749 | + | if !is_blankz(parser.buffer, parser.buffer_pos) { | |||
| 1750 | + | yaml_parser_set_scanner_error(parser, "while scanning a directive", | |||
| 1751 | + | start_mark, "found unexpected non-alphabetical character") | |||
| 1752 | + | return false | |||
| 1753 | + | } | |||
| 1754 | + | *name = s | |||
| 1755 | + | return true | |||
| 1756 | + | } | |||
| 1757 | + | ||||
| 1758 | + | // Scan the value of VERSION-DIRECTIVE. | |||
| 1759 | + | // | |||
| 1760 | + | // Scope: | |||
| 1761 | + | // %YAML 1.1 # a comment \n | |||
| 1762 | + | // ^^^^^^ | |||
| 1763 | + | func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool { | |||
| 1764 | + | // Eat whitespaces. | |||
| 1765 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1766 | + | return false | |||
| 1767 | + | } | |||
| 1768 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |||
| 1769 | + | skip(parser) | |||
| 1770 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1771 | + | return false | |||
| 1772 | + | } | |||
| 1773 | + | } | |||
| 1774 | + | ||||
| 1775 | + | // Consume the major version number. | |||
| 1776 | + | if !yaml_parser_scan_version_directive_number(parser, start_mark, major) { | |||
| 1777 | + | return false | |||
| 1778 | + | } | |||
| 1779 | + | ||||
| 1780 | + | // Eat '.'. | |||
| 1781 | + | if parser.buffer[parser.buffer_pos] != '.' { | |||
| 1782 | + | return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", | |||
| 1783 | + | start_mark, "did not find expected digit or '.' character") | |||
| 1784 | + | } | |||
| 1785 | + | ||||
| 1786 | + | skip(parser) | |||
| 1787 | + | ||||
| 1788 | + | // Consume the minor version number. | |||
| 1789 | + | if !yaml_parser_scan_version_directive_number(parser, start_mark, minor) { | |||
| 1790 | + | return false | |||
| 1791 | + | } | |||
| 1792 | + | return true | |||
| 1793 | + | } | |||
| 1794 | + | ||||
| 1795 | + | const max_number_length = 2 | |||
| 1796 | + | ||||
| 1797 | + | // Scan the version number of VERSION-DIRECTIVE. | |||
| 1798 | + | // | |||
| 1799 | + | // Scope: | |||
| 1800 | + | // %YAML 1.1 # a comment \n | |||
| 1801 | + | // ^ | |||
| 1802 | + | // %YAML 1.1 # a comment \n | |||
| 1803 | + | // ^ | |||
| 1804 | + | func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark yaml_mark_t, number *int8) bool { | |||
| 1805 | + | ||||
| 1806 | + | // Repeat while the next character is digit. | |||
| 1807 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1808 | + | return false | |||
| 1809 | + | } | |||
| 1810 | + | var value, length int8 | |||
| 1811 | + | for is_digit(parser.buffer, parser.buffer_pos) { | |||
| 1812 | + | // Check if the number is too long. | |||
| 1813 | + | length++ | |||
| 1814 | + | if length > max_number_length { | |||
| 1815 | + | return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", | |||
| 1816 | + | start_mark, "found extremely long version number") | |||
| 1817 | + | } | |||
| 1818 | + | value = value*10 + int8(as_digit(parser.buffer, parser.buffer_pos)) | |||
| 1819 | + | skip(parser) | |||
| 1820 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1821 | + | return false | |||
| 1822 | + | } | |||
| 1823 | + | } | |||
| 1824 | + | ||||
| 1825 | + | // Check if the number was present. | |||
| 1826 | + | if length == 0 { | |||
| 1827 | + | return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", | |||
| 1828 | + | start_mark, "did not find expected version number") | |||
| 1829 | + | } | |||
| 1830 | + | *number = value | |||
| 1831 | + | return true | |||
| 1832 | + | } | |||
| 1833 | + | ||||
| 1834 | + | // Scan the value of a TAG-DIRECTIVE token. | |||
| 1835 | + | // | |||
| 1836 | + | // Scope: | |||
| 1837 | + | // %TAG !yaml! tag:yaml.org,2002: \n | |||
| 1838 | + | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
| 1839 | + | // | |||
| 1840 | + | func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool { | |||
| 1841 | + | var handle_value, prefix_value []byte | |||
| 1842 | + | ||||
| 1843 | + | // Eat whitespaces. | |||
| 1844 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1845 | + | return false | |||
| 1846 | + | } | |||
| 1847 | + | ||||
| 1848 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |||
| 1849 | + | skip(parser) | |||
| 1850 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1851 | + | return false | |||
| 1852 | + | } | |||
| 1853 | + | } | |||
| 1854 | + | ||||
| 1855 | + | // Scan a handle. | |||
| 1856 | + | if !yaml_parser_scan_tag_handle(parser, true, start_mark, &handle_value) { | |||
| 1857 | + | return false | |||
| 1858 | + | } | |||
| 1859 | + | ||||
| 1860 | + | // Expect a whitespace. | |||
| 1861 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1862 | + | return false | |||
| 1863 | + | } | |||
| 1864 | + | if !is_blank(parser.buffer, parser.buffer_pos) { | |||
| 1865 | + | yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", | |||
| 1866 | + | start_mark, "did not find expected whitespace") | |||
| 1867 | + | return false | |||
| 1868 | + | } | |||
| 1869 | + | ||||
| 1870 | + | // Eat whitespaces. | |||
| 1871 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |||
| 1872 | + | skip(parser) | |||
| 1873 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1874 | + | return false | |||
| 1875 | + | } | |||
| 1876 | + | } | |||
| 1877 | + | ||||
| 1878 | + | // Scan a prefix. | |||
| 1879 | + | if !yaml_parser_scan_tag_uri(parser, true, nil, start_mark, &prefix_value) { | |||
| 1880 | + | return false | |||
| 1881 | + | } | |||
| 1882 | + | ||||
| 1883 | + | // Expect a whitespace or line break. | |||
| 1884 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1885 | + | return false | |||
| 1886 | + | } | |||
| 1887 | + | if !is_blankz(parser.buffer, parser.buffer_pos) { | |||
| 1888 | + | yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", | |||
| 1889 | + | start_mark, "did not find expected whitespace or line break") | |||
| 1890 | + | return false | |||
| 1891 | + | } | |||
| 1892 | + | ||||
| 1893 | + | *handle = handle_value | |||
| 1894 | + | *prefix = prefix_value | |||
| 1895 | + | return true | |||
| 1896 | + | } | |||
| 1897 | + | ||||
| 1898 | + | func yaml_parser_scan_anchor(parser *yaml_parser_t, token *yaml_token_t, typ yaml_token_type_t) bool { | |||
| 1899 | + | var s []byte | |||
| 1900 | + | ||||
| 1901 | + | // Eat the indicator character. | |||
| 1902 | + | start_mark := parser.mark | |||
| 1903 | + | skip(parser) | |||
| 1904 | + | ||||
| 1905 | + | // Consume the value. | |||
| 1906 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1907 | + | return false | |||
| 1908 | + | } | |||
| 1909 | + | ||||
| 1910 | + | for is_alpha(parser.buffer, parser.buffer_pos) { | |||
| 1911 | + | s = read(parser, s) | |||
| 1912 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 1913 | + | return false | |||
| 1914 | + | } | |||
| 1915 | + | } | |||
| 1916 | + | ||||
| 1917 | + | end_mark := parser.mark | |||
| 1918 | + | ||||
| 1919 | + | /* | |||
| 1920 | + | * Check if length of the anchor is greater than 0 and it is followed by | |||
| 1921 | + | * a whitespace character or one of the indicators: | |||
| 1922 | + | * | |||
| 1923 | + | * '?', ':', ',', ']', '}', '%', '@', '`'. | |||
| 1924 | + | */ | |||
| 1925 | + | ||||
| 1926 | + | if len(s) == 0 || | |||
| 1927 | + | !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '?' || | |||
| 1928 | + | parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == ',' || | |||
| 1929 | + | parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '}' || | |||
| 1930 | + | parser.buffer[parser.buffer_pos] == '%' || parser.buffer[parser.buffer_pos] == '@' || | |||
| 1931 | + | parser.buffer[parser.buffer_pos] == '`') { | |||
| 1932 | + | context := "while scanning an alias" | |||
| 1933 | + | if typ == yaml_ANCHOR_TOKEN { | |||
| 1934 | + | context = "while scanning an anchor" | |||
| 1935 | + | } | |||
| 1936 | + | yaml_parser_set_scanner_error(parser, context, start_mark, | |||
| 1937 | + | "did not find expected alphabetic or numeric character") | |||
| 1938 | + | return false | |||
| 1939 | + | } | |||
| 1940 | + | ||||
| 1941 | + | // Create a token. | |||
| 1942 | + | *token = yaml_token_t{ | |||
| 1943 | + | typ: typ, | |||
| 1944 | + | start_mark: start_mark, | |||
| 1945 | + | end_mark: end_mark, | |||
| 1946 | + | value: s, | |||
| 1947 | + | } | |||
| 1948 | + | ||||
| 1949 | + | return true | |||
| 1950 | + | } | |||
| 1951 | + | ||||
| 1952 | + | /* | |||
| 1953 | + | * Scan a TAG token. | |||
| 1954 | + | */ | |||
| 1955 | + | ||||
| 1956 | + | func yaml_parser_scan_tag(parser *yaml_parser_t, token *yaml_token_t) bool { | |||
| 1957 | + | var handle, suffix []byte | |||
| 1958 | + | ||||
| 1959 | + | start_mark := parser.mark | |||
| 1960 | + | ||||
| 1961 | + | // Check if the tag is in the canonical form. | |||
| 1962 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 1963 | + | return false | |||
| 1964 | + | } | |||
| 1965 | + | ||||
| 1966 | + | if parser.buffer[parser.buffer_pos+1] == '<' { | |||
| 1967 | + | // Keep the handle as '' | |||
| 1968 | + | ||||
| 1969 | + | // Eat '!<' | |||
| 1970 | + | skip(parser) | |||
| 1971 | + | skip(parser) | |||
| 1972 | + | ||||
| 1973 | + | // Consume the tag value. | |||
| 1974 | + | if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { | |||
| 1975 | + | return false | |||
| 1976 | + | } | |||
| 1977 | + | ||||
| 1978 | + | // Check for '>' and eat it. | |||
| 1979 | + | if parser.buffer[parser.buffer_pos] != '>' { | |||
| 1980 | + | yaml_parser_set_scanner_error(parser, "while scanning a tag", | |||
| 1981 | + | start_mark, "did not find the expected '>'") | |||
| 1982 | + | return false | |||
| 1983 | + | } | |||
| 1984 | + | ||||
| 1985 | + | skip(parser) | |||
| 1986 | + | } else { | |||
| 1987 | + | // The tag has either the '!suffix' or the '!handle!suffix' form. | |||
| 1988 | + | ||||
| 1989 | + | // First, try to scan a handle. | |||
| 1990 | + | if !yaml_parser_scan_tag_handle(parser, false, start_mark, &handle) { | |||
| 1991 | + | return false | |||
| 1992 | + | } | |||
| 1993 | + | ||||
| 1994 | + | // Check if it is, indeed, handle. | |||
| 1995 | + | if handle[0] == '!' && len(handle) > 1 && handle[len(handle)-1] == '!' { | |||
| 1996 | + | // Scan the suffix now. | |||
| 1997 | + | if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { | |||
| 1998 | + | return false | |||
| 1999 | + | } | |||
| 2000 | + | } else { | |||
| 2001 | + | // It wasn't a handle after all. Scan the rest of the tag. | |||
| 2002 | + | if !yaml_parser_scan_tag_uri(parser, false, handle, start_mark, &suffix) { | |||
| 2003 | + | return false | |||
| 2004 | + | } | |||
| 2005 | + | ||||
| 2006 | + | // Set the handle to '!'. | |||
| 2007 | + | handle = []byte{'!'} | |||
| 2008 | + | ||||
| 2009 | + | // A special case: the '!' tag. Set the handle to '' and the | |||
| 2010 | + | // suffix to '!'. | |||
| 2011 | + | if len(suffix) == 0 { | |||
| 2012 | + | handle, suffix = suffix, handle | |||
| 2013 | + | } | |||
| 2014 | + | } | |||
| 2015 | + | } | |||
| 2016 | + | ||||
| 2017 | + | // Check the character which ends the tag. | |||
| 2018 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2019 | + | return false | |||
| 2020 | + | } | |||
| 2021 | + | if !is_blankz(parser.buffer, parser.buffer_pos) { | |||
| 2022 | + | yaml_parser_set_scanner_error(parser, "while scanning a tag", | |||
| 2023 | + | start_mark, "did not find expected whitespace or line break") | |||
| 2024 | + | return false | |||
| 2025 | + | } | |||
| 2026 | + | ||||
| 2027 | + | end_mark := parser.mark | |||
| 2028 | + | ||||
| 2029 | + | // Create a token. | |||
| 2030 | + | *token = yaml_token_t{ | |||
| 2031 | + | typ: yaml_TAG_TOKEN, | |||
| 2032 | + | start_mark: start_mark, | |||
| 2033 | + | end_mark: end_mark, | |||
| 2034 | + | value: handle, | |||
| 2035 | + | suffix: suffix, | |||
| 2036 | + | } | |||
| 2037 | + | return true | |||
| 2038 | + | } | |||
| 2039 | + | ||||
| 2040 | + | // Scan a tag handle. | |||
| 2041 | + | func yaml_parser_scan_tag_handle(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, handle *[]byte) bool { | |||
| 2042 | + | // Check the initial '!' character. | |||
| 2043 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2044 | + | return false | |||
| 2045 | + | } | |||
| 2046 | + | if parser.buffer[parser.buffer_pos] != '!' { | |||
| 2047 | + | yaml_parser_set_scanner_tag_error(parser, directive, | |||
| 2048 | + | start_mark, "did not find expected '!'") | |||
| 2049 | + | return false | |||
| 2050 | + | } | |||
| 2051 | + | ||||
| 2052 | + | var s []byte | |||
| 2053 | + | ||||
| 2054 | + | // Copy the '!' character. | |||
| 2055 | + | s = read(parser, s) | |||
| 2056 | + | ||||
| 2057 | + | // Copy all subsequent alphabetical and numerical characters. | |||
| 2058 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2059 | + | return false | |||
| 2060 | + | } | |||
| 2061 | + | for is_alpha(parser.buffer, parser.buffer_pos) { | |||
| 2062 | + | s = read(parser, s) | |||
| 2063 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2064 | + | return false | |||
| 2065 | + | } | |||
| 2066 | + | } | |||
| 2067 | + | ||||
| 2068 | + | // Check if the trailing character is '!' and copy it. | |||
| 2069 | + | if parser.buffer[parser.buffer_pos] == '!' { | |||
| 2070 | + | s = read(parser, s) | |||
| 2071 | + | } else { | |||
| 2072 | + | // It's either the '!' tag or not really a tag handle. If it's a %TAG | |||
| 2073 | + | // directive, it's an error. If it's a tag token, it must be a part of URI. | |||
| 2074 | + | if directive && string(s) != "!" { | |||
| 2075 | + | yaml_parser_set_scanner_tag_error(parser, directive, | |||
| 2076 | + | start_mark, "did not find expected '!'") | |||
| 2077 | + | return false | |||
| 2078 | + | } | |||
| 2079 | + | } | |||
| 2080 | + | ||||
| 2081 | + | *handle = s | |||
| 2082 | + | return true | |||
| 2083 | + | } | |||
| 2084 | + | ||||
| 2085 | + | // Scan a tag. | |||
| 2086 | + | func yaml_parser_scan_tag_uri(parser *yaml_parser_t, directive bool, head []byte, start_mark yaml_mark_t, uri *[]byte) bool { | |||
| 2087 | + | //size_t length = head ? strlen((char *)head) : 0 | |||
| 2088 | + | var s []byte | |||
| 2089 | + | hasTag := len(head) > 0 | |||
| 2090 | + | ||||
| 2091 | + | // Copy the head if needed. | |||
| 2092 | + | // | |||
| 2093 | + | // Note that we don't copy the leading '!' character. | |||
| 2094 | + | if len(head) > 1 { | |||
| 2095 | + | s = append(s, head[1:]...) | |||
| 2096 | + | } | |||
| 2097 | + | ||||
| 2098 | + | // Scan the tag. | |||
| 2099 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2100 | + | return false | |||
| 2101 | + | } | |||
| 2102 | + | ||||
| 2103 | + | // The set of characters that may appear in URI is as follows: | |||
| 2104 | + | // | |||
| 2105 | + | // '0'-'9', 'A'-'Z', 'a'-'z', '_', '-', ';', '/', '?', ':', '@', '&', | |||
| 2106 | + | // '=', '+', '$', ',', '.', '!', '~', '*', '\'', '(', ')', '[', ']', | |||
| 2107 | + | // '%'. | |||
| 2108 | + | // [Go] TODO Convert this into more reasonable logic. | |||
| 2109 | + | for is_alpha(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == ';' || | |||
| 2110 | + | parser.buffer[parser.buffer_pos] == '/' || parser.buffer[parser.buffer_pos] == '?' || | |||
| 2111 | + | parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == '@' || | |||
| 2112 | + | parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '=' || | |||
| 2113 | + | parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '$' || | |||
| 2114 | + | parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '.' || | |||
| 2115 | + | parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '~' || | |||
| 2116 | + | parser.buffer[parser.buffer_pos] == '*' || parser.buffer[parser.buffer_pos] == '\'' || | |||
| 2117 | + | parser.buffer[parser.buffer_pos] == '(' || parser.buffer[parser.buffer_pos] == ')' || | |||
| 2118 | + | parser.buffer[parser.buffer_pos] == '[' || parser.buffer[parser.buffer_pos] == ']' || | |||
| 2119 | + | parser.buffer[parser.buffer_pos] == '%' { | |||
| 2120 | + | // Check if it is a URI-escape sequence. | |||
| 2121 | + | if parser.buffer[parser.buffer_pos] == '%' { | |||
| 2122 | + | if !yaml_parser_scan_uri_escapes(parser, directive, start_mark, &s) { | |||
| 2123 | + | return false | |||
| 2124 | + | } | |||
| 2125 | + | } else { | |||
| 2126 | + | s = read(parser, s) | |||
| 2127 | + | } | |||
| 2128 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2129 | + | return false | |||
| 2130 | + | } | |||
| 2131 | + | hasTag = true | |||
| 2132 | + | } | |||
| 2133 | + | ||||
| 2134 | + | if !hasTag { | |||
| 2135 | + | yaml_parser_set_scanner_tag_error(parser, directive, | |||
| 2136 | + | start_mark, "did not find expected tag URI") | |||
| 2137 | + | return false | |||
| 2138 | + | } | |||
| 2139 | + | *uri = s | |||
| 2140 | + | return true | |||
| 2141 | + | } | |||
| 2142 | + | ||||
| 2143 | + | // Decode an URI-escape sequence corresponding to a single UTF-8 character. | |||
| 2144 | + | func yaml_parser_scan_uri_escapes(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, s *[]byte) bool { | |||
| 2145 | + | ||||
| 2146 | + | // Decode the required number of characters. | |||
| 2147 | + | w := 1024 | |||
| 2148 | + | for w > 0 { | |||
| 2149 | + | // Check for a URI-escaped octet. | |||
| 2150 | + | if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { | |||
| 2151 | + | return false | |||
| 2152 | + | } | |||
| 2153 | + | ||||
| 2154 | + | if !(parser.buffer[parser.buffer_pos] == '%' && | |||
| 2155 | + | is_hex(parser.buffer, parser.buffer_pos+1) && | |||
| 2156 | + | is_hex(parser.buffer, parser.buffer_pos+2)) { | |||
| 2157 | + | return yaml_parser_set_scanner_tag_error(parser, directive, | |||
| 2158 | + | start_mark, "did not find URI escaped octet") | |||
| 2159 | + | } | |||
| 2160 | + | ||||
| 2161 | + | // Get the octet. | |||
| 2162 | + | octet := byte((as_hex(parser.buffer, parser.buffer_pos+1) << 4) + as_hex(parser.buffer, parser.buffer_pos+2)) | |||
| 2163 | + | ||||
| 2164 | + | // If it is the leading octet, determine the length of the UTF-8 sequence. | |||
| 2165 | + | if w == 1024 { | |||
| 2166 | + | w = width(octet) | |||
| 2167 | + | if w == 0 { | |||
| 2168 | + | return yaml_parser_set_scanner_tag_error(parser, directive, | |||
| 2169 | + | start_mark, "found an incorrect leading UTF-8 octet") | |||
| 2170 | + | } | |||
| 2171 | + | } else { | |||
| 2172 | + | // Check if the trailing octet is correct. | |||
| 2173 | + | if octet&0xC0 != 0x80 { | |||
| 2174 | + | return yaml_parser_set_scanner_tag_error(parser, directive, | |||
| 2175 | + | start_mark, "found an incorrect trailing UTF-8 octet") | |||
| 2176 | + | } | |||
| 2177 | + | } | |||
| 2178 | + | ||||
| 2179 | + | // Copy the octet and move the pointers. | |||
| 2180 | + | *s = append(*s, octet) | |||
| 2181 | + | skip(parser) | |||
| 2182 | + | skip(parser) | |||
| 2183 | + | skip(parser) | |||
| 2184 | + | w-- | |||
| 2185 | + | } | |||
| 2186 | + | return true | |||
| 2187 | + | } | |||
| 2188 | + | ||||
| 2189 | + | // Scan a block scalar. | |||
| 2190 | + | func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, literal bool) bool { | |||
| 2191 | + | // Eat the indicator '|' or '>'. | |||
| 2192 | + | start_mark := parser.mark | |||
| 2193 | + | skip(parser) | |||
| 2194 | + | ||||
| 2195 | + | // Scan the additional block scalar indicators. | |||
| 2196 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2197 | + | return false | |||
| 2198 | + | } | |||
| 2199 | + | ||||
| 2200 | + | // Check for a chomping indicator. | |||
| 2201 | + | var chomping, increment int | |||
| 2202 | + | if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { | |||
| 2203 | + | // Set the chomping method and eat the indicator. | |||
| 2204 | + | if parser.buffer[parser.buffer_pos] == '+' { | |||
| 2205 | + | chomping = +1 | |||
| 2206 | + | } else { | |||
| 2207 | + | chomping = -1 | |||
| 2208 | + | } | |||
| 2209 | + | skip(parser) | |||
| 2210 | + | ||||
| 2211 | + | // Check for an indentation indicator. | |||
| 2212 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2213 | + | return false | |||
| 2214 | + | } | |||
| 2215 | + | if is_digit(parser.buffer, parser.buffer_pos) { | |||
| 2216 | + | // Check that the indentation is greater than 0. | |||
| 2217 | + | if parser.buffer[parser.buffer_pos] == '0' { | |||
| 2218 | + | yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |||
| 2219 | + | start_mark, "found an indentation indicator equal to 0") | |||
| 2220 | + | return false | |||
| 2221 | + | } | |||
| 2222 | + | ||||
| 2223 | + | // Get the indentation level and eat the indicator. | |||
| 2224 | + | increment = as_digit(parser.buffer, parser.buffer_pos) | |||
| 2225 | + | skip(parser) | |||
| 2226 | + | } | |||
| 2227 | + | ||||
| 2228 | + | } else if is_digit(parser.buffer, parser.buffer_pos) { | |||
| 2229 | + | // Do the same as above, but in the opposite order. | |||
| 2230 | + | ||||
| 2231 | + | if parser.buffer[parser.buffer_pos] == '0' { | |||
| 2232 | + | yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |||
| 2233 | + | start_mark, "found an indentation indicator equal to 0") | |||
| 2234 | + | return false | |||
| 2235 | + | } | |||
| 2236 | + | increment = as_digit(parser.buffer, parser.buffer_pos) | |||
| 2237 | + | skip(parser) | |||
| 2238 | + | ||||
| 2239 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2240 | + | return false | |||
| 2241 | + | } | |||
| 2242 | + | if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { | |||
| 2243 | + | if parser.buffer[parser.buffer_pos] == '+' { | |||
| 2244 | + | chomping = +1 | |||
| 2245 | + | } else { | |||
| 2246 | + | chomping = -1 | |||
| 2247 | + | } | |||
| 2248 | + | skip(parser) | |||
| 2249 | + | } | |||
| 2250 | + | } | |||
| 2251 | + | ||||
| 2252 | + | // Eat whitespaces and comments to the end of the line. | |||
| 2253 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2254 | + | return false | |||
| 2255 | + | } | |||
| 2256 | + | for is_blank(parser.buffer, parser.buffer_pos) { | |||
| 2257 | + | skip(parser) | |||
| 2258 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2259 | + | return false | |||
| 2260 | + | } | |||
| 2261 | + | } | |||
| 2262 | + | if parser.buffer[parser.buffer_pos] == '#' { | |||
| 2263 | + | if !yaml_parser_scan_line_comment(parser, start_mark) { | |||
| 2264 | + | return false | |||
| 2265 | + | } | |||
| 2266 | + | for !is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 2267 | + | skip(parser) | |||
| 2268 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2269 | + | return false | |||
| 2270 | + | } | |||
| 2271 | + | } | |||
| 2272 | + | } | |||
| 2273 | + | ||||
| 2274 | + | // Check if we are at the end of the line. | |||
| 2275 | + | if !is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 2276 | + | yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |||
| 2277 | + | start_mark, "did not find expected comment or line break") | |||
| 2278 | + | return false | |||
| 2279 | + | } | |||
| 2280 | + | ||||
| 2281 | + | // Eat a line break. | |||
| 2282 | + | if is_break(parser.buffer, parser.buffer_pos) { | |||
| 2283 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2284 | + | return false | |||
| 2285 | + | } | |||
| 2286 | + | skip_line(parser) | |||
| 2287 | + | } | |||
| 2288 | + | ||||
| 2289 | + | end_mark := parser.mark | |||
| 2290 | + | ||||
| 2291 | + | // Set the indentation level if it was specified. | |||
| 2292 | + | var indent int | |||
| 2293 | + | if increment > 0 { | |||
| 2294 | + | if parser.indent >= 0 { | |||
| 2295 | + | indent = parser.indent + increment | |||
| 2296 | + | } else { | |||
| 2297 | + | indent = increment | |||
| 2298 | + | } | |||
| 2299 | + | } | |||
| 2300 | + | ||||
| 2301 | + | // Scan the leading line breaks and determine the indentation level if needed. | |||
| 2302 | + | var s, leading_break, trailing_breaks []byte | |||
| 2303 | + | if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { | |||
| 2304 | + | return false | |||
| 2305 | + | } | |||
| 2306 | + | ||||
| 2307 | + | // Scan the block scalar content. | |||
| 2308 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2309 | + | return false | |||
| 2310 | + | } | |||
| 2311 | + | var leading_blank, trailing_blank bool | |||
| 2312 | + | for parser.mark.column == indent && !is_z(parser.buffer, parser.buffer_pos) { | |||
| 2313 | + | // We are at the beginning of a non-empty line. | |||
| 2314 | + | ||||
| 2315 | + | // Is it a trailing whitespace? | |||
| 2316 | + | trailing_blank = is_blank(parser.buffer, parser.buffer_pos) | |||
| 2317 | + | ||||
| 2318 | + | // Check if we need to fold the leading line break. | |||
| 2319 | + | if !literal && !leading_blank && !trailing_blank && len(leading_break) > 0 && leading_break[0] == '\n' { | |||
| 2320 | + | // Do we need to join the lines by space? | |||
| 2321 | + | if len(trailing_breaks) == 0 { | |||
| 2322 | + | s = append(s, ' ') | |||
| 2323 | + | } | |||
| 2324 | + | } else { | |||
| 2325 | + | s = append(s, leading_break...) | |||
| 2326 | + | } | |||
| 2327 | + | leading_break = leading_break[:0] | |||
| 2328 | + | ||||
| 2329 | + | // Append the remaining line breaks. | |||
| 2330 | + | s = append(s, trailing_breaks...) | |||
| 2331 | + | trailing_breaks = trailing_breaks[:0] | |||
| 2332 | + | ||||
| 2333 | + | // Is it a leading whitespace? | |||
| 2334 | + | leading_blank = is_blank(parser.buffer, parser.buffer_pos) | |||
| 2335 | + | ||||
| 2336 | + | // Consume the current line. | |||
| 2337 | + | for !is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 2338 | + | s = read(parser, s) | |||
| 2339 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2340 | + | return false | |||
| 2341 | + | } | |||
| 2342 | + | } | |||
| 2343 | + | ||||
| 2344 | + | // Consume the line break. | |||
| 2345 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2346 | + | return false | |||
| 2347 | + | } | |||
| 2348 | + | ||||
| 2349 | + | leading_break = read_line(parser, leading_break) | |||
| 2350 | + | ||||
| 2351 | + | // Eat the following indentation spaces and line breaks. | |||
| 2352 | + | if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { | |||
| 2353 | + | return false | |||
| 2354 | + | } | |||
| 2355 | + | } | |||
| 2356 | + | ||||
| 2357 | + | // Chomp the tail. | |||
| 2358 | + | if chomping != -1 { | |||
| 2359 | + | s = append(s, leading_break...) | |||
| 2360 | + | } | |||
| 2361 | + | if chomping == 1 { | |||
| 2362 | + | s = append(s, trailing_breaks...) | |||
| 2363 | + | } | |||
| 2364 | + | ||||
| 2365 | + | // Create a token. | |||
| 2366 | + | *token = yaml_token_t{ | |||
| 2367 | + | typ: yaml_SCALAR_TOKEN, | |||
| 2368 | + | start_mark: start_mark, | |||
| 2369 | + | end_mark: end_mark, | |||
| 2370 | + | value: s, | |||
| 2371 | + | style: yaml_LITERAL_SCALAR_STYLE, | |||
| 2372 | + | } | |||
| 2373 | + | if !literal { | |||
| 2374 | + | token.style = yaml_FOLDED_SCALAR_STYLE | |||
| 2375 | + | } | |||
| 2376 | + | return true | |||
| 2377 | + | } | |||
| 2378 | + | ||||
| 2379 | + | // Scan indentation spaces and line breaks for a block scalar. Determine the | |||
| 2380 | + | // indentation level if needed. | |||
| 2381 | + | func yaml_parser_scan_block_scalar_breaks(parser *yaml_parser_t, indent *int, breaks *[]byte, start_mark yaml_mark_t, end_mark *yaml_mark_t) bool { | |||
| 2382 | + | *end_mark = parser.mark | |||
| 2383 | + | ||||
| 2384 | + | // Eat the indentation spaces and line breaks. | |||
| 2385 | + | max_indent := 0 | |||
| 2386 | + | for { | |||
| 2387 | + | // Eat the indentation spaces. | |||
| 2388 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2389 | + | return false | |||
| 2390 | + | } | |||
| 2391 | + | for (*indent == 0 || parser.mark.column < *indent) && is_space(parser.buffer, parser.buffer_pos) { | |||
| 2392 | + | skip(parser) | |||
| 2393 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2394 | + | return false | |||
| 2395 | + | } | |||
| 2396 | + | } | |||
| 2397 | + | if parser.mark.column > max_indent { | |||
| 2398 | + | max_indent = parser.mark.column | |||
| 2399 | + | } | |||
| 2400 | + | ||||
| 2401 | + | // Check for a tab character messing the indentation. | |||
| 2402 | + | if (*indent == 0 || parser.mark.column < *indent) && is_tab(parser.buffer, parser.buffer_pos) { | |||
| 2403 | + | return yaml_parser_set_scanner_error(parser, "while scanning a block scalar", | |||
| 2404 | + | start_mark, "found a tab character where an indentation space is expected") | |||
| 2405 | + | } | |||
| 2406 | + | ||||
| 2407 | + | // Have we found a non-empty line? | |||
| 2408 | + | if !is_break(parser.buffer, parser.buffer_pos) { | |||
| 2409 | + | break | |||
| 2410 | + | } | |||
| 2411 | + | ||||
| 2412 | + | // Consume the line break. | |||
| 2413 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2414 | + | return false | |||
| 2415 | + | } | |||
| 2416 | + | // [Go] Should really be returning breaks instead. | |||
| 2417 | + | *breaks = read_line(parser, *breaks) | |||
| 2418 | + | *end_mark = parser.mark | |||
| 2419 | + | } | |||
| 2420 | + | ||||
| 2421 | + | // Determine the indentation level if needed. | |||
| 2422 | + | if *indent == 0 { | |||
| 2423 | + | *indent = max_indent | |||
| 2424 | + | if *indent < parser.indent+1 { | |||
| 2425 | + | *indent = parser.indent + 1 | |||
| 2426 | + | } | |||
| 2427 | + | if *indent < 1 { | |||
| 2428 | + | *indent = 1 | |||
| 2429 | + | } | |||
| 2430 | + | } | |||
| 2431 | + | return true | |||
| 2432 | + | } | |||
| 2433 | + | ||||
| 2434 | + | // Scan a quoted scalar. | |||
| 2435 | + | func yaml_parser_scan_flow_scalar(parser *yaml_parser_t, token *yaml_token_t, single bool) bool { | |||
| 2436 | + | // Eat the left quote. | |||
| 2437 | + | start_mark := parser.mark | |||
| 2438 | + | skip(parser) | |||
| 2439 | + | ||||
| 2440 | + | // Consume the content of the quoted scalar. | |||
| 2441 | + | var s, leading_break, trailing_breaks, whitespaces []byte | |||
| 2442 | + | for { | |||
| 2443 | + | // Check that there are no document indicators at the beginning of the line. | |||
| 2444 | + | if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { | |||
| 2445 | + | return false | |||
| 2446 | + | } | |||
| 2447 | + | ||||
| 2448 | + | if parser.mark.column == 0 && | |||
| 2449 | + | ((parser.buffer[parser.buffer_pos+0] == '-' && | |||
| 2450 | + | parser.buffer[parser.buffer_pos+1] == '-' && | |||
| 2451 | + | parser.buffer[parser.buffer_pos+2] == '-') || | |||
| 2452 | + | (parser.buffer[parser.buffer_pos+0] == '.' && | |||
| 2453 | + | parser.buffer[parser.buffer_pos+1] == '.' && | |||
| 2454 | + | parser.buffer[parser.buffer_pos+2] == '.')) && | |||
| 2455 | + | is_blankz(parser.buffer, parser.buffer_pos+3) { | |||
| 2456 | + | yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", | |||
| 2457 | + | start_mark, "found unexpected document indicator") | |||
| 2458 | + | return false | |||
| 2459 | + | } | |||
| 2460 | + | ||||
| 2461 | + | // Check for EOF. | |||
| 2462 | + | if is_z(parser.buffer, parser.buffer_pos) { | |||
| 2463 | + | yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", | |||
| 2464 | + | start_mark, "found unexpected end of stream") | |||
| 2465 | + | return false | |||
| 2466 | + | } | |||
| 2467 | + | ||||
| 2468 | + | // Consume non-blank characters. | |||
| 2469 | + | leading_blanks := false | |||
| 2470 | + | for !is_blankz(parser.buffer, parser.buffer_pos) { | |||
| 2471 | + | if single && parser.buffer[parser.buffer_pos] == '\'' && parser.buffer[parser.buffer_pos+1] == '\'' { | |||
| 2472 | + | // Is is an escaped single quote. | |||
| 2473 | + | s = append(s, '\'') | |||
| 2474 | + | skip(parser) | |||
| 2475 | + | skip(parser) | |||
| 2476 | + | ||||
| 2477 | + | } else if single && parser.buffer[parser.buffer_pos] == '\'' { | |||
| 2478 | + | // It is a right single quote. | |||
| 2479 | + | break | |||
| 2480 | + | } else if !single && parser.buffer[parser.buffer_pos] == '"' { | |||
| 2481 | + | // It is a right double quote. | |||
| 2482 | + | break | |||
| 2483 | + | ||||
| 2484 | + | } else if !single && parser.buffer[parser.buffer_pos] == '\\' && is_break(parser.buffer, parser.buffer_pos+1) { | |||
| 2485 | + | // It is an escaped line break. | |||
| 2486 | + | if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { | |||
| 2487 | + | return false | |||
| 2488 | + | } | |||
| 2489 | + | skip(parser) | |||
| 2490 | + | skip_line(parser) | |||
| 2491 | + | leading_blanks = true | |||
| 2492 | + | break | |||
| 2493 | + | ||||
| 2494 | + | } else if !single && parser.buffer[parser.buffer_pos] == '\\' { | |||
| 2495 | + | // It is an escape sequence. | |||
| 2496 | + | code_length := 0 | |||
| 2497 | + | ||||
| 2498 | + | // Check the escape character. | |||
| 2499 | + | switch parser.buffer[parser.buffer_pos+1] { | |||
| 2500 | + | case '0': | |||
| 2501 | + | s = append(s, 0) | |||
| 2502 | + | case 'a': | |||
| 2503 | + | s = append(s, '\x07') | |||
| 2504 | + | case 'b': | |||
| 2505 | + | s = append(s, '\x08') | |||
| 2506 | + | case 't', '\t': | |||
| 2507 | + | s = append(s, '\x09') | |||
| 2508 | + | case 'n': | |||
| 2509 | + | s = append(s, '\x0A') | |||
| 2510 | + | case 'v': | |||
| 2511 | + | s = append(s, '\x0B') | |||
| 2512 | + | case 'f': | |||
| 2513 | + | s = append(s, '\x0C') | |||
| 2514 | + | case 'r': | |||
| 2515 | + | s = append(s, '\x0D') | |||
| 2516 | + | case 'e': | |||
| 2517 | + | s = append(s, '\x1B') | |||
| 2518 | + | case ' ': | |||
| 2519 | + | s = append(s, '\x20') | |||
| 2520 | + | case '"': | |||
| 2521 | + | s = append(s, '"') | |||
| 2522 | + | case '\'': | |||
| 2523 | + | s = append(s, '\'') | |||
| 2524 | + | case '\\': | |||
| 2525 | + | s = append(s, '\\') | |||
| 2526 | + | case 'N': // NEL (#x85) | |||
| 2527 | + | s = append(s, '\xC2') | |||
| 2528 | + | s = append(s, '\x85') | |||
| 2529 | + | case '_': // #xA0 | |||
| 2530 | + | s = append(s, '\xC2') | |||
| 2531 | + | s = append(s, '\xA0') | |||
| 2532 | + | case 'L': // LS (#x2028) | |||
| 2533 | + | s = append(s, '\xE2') | |||
| 2534 | + | s = append(s, '\x80') | |||
| 2535 | + | s = append(s, '\xA8') | |||
| 2536 | + | case 'P': // PS (#x2029) | |||
| 2537 | + | s = append(s, '\xE2') | |||
| 2538 | + | s = append(s, '\x80') | |||
| 2539 | + | s = append(s, '\xA9') | |||
| 2540 | + | case 'x': | |||
| 2541 | + | code_length = 2 | |||
| 2542 | + | case 'u': | |||
| 2543 | + | code_length = 4 | |||
| 2544 | + | case 'U': | |||
| 2545 | + | code_length = 8 | |||
| 2546 | + | default: | |||
| 2547 | + | yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", | |||
| 2548 | + | start_mark, "found unknown escape character") | |||
| 2549 | + | return false | |||
| 2550 | + | } | |||
| 2551 | + | ||||
| 2552 | + | skip(parser) | |||
| 2553 | + | skip(parser) | |||
| 2554 | + | ||||
| 2555 | + | // Consume an arbitrary escape code. | |||
| 2556 | + | if code_length > 0 { | |||
| 2557 | + | var value int | |||
| 2558 | + | ||||
| 2559 | + | // Scan the character value. | |||
| 2560 | + | if parser.unread < code_length && !yaml_parser_update_buffer(parser, code_length) { | |||
| 2561 | + | return false | |||
| 2562 | + | } | |||
| 2563 | + | for k := 0; k < code_length; k++ { | |||
| 2564 | + | if !is_hex(parser.buffer, parser.buffer_pos+k) { | |||
| 2565 | + | yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", | |||
| 2566 | + | start_mark, "did not find expected hexdecimal number") | |||
| 2567 | + | return false | |||
| 2568 | + | } | |||
| 2569 | + | value = (value << 4) + as_hex(parser.buffer, parser.buffer_pos+k) | |||
| 2570 | + | } | |||
| 2571 | + | ||||
| 2572 | + | // Check the value and write the character. | |||
| 2573 | + | if (value >= 0xD800 && value <= 0xDFFF) || value > 0x10FFFF { | |||
| 2574 | + | yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", | |||
| 2575 | + | start_mark, "found invalid Unicode character escape code") | |||
| 2576 | + | return false | |||
| 2577 | + | } | |||
| 2578 | + | if value <= 0x7F { | |||
| 2579 | + | s = append(s, byte(value)) | |||
| 2580 | + | } else if value <= 0x7FF { | |||
| 2581 | + | s = append(s, byte(0xC0+(value>>6))) | |||
| 2582 | + | s = append(s, byte(0x80+(value&0x3F))) | |||
| 2583 | + | } else if value <= 0xFFFF { | |||
| 2584 | + | s = append(s, byte(0xE0+(value>>12))) | |||
| 2585 | + | s = append(s, byte(0x80+((value>>6)&0x3F))) | |||
| 2586 | + | s = append(s, byte(0x80+(value&0x3F))) | |||
| 2587 | + | } else { | |||
| 2588 | + | s = append(s, byte(0xF0+(value>>18))) | |||
| 2589 | + | s = append(s, byte(0x80+((value>>12)&0x3F))) | |||
| 2590 | + | s = append(s, byte(0x80+((value>>6)&0x3F))) | |||
| 2591 | + | s = append(s, byte(0x80+(value&0x3F))) | |||
| 2592 | + | } | |||
| 2593 | + | ||||
| 2594 | + | // Advance the pointer. | |||
| 2595 | + | for k := 0; k < code_length; k++ { | |||
| 2596 | + | skip(parser) | |||
| 2597 | + | } | |||
| 2598 | + | } | |||
| 2599 | + | } else { | |||
| 2600 | + | // It is a non-escaped non-blank character. | |||
| 2601 | + | s = read(parser, s) | |||
| 2602 | + | } | |||
| 2603 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2604 | + | return false | |||
| 2605 | + | } | |||
| 2606 | + | } | |||
| 2607 | + | ||||
| 2608 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2609 | + | return false | |||
| 2610 | + | } | |||
| 2611 | + | ||||
| 2612 | + | // Check if we are at the end of the scalar. | |||
| 2613 | + | if single { | |||
| 2614 | + | if parser.buffer[parser.buffer_pos] == '\'' { | |||
| 2615 | + | break | |||
| 2616 | + | } | |||
| 2617 | + | } else { | |||
| 2618 | + | if parser.buffer[parser.buffer_pos] == '"' { | |||
| 2619 | + | break | |||
| 2620 | + | } | |||
| 2621 | + | } | |||
| 2622 | + | ||||
| 2623 | + | // Consume blank characters. | |||
| 2624 | + | for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { | |||
| 2625 | + | if is_blank(parser.buffer, parser.buffer_pos) { | |||
| 2626 | + | // Consume a space or a tab character. | |||
| 2627 | + | if !leading_blanks { | |||
| 2628 | + | whitespaces = read(parser, whitespaces) | |||
| 2629 | + | } else { | |||
| 2630 | + | skip(parser) | |||
| 2631 | + | } | |||
| 2632 | + | } else { | |||
| 2633 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2634 | + | return false | |||
| 2635 | + | } | |||
| 2636 | + | ||||
| 2637 | + | // Check if it is a first line break. | |||
| 2638 | + | if !leading_blanks { | |||
| 2639 | + | whitespaces = whitespaces[:0] | |||
| 2640 | + | leading_break = read_line(parser, leading_break) | |||
| 2641 | + | leading_blanks = true | |||
| 2642 | + | } else { | |||
| 2643 | + | trailing_breaks = read_line(parser, trailing_breaks) | |||
| 2644 | + | } | |||
| 2645 | + | } | |||
| 2646 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2647 | + | return false | |||
| 2648 | + | } | |||
| 2649 | + | } | |||
| 2650 | + | ||||
| 2651 | + | // Join the whitespaces or fold line breaks. | |||
| 2652 | + | if leading_blanks { | |||
| 2653 | + | // Do we need to fold line breaks? | |||
| 2654 | + | if len(leading_break) > 0 && leading_break[0] == '\n' { | |||
| 2655 | + | if len(trailing_breaks) == 0 { | |||
| 2656 | + | s = append(s, ' ') | |||
| 2657 | + | } else { | |||
| 2658 | + | s = append(s, trailing_breaks...) | |||
| 2659 | + | } | |||
| 2660 | + | } else { | |||
| 2661 | + | s = append(s, leading_break...) | |||
| 2662 | + | s = append(s, trailing_breaks...) | |||
| 2663 | + | } | |||
| 2664 | + | trailing_breaks = trailing_breaks[:0] | |||
| 2665 | + | leading_break = leading_break[:0] | |||
| 2666 | + | } else { | |||
| 2667 | + | s = append(s, whitespaces...) | |||
| 2668 | + | whitespaces = whitespaces[:0] | |||
| 2669 | + | } | |||
| 2670 | + | } | |||
| 2671 | + | ||||
| 2672 | + | // Eat the right quote. | |||
| 2673 | + | skip(parser) | |||
| 2674 | + | end_mark := parser.mark | |||
| 2675 | + | ||||
| 2676 | + | // Create a token. | |||
| 2677 | + | *token = yaml_token_t{ | |||
| 2678 | + | typ: yaml_SCALAR_TOKEN, | |||
| 2679 | + | start_mark: start_mark, | |||
| 2680 | + | end_mark: end_mark, | |||
| 2681 | + | value: s, | |||
| 2682 | + | style: yaml_SINGLE_QUOTED_SCALAR_STYLE, | |||
| 2683 | + | } | |||
| 2684 | + | if !single { | |||
| 2685 | + | token.style = yaml_DOUBLE_QUOTED_SCALAR_STYLE | |||
| 2686 | + | } | |||
| 2687 | + | return true | |||
| 2688 | + | } | |||
| 2689 | + | ||||
| 2690 | + | // Scan a plain scalar. | |||
| 2691 | + | func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) bool { | |||
| 2692 | + | ||||
| 2693 | + | var s, leading_break, trailing_breaks, whitespaces []byte | |||
| 2694 | + | var leading_blanks bool | |||
| 2695 | + | var indent = parser.indent + 1 | |||
| 2696 | + | ||||
| 2697 | + | start_mark := parser.mark | |||
| 2698 | + | end_mark := parser.mark | |||
| 2699 | + | ||||
| 2700 | + | // Consume the content of the plain scalar. | |||
| 2701 | + | for { | |||
| 2702 | + | // Check for a document indicator. | |||
| 2703 | + | if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { | |||
| 2704 | + | return false | |||
| 2705 | + | } | |||
| 2706 | + | if parser.mark.column == 0 && | |||
| 2707 | + | ((parser.buffer[parser.buffer_pos+0] == '-' && | |||
| 2708 | + | parser.buffer[parser.buffer_pos+1] == '-' && | |||
| 2709 | + | parser.buffer[parser.buffer_pos+2] == '-') || | |||
| 2710 | + | (parser.buffer[parser.buffer_pos+0] == '.' && | |||
| 2711 | + | parser.buffer[parser.buffer_pos+1] == '.' && | |||
| 2712 | + | parser.buffer[parser.buffer_pos+2] == '.')) && | |||
| 2713 | + | is_blankz(parser.buffer, parser.buffer_pos+3) { | |||
| 2714 | + | break | |||
| 2715 | + | } | |||
| 2716 | + | ||||
| 2717 | + | // Check for a comment. | |||
| 2718 | + | if parser.buffer[parser.buffer_pos] == '#' { | |||
| 2719 | + | break | |||
| 2720 | + | } | |||
| 2721 | + | ||||
| 2722 | + | // Consume non-blank characters. | |||
| 2723 | + | for !is_blankz(parser.buffer, parser.buffer_pos) { | |||
| 2724 | + | ||||
| 2725 | + | // Check for indicators that may end a plain scalar. | |||
| 2726 | + | if (parser.buffer[parser.buffer_pos] == ':' && is_blankz(parser.buffer, parser.buffer_pos+1)) || | |||
| 2727 | + | (parser.flow_level > 0 && | |||
| 2728 | + | (parser.buffer[parser.buffer_pos] == ',' || | |||
| 2729 | + | parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == '[' || | |||
| 2730 | + | parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || | |||
| 2731 | + | parser.buffer[parser.buffer_pos] == '}')) { | |||
| 2732 | + | break | |||
| 2733 | + | } | |||
| 2734 | + | ||||
| 2735 | + | // Check if we need to join whitespaces and breaks. | |||
| 2736 | + | if leading_blanks || len(whitespaces) > 0 { | |||
| 2737 | + | if leading_blanks { | |||
| 2738 | + | // Do we need to fold line breaks? | |||
| 2739 | + | if leading_break[0] == '\n' { | |||
| 2740 | + | if len(trailing_breaks) == 0 { | |||
| 2741 | + | s = append(s, ' ') | |||
| 2742 | + | } else { | |||
| 2743 | + | s = append(s, trailing_breaks...) | |||
| 2744 | + | } | |||
| 2745 | + | } else { | |||
| 2746 | + | s = append(s, leading_break...) | |||
| 2747 | + | s = append(s, trailing_breaks...) | |||
| 2748 | + | } | |||
| 2749 | + | trailing_breaks = trailing_breaks[:0] | |||
| 2750 | + | leading_break = leading_break[:0] | |||
| 2751 | + | leading_blanks = false | |||
| 2752 | + | } else { | |||
| 2753 | + | s = append(s, whitespaces...) | |||
| 2754 | + | whitespaces = whitespaces[:0] | |||
| 2755 | + | } | |||
| 2756 | + | } | |||
| 2757 | + | ||||
| 2758 | + | // Copy the character. | |||
| 2759 | + | s = read(parser, s) | |||
| 2760 | + | ||||
| 2761 | + | end_mark = parser.mark | |||
| 2762 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2763 | + | return false | |||
| 2764 | + | } | |||
| 2765 | + | } | |||
| 2766 | + | ||||
| 2767 | + | // Is it the end? | |||
| 2768 | + | if !(is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos)) { | |||
| 2769 | + | break | |||
| 2770 | + | } | |||
| 2771 | + | ||||
| 2772 | + | // Consume blank characters. | |||
| 2773 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2774 | + | return false | |||
| 2775 | + | } | |||
| 2776 | + | ||||
| 2777 | + | for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { | |||
| 2778 | + | if is_blank(parser.buffer, parser.buffer_pos) { | |||
| 2779 | + | ||||
| 2780 | + | // Check for tab characters that abuse indentation. | |||
| 2781 | + | if leading_blanks && parser.mark.column < indent && is_tab(parser.buffer, parser.buffer_pos) { | |||
| 2782 | + | yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", | |||
| 2783 | + | start_mark, "found a tab character that violates indentation") | |||
| 2784 | + | return false | |||
| 2785 | + | } | |||
| 2786 | + | ||||
| 2787 | + | // Consume a space or a tab character. | |||
| 2788 | + | if !leading_blanks { | |||
| 2789 | + | whitespaces = read(parser, whitespaces) | |||
| 2790 | + | } else { | |||
| 2791 | + | skip(parser) | |||
| 2792 | + | } | |||
| 2793 | + | } else { | |||
| 2794 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2795 | + | return false | |||
| 2796 | + | } | |||
| 2797 | + | ||||
| 2798 | + | // Check if it is a first line break. | |||
| 2799 | + | if !leading_blanks { | |||
| 2800 | + | whitespaces = whitespaces[:0] | |||
| 2801 | + | leading_break = read_line(parser, leading_break) | |||
| 2802 | + | leading_blanks = true | |||
| 2803 | + | } else { | |||
| 2804 | + | trailing_breaks = read_line(parser, trailing_breaks) | |||
| 2805 | + | } | |||
| 2806 | + | } | |||
| 2807 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2808 | + | return false | |||
| 2809 | + | } | |||
| 2810 | + | } | |||
| 2811 | + | ||||
| 2812 | + | // Check indentation level. | |||
| 2813 | + | if parser.flow_level == 0 && parser.mark.column < indent { | |||
| 2814 | + | break | |||
| 2815 | + | } | |||
| 2816 | + | } | |||
| 2817 | + | ||||
| 2818 | + | // Create a token. | |||
| 2819 | + | *token = yaml_token_t{ | |||
| 2820 | + | typ: yaml_SCALAR_TOKEN, | |||
| 2821 | + | start_mark: start_mark, | |||
| 2822 | + | end_mark: end_mark, | |||
| 2823 | + | value: s, | |||
| 2824 | + | style: yaml_PLAIN_SCALAR_STYLE, | |||
| 2825 | + | } | |||
| 2826 | + | ||||
| 2827 | + | // Note that we change the 'simple_key_allowed' flag. | |||
| 2828 | + | if leading_blanks { | |||
| 2829 | + | parser.simple_key_allowed = true | |||
| 2830 | + | } | |||
| 2831 | + | return true | |||
| 2832 | + | } | |||
| 2833 | + | ||||
| 2834 | + | func yaml_parser_scan_line_comment(parser *yaml_parser_t, token_mark yaml_mark_t) bool { | |||
| 2835 | + | if parser.newlines > 0 { | |||
| 2836 | + | return true | |||
| 2837 | + | } | |||
| 2838 | + | ||||
| 2839 | + | var start_mark yaml_mark_t | |||
| 2840 | + | var text []byte | |||
| 2841 | + | ||||
| 2842 | + | for peek := 0; peek < 512; peek++ { | |||
| 2843 | + | if parser.unread < peek+1 && !yaml_parser_update_buffer(parser, peek+1) { | |||
| 2844 | + | break | |||
| 2845 | + | } | |||
| 2846 | + | if is_blank(parser.buffer, parser.buffer_pos+peek) { | |||
| 2847 | + | continue | |||
| 2848 | + | } | |||
| 2849 | + | if parser.buffer[parser.buffer_pos+peek] == '#' { | |||
| 2850 | + | seen := parser.mark.index+peek | |||
| 2851 | + | for { | |||
| 2852 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 2853 | + | return false | |||
| 2854 | + | } | |||
| 2855 | + | if is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 2856 | + | if parser.mark.index >= seen { | |||
| 2857 | + | break | |||
| 2858 | + | } | |||
| 2859 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 2860 | + | return false | |||
| 2861 | + | } | |||
| 2862 | + | skip_line(parser) | |||
| 2863 | + | } else if parser.mark.index >= seen { | |||
| 2864 | + | if len(text) == 0 { | |||
| 2865 | + | start_mark = parser.mark | |||
| 2866 | + | } | |||
| 2867 | + | text = read(parser, text) | |||
| 2868 | + | } else { | |||
| 2869 | + | skip(parser) | |||
| 2870 | + | } | |||
| 2871 | + | } | |||
| 2872 | + | } | |||
| 2873 | + | break | |||
| 2874 | + | } | |||
| 2875 | + | if len(text) > 0 { | |||
| 2876 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |||
| 2877 | + | token_mark: token_mark, | |||
| 2878 | + | start_mark: start_mark, | |||
| 2879 | + | line: text, | |||
| 2880 | + | }) | |||
| 2881 | + | } | |||
| 2882 | + | return true | |||
| 2883 | + | } | |||
| 2884 | + | ||||
| 2885 | + | func yaml_parser_scan_comments(parser *yaml_parser_t, scan_mark yaml_mark_t) bool { | |||
| 2886 | + | token := parser.tokens[len(parser.tokens)-1] | |||
| 2887 | + | ||||
| 2888 | + | if token.typ == yaml_FLOW_ENTRY_TOKEN && len(parser.tokens) > 1 { | |||
| 2889 | + | token = parser.tokens[len(parser.tokens)-2] | |||
| 2890 | + | } | |||
| 2891 | + | ||||
| 2892 | + | var token_mark = token.start_mark | |||
| 2893 | + | var start_mark yaml_mark_t | |||
| 2894 | + | var next_indent = parser.indent | |||
| 2895 | + | if next_indent < 0 { | |||
| 2896 | + | next_indent = 0 | |||
| 2897 | + | } | |||
| 2898 | + | ||||
| 2899 | + | var recent_empty = false | |||
| 2900 | + | var first_empty = parser.newlines <= 1 | |||
| 2901 | + | ||||
| 2902 | + | var line = parser.mark.line | |||
| 2903 | + | var column = parser.mark.column | |||
| 2904 | + | ||||
| 2905 | + | var text []byte | |||
| 2906 | + | ||||
| 2907 | + | // The foot line is the place where a comment must start to | |||
| 2908 | + | // still be considered as a foot of the prior content. | |||
| 2909 | + | // If there's some content in the currently parsed line, then | |||
| 2910 | + | // the foot is the line below it. | |||
| 2911 | + | var foot_line = -1 | |||
| 2912 | + | if scan_mark.line > 0 { | |||
| 2913 | + | foot_line = parser.mark.line-parser.newlines+1 | |||
| 2914 | + | if parser.newlines == 0 && parser.mark.column > 1 { | |||
| 2915 | + | foot_line++ | |||
| 2916 | + | } | |||
| 2917 | + | } | |||
| 2918 | + | ||||
| 2919 | + | var peek = 0 | |||
| 2920 | + | for ; peek < 512; peek++ { | |||
| 2921 | + | if parser.unread < peek+1 && !yaml_parser_update_buffer(parser, peek+1) { | |||
| 2922 | + | break | |||
| 2923 | + | } | |||
| 2924 | + | column++ | |||
| 2925 | + | if is_blank(parser.buffer, parser.buffer_pos+peek) { | |||
| 2926 | + | continue | |||
| 2927 | + | } | |||
| 2928 | + | c := parser.buffer[parser.buffer_pos+peek] | |||
| 2929 | + | var close_flow = parser.flow_level > 0 && (c == ']' || c == '}') | |||
| 2930 | + | if close_flow || is_breakz(parser.buffer, parser.buffer_pos+peek) { | |||
| 2931 | + | // Got line break or terminator. | |||
| 2932 | + | if close_flow || !recent_empty { | |||
| 2933 | + | if close_flow || first_empty && (start_mark.line == foot_line && token.typ != yaml_VALUE_TOKEN || start_mark.column-1 < next_indent) { | |||
| 2934 | + | // This is the first empty line and there were no empty lines before, | |||
| 2935 | + | // so this initial part of the comment is a foot of the prior token | |||
| 2936 | + | // instead of being a head for the following one. Split it up. | |||
| 2937 | + | // Alternatively, this might also be the last comment inside a flow | |||
| 2938 | + | // scope, so it must be a footer. | |||
| 2939 | + | if len(text) > 0 { | |||
| 2940 | + | if start_mark.column-1 < next_indent { | |||
| 2941 | + | // If dedented it's unrelated to the prior token. | |||
| 2942 | + | token_mark = start_mark | |||
| 2943 | + | } | |||
| 2944 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |||
| 2945 | + | scan_mark: scan_mark, | |||
| 2946 | + | token_mark: token_mark, | |||
| 2947 | + | start_mark: start_mark, | |||
| 2948 | + | end_mark: yaml_mark_t{parser.mark.index + peek, line, column}, | |||
| 2949 | + | foot: text, | |||
| 2950 | + | }) | |||
| 2951 | + | scan_mark = yaml_mark_t{parser.mark.index + peek, line, column} | |||
| 2952 | + | token_mark = scan_mark | |||
| 2953 | + | text = nil | |||
| 2954 | + | } | |||
| 2955 | + | } else { | |||
| 2956 | + | if len(text) > 0 && parser.buffer[parser.buffer_pos+peek] != 0 { | |||
| 2957 | + | text = append(text, '\n') | |||
| 2958 | + | } | |||
| 2959 | + | } | |||
| 2960 | + | } | |||
| 2961 | + | if !is_break(parser.buffer, parser.buffer_pos+peek) { | |||
| 2962 | + | break | |||
| 2963 | + | } | |||
| 2964 | + | first_empty = false | |||
| 2965 | + | recent_empty = true | |||
| 2966 | + | column = 0 | |||
| 2967 | + | line++ | |||
| 2968 | + | continue | |||
| 2969 | + | } | |||
| 2970 | + | ||||
| 2971 | + | if len(text) > 0 && (close_flow || column-1 < next_indent && column != start_mark.column) { | |||
| 2972 | + | // The comment at the different indentation is a foot of the | |||
| 2973 | + | // preceding data rather than a head of the upcoming one. | |||
| 2974 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |||
| 2975 | + | scan_mark: scan_mark, | |||
| 2976 | + | token_mark: token_mark, | |||
| 2977 | + | start_mark: start_mark, | |||
| 2978 | + | end_mark: yaml_mark_t{parser.mark.index + peek, line, column}, | |||
| 2979 | + | foot: text, | |||
| 2980 | + | }) | |||
| 2981 | + | scan_mark = yaml_mark_t{parser.mark.index + peek, line, column} | |||
| 2982 | + | token_mark = scan_mark | |||
| 2983 | + | text = nil | |||
| 2984 | + | } | |||
| 2985 | + | ||||
| 2986 | + | if parser.buffer[parser.buffer_pos+peek] != '#' { | |||
| 2987 | + | break | |||
| 2988 | + | } | |||
| 2989 | + | ||||
| 2990 | + | if len(text) == 0 { | |||
| 2991 | + | start_mark = yaml_mark_t{parser.mark.index + peek, line, column} | |||
| 2992 | + | } else { | |||
| 2993 | + | text = append(text, '\n') | |||
| 2994 | + | } | |||
| 2995 | + | ||||
| 2996 | + | recent_empty = false | |||
| 2997 | + | ||||
| 2998 | + | // Consume until after the consumed comment line. | |||
| 2999 | + | seen := parser.mark.index+peek | |||
| 3000 | + | for { | |||
| 3001 | + | if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { | |||
| 3002 | + | return false | |||
| 3003 | + | } | |||
| 3004 | + | if is_breakz(parser.buffer, parser.buffer_pos) { | |||
| 3005 | + | if parser.mark.index >= seen { | |||
| 3006 | + | break | |||
| 3007 | + | } | |||
| 3008 | + | if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { | |||
| 3009 | + | return false | |||
| 3010 | + | } | |||
| 3011 | + | skip_line(parser) | |||
| 3012 | + | } else if parser.mark.index >= seen { | |||
| 3013 | + | text = read(parser, text) | |||
| 3014 | + | } else { | |||
| 3015 | + | skip(parser) | |||
| 3016 | + | } | |||
| 3017 | + | } | |||
| 3018 | + | ||||
| 3019 | + | peek = 0 | |||
| 3020 | + | column = 0 | |||
| 3021 | + | line = parser.mark.line | |||
| 3022 | + | next_indent = parser.indent | |||
| 3023 | + | if next_indent < 0 { | |||
| 3024 | + | next_indent = 0 | |||
| 3025 | + | } | |||
| 3026 | + | } | |||
| 3027 | + | ||||
| 3028 | + | if len(text) > 0 { | |||
| 3029 | + | parser.comments = append(parser.comments, yaml_comment_t{ | |||
| 3030 | + | scan_mark: scan_mark, | |||
| 3031 | + | token_mark: start_mark, | |||
| 3032 | + | start_mark: start_mark, | |||
| 3033 | + | end_mark: yaml_mark_t{parser.mark.index + peek - 1, line, column}, | |||
| 3034 | + | head: text, | |||
| 3035 | + | }) | |||
| 3036 | + | } | |||
| 3037 | + | return true | |||
| 3038 | + | } | |||