mirror of
https://github.com/sharkdp/bat
synced 2026-08-03 18:51:44 +00:00
Compare commits
238 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d981498d8 | |||
| bd2e9917da | |||
| a6810e3353 | |||
| 591eba66a3 | |||
| a5a9ac83e5 | |||
| 15b122a448 | |||
| 44a905d135 | |||
| 8884104e82 | |||
| 277cc5fa21 | |||
| 0cbd7d583c | |||
| 3c3fc92863 | |||
| e69d650598 | |||
| 9385c81882 | |||
| 1b84f9f1ae | |||
| d879fbd8a1 | |||
| 1fbdef06aa | |||
| f5531cc7fa | |||
| 2ccff145ed | |||
| 43b2ee5e71 | |||
| 51463a4b41 | |||
| 4f0116bee7 | |||
| 31793cfa62 | |||
| 6d75540d4e | |||
| ba5cbe208f | |||
| 2b82203041 | |||
| 35da065445 | |||
| 12a1fe3ad4 | |||
| 91057f2a09 | |||
| 15060f00a5 | |||
| 1a82a03d5d | |||
| 4674105698 | |||
| ca3e9a385f | |||
| f05c222221 | |||
| 3dc5fc54df | |||
| bac84b4c8b | |||
| a5b9a80216 | |||
| 142d5e60ec | |||
| 61f947a580 | |||
| c4bbf28862 | |||
| 9befa81e36 | |||
| 414c7ac83d | |||
| 3a612f063e | |||
| 9daea73bba | |||
| 8e8131590c | |||
| 3acfe790b9 | |||
| 877d9120c9 | |||
| c15b88f250 | |||
| 2889e017cd | |||
| 47ea99090f | |||
| 1c1ba04c41 | |||
| 456216ab37 | |||
| 49d7bf8c39 | |||
| dade4cc6f3 | |||
| c747ac181d | |||
| 9837948c3a | |||
| 072fb380d8 | |||
| 85594956cf | |||
| 88eba56607 | |||
| cc6cf48256 | |||
| e571cb553b | |||
| bf9f6e872d | |||
| 8348c1b746 | |||
| 0a9744ac95 | |||
| 95954b7c57 | |||
| a707f81726 | |||
| dae6664555 | |||
| 9dd807344c | |||
| 2ecebf8ff2 | |||
| 6d3cb5f99f | |||
| ec8072d51f | |||
| 7a7bb80e23 | |||
| 99ac5c3045 | |||
| efab00a9de | |||
| 9ab0801ee1 | |||
| cfdb853ea6 | |||
| 41e857ea16 | |||
| 5b2da2b08d | |||
| 5e0a608ea6 | |||
| 3729aefb6f | |||
| 8a2122b4a4 | |||
| cc6f6fdb1d | |||
| 5ec4936a4f | |||
| be84682bcb | |||
| b07f3b4e74 | |||
| fc1f37d3df | |||
| a3f037773a | |||
| c71c8980cf | |||
| 6bf7b79f13 | |||
| 5d9adc14e7 | |||
| 575888d81b | |||
| 3539d3e72d | |||
| bb25111ca9 | |||
| 3c756a65a6 | |||
| 8d574826c9 | |||
| 7c7eebbe83 | |||
| 57ad85814b | |||
| 4b2b419400 | |||
| b83716f0eb | |||
| 6872a4dd7f | |||
| 4d6b2fec13 | |||
| 57c1a7fd69 | |||
| bf78b74db4 | |||
| f80fba4d24 | |||
| d075d2b453 | |||
| 5650624822 | |||
| bf07b0be58 | |||
| eeea53759b | |||
| a39f1e0f9b | |||
| 1614f80366 | |||
| e293c58bb0 | |||
| 3015ebfba1 | |||
| d7da4f5f2b | |||
| c1af6ff2e6 | |||
| aa4000cb0d | |||
| 33128d75f2 | |||
| bf87f37039 | |||
| 62e715ff5b | |||
| b3903175c8 | |||
| de47bd2323 | |||
| 19b55706ee | |||
| 6c68198d19 | |||
| f3c760c25f | |||
| 24fe946c06 | |||
| de6680bdf2 | |||
| 0a28da0cd0 | |||
| a838ff47b5 | |||
| 8bd078caeb | |||
| bce304a800 | |||
| 206d3e7b91 | |||
| 4be32cf746 | |||
| 4ec6075f81 | |||
| aa00e0a6b0 | |||
| bb7fae72c9 | |||
| 7bd19640a2 | |||
| b7271a2a6d | |||
| ecde418abb | |||
| 51036ced9d | |||
| b6c1ec3a24 | |||
| 46004001cb | |||
| f10c8ce25e | |||
| acc370d345 | |||
| 457ab84065 | |||
| 3bcb5452aa | |||
| 1f0e53a44d | |||
| 2d5cf1d3cf | |||
| a81254ed2a | |||
| fdef133d3d | |||
| fd01f0a0ee | |||
| 5b095ed6f3 | |||
| e7a3f34959 | |||
| 06d0c8f056 | |||
| 4064b8ff14 | |||
| 83ecc3d3ac | |||
| 6615eceb18 | |||
| 53f5a37f01 | |||
| bbef2f41ec | |||
| b6e729abeb | |||
| 5fe98689d4 | |||
| 8832a96e82 | |||
| 09631ed119 | |||
| 9257c7ce20 | |||
| b30f9a1677 | |||
| e6c3f96931 | |||
| 85ff81f238 | |||
| 5e0b7f013a | |||
| aa205c6a9f | |||
| 44bfad24a1 | |||
| 13e01841ca | |||
| a999975bc9 | |||
| edf30e1fa1 | |||
| f41bf2082a | |||
| 894d3f1722 | |||
| 83d96e2bbb | |||
| 7a180e22ff | |||
| 3609700b5e | |||
| 389f64df57 | |||
| e85064e4cf | |||
| dd95f8b5cb | |||
| 975487f630 | |||
| 4ba7546c65 | |||
| c97aa55163 | |||
| 2e1e30705a | |||
| c92ac809a5 | |||
| ec842e8d51 | |||
| 6d6e3900c3 | |||
| 0516a0d7a6 | |||
| adbbe158db | |||
| 6d2be4a305 | |||
| 78c9a5d45b | |||
| 5fa1645165 | |||
| bbf6ec0458 | |||
| e58b20f68d | |||
| 0ce697daba | |||
| a2dfadc6c8 | |||
| 6df8b3fe72 | |||
| b623adc6df | |||
| 2f77da7813 | |||
| 9897c99190 | |||
| aebc30447f | |||
| d2bae54ed0 | |||
| 501c369f39 | |||
| db3468a815 | |||
| 3aabed44ce | |||
| 3af7a6b082 | |||
| 2e985198c6 | |||
| 74a2ef8138 | |||
| 88ea21b276 | |||
| 62397dbd0b | |||
| 317b086f66 | |||
| 12340c1d10 | |||
| e747199711 | |||
| df7ce883c7 | |||
| eb3e2dca24 | |||
| 2d9b936b0a | |||
| 66c7aca2f6 | |||
| 0c3344d0c4 | |||
| 0ac211140a | |||
| 5d490664ca | |||
| d170dd305d | |||
| b50bd58795 | |||
| 1da279a290 | |||
| 100b9a470b | |||
| 43c2b36eaa | |||
| 203d0bd8ae | |||
| 14092fbadb | |||
| 35ad76771d | |||
| 96151c44aa | |||
| 02dcb01120 | |||
| 51d25e5859 | |||
| b8535689d3 | |||
| 8ff890635f | |||
| 29b6ba0758 | |||
| ca5793dbea | |||
| 0fdaa8e745 | |||
| 5a71044d5a | |||
| 8d091051af | |||
| 34da1ef9d6 | |||
| e31e35c46b |
@@ -28,11 +28,11 @@ If you're on Windows:
|
|||||||
**Describe the bug you encountered:**
|
**Describe the bug you encountered:**
|
||||||
...
|
...
|
||||||
|
|
||||||
**Describe what you expected to happen?**
|
**What did you expect to happen instead?**
|
||||||
...
|
...
|
||||||
|
|
||||||
**How did you install `bat`?**
|
**How did you install `bat`?**
|
||||||
apt-get, homebrew, GitHub release, etc.
|
<!-- apt-get, homebrew, GitHub release, etc. -->
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+17
-30
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
- name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
|
- name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true # we need all syntax and theme submodules
|
submodules: true # we need all syntax and theme submodules
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
@@ -58,6 +58,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --release
|
args: --release
|
||||||
|
- name: Run ignored-by-default unit tests with new syntaxes and themes
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --release -- --ignored
|
||||||
- name: Syntax highlighting regression test
|
- name: Syntax highlighting regression test
|
||||||
run: tests/syntax-tests/regression_test.sh
|
run: tests/syntax-tests/regression_test.sh
|
||||||
- name: List of languages
|
- name: List of languages
|
||||||
@@ -87,7 +92,7 @@ jobs:
|
|||||||
- { os: windows-latest , target: x86_64-pc-windows-msvc }
|
- { os: windows-latest , target: x86_64-pc-windows-msvc }
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -269,7 +274,6 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ARCHIVE_DIR='${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
|
ARCHIVE_DIR='${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
|
||||||
COPYRIGHT_YEARS="2018 - "$(date "+%Y")
|
|
||||||
# Binary
|
# Binary
|
||||||
cp 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "$ARCHIVE_DIR"
|
cp 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "$ARCHIVE_DIR"
|
||||||
|
|
||||||
@@ -279,8 +283,8 @@ jobs:
|
|||||||
# Man page
|
# Man page
|
||||||
cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "$ARCHIVE_DIR"
|
cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "$ARCHIVE_DIR"
|
||||||
|
|
||||||
# README, LICENSE and CHANGELOG files
|
# README and LICENSE files
|
||||||
cp "README.md" "LICENSE-MIT" "LICENSE-APACHE" "CHANGELOG.md" "$ARCHIVE_DIR"
|
cp "README.md" "LICENSE-MIT" "LICENSE-APACHE" "$ARCHIVE_DIR"
|
||||||
|
|
||||||
# Autocompletion files
|
# Autocompletion files
|
||||||
cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "$ARCHIVE_DIR/autocomplete/${{ env.PROJECT_NAME }}.fish"
|
cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "$ARCHIVE_DIR/autocomplete/${{ env.PROJECT_NAME }}.fish"
|
||||||
@@ -302,41 +306,26 @@ jobs:
|
|||||||
install -Dm755 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}"
|
install -Dm755 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}"
|
||||||
if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}" ; fi
|
if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}" ; fi
|
||||||
|
|
||||||
# Work out shared library dependencies
|
|
||||||
# dpkg-shlibdeps requires debian/control file. Dummy it and clean up
|
|
||||||
mkdir "./debian"
|
|
||||||
touch "./debian/control"
|
|
||||||
case ${{ matrix.job.target }} in
|
|
||||||
aarch64-*-linux-*) DEPENDS="$(dpkg-shlibdeps -l/usr/aarch64-linux-gnu/lib -O "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}" 2> /dev/null | sed 's/^shlibs:Depends=//')" ;;
|
|
||||||
arm-*-linux-*hf) DEPENDS="$(dpkg-shlibdeps -l/usr/arm-linux-gnueabihf/lib -O "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}" 2> /dev/null | sed 's/^shlibs:Depends=//')" ;;
|
|
||||||
i686-*-linux-*) DEPENDS="$(dpkg-shlibdeps -O "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}" 2> /dev/null | sed 's/^shlibs:Depends=//')" ;;
|
|
||||||
x86_64-*-linux-*) DEPENDS="$(dpkg-shlibdeps -O "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}" 2> /dev/null | sed 's/^shlibs:Depends=//')" ;;
|
|
||||||
esac;
|
|
||||||
rm -rf "./debian"
|
|
||||||
|
|
||||||
# Man page
|
# Man page
|
||||||
install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "${DPKG_DIR}/usr/share/man/man1/${{ env.PROJECT_NAME }}.1"
|
install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "${DPKG_DIR}/usr/share/man/man1/${{ env.PROJECT_NAME }}.1"
|
||||||
gzip -n --best "${DPKG_DIR}/usr/share/man/man1/${{ env.PROJECT_NAME }}.1"
|
gzip --best "${DPKG_DIR}/usr/share/man/man1/${{ env.PROJECT_NAME }}.1"
|
||||||
|
|
||||||
# Autocompletion files
|
# Autocompletion files
|
||||||
install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "${DPKG_DIR}/usr/share/fish/vendor_completions.d/${{ env.PROJECT_NAME }}.fish"
|
install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "${DPKG_DIR}/usr/share/fish/vendor_completions.d/${{ env.PROJECT_NAME }}.fish"
|
||||||
install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.zsh "${DPKG_DIR}/usr/share/zsh/vendor-completions/_${{ env.PROJECT_NAME }}"
|
install -Dm644 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.zsh "${DPKG_DIR}/usr/share/zsh/vendor-completions/_${{ env.PROJECT_NAME }}"
|
||||||
|
|
||||||
# README and LICENSE
|
# README and LICENSE
|
||||||
install -Dm644 "README.md" "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/README.md"
|
install -Dm644 "README.md" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/README.md"
|
||||||
install -Dm644 "LICENSE-MIT" "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/LICENSE-MIT"
|
install -Dm644 "LICENSE-MIT" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/LICENSE-MIT"
|
||||||
install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/LICENSE-APACHE"
|
install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/LICENSE-APACHE"
|
||||||
install -Dm644 "CHANGELOG.md" "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/changelog"
|
|
||||||
gzip -n --best "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/changelog"
|
|
||||||
|
|
||||||
cat > "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/copyright" <<EOF
|
cat > "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/copyright" <<EOF
|
||||||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
Upstream-Name: ${{ env.PROJECT_NAME }}
|
Upstream-Name: ${{ env.PROJECT_NAME }}
|
||||||
Source: ${{ env.PROJECT_HOMEPAGE }}
|
Source: ${{ env.PROJECT_HOMEPAGE }}
|
||||||
|
|
||||||
Files: *
|
Files: *
|
||||||
Copyright: ${{ env.PROJECT_MAINTAINER }}
|
Copyright: ${{ env.PROJECT_MAINTAINER }}
|
||||||
Copyright: $COPYRIGHT_YEARS ${{ env.PROJECT_MAINTAINER }}
|
|
||||||
License: Apache-2.0 or MIT
|
License: Apache-2.0 or MIT
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@@ -368,7 +357,6 @@ jobs:
|
|||||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
DEALINGS IN THE SOFTWARE.
|
DEALINGS IN THE SOFTWARE.
|
||||||
EOF
|
EOF
|
||||||
chmod 644 "${DPKG_DIR}/usr/share/doc/${{ steps.vars.outputs.DPKG_BASENAME }}/copyright"
|
|
||||||
|
|
||||||
# control file
|
# control file
|
||||||
mkdir -p "${DPKG_DIR}/DEBIAN"
|
mkdir -p "${DPKG_DIR}/DEBIAN"
|
||||||
@@ -380,10 +368,9 @@ jobs:
|
|||||||
Maintainer: ${{ env.PROJECT_MAINTAINER }}
|
Maintainer: ${{ env.PROJECT_MAINTAINER }}
|
||||||
Homepage: ${{ env.PROJECT_HOMEPAGE }}
|
Homepage: ${{ env.PROJECT_HOMEPAGE }}
|
||||||
Architecture: ${{ steps.vars.outputs.DPKG_ARCH }}
|
Architecture: ${{ steps.vars.outputs.DPKG_ARCH }}
|
||||||
Depends: $DEPENDS
|
|
||||||
Provides: ${{ env.PROJECT_NAME }}
|
Provides: ${{ env.PROJECT_NAME }}
|
||||||
Conflicts: ${{ steps.vars.outputs.DPKG_CONFLICTS }}
|
Conflicts: ${{ steps.vars.outputs.DPKG_CONFLICTS }}
|
||||||
Description: cat(1) clone with wings.
|
Description: A cat(1) clone with wings.
|
||||||
A cat(1) clone with syntax highlighting and Git integration.
|
A cat(1) clone with syntax highlighting and Git integration.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@@ -412,7 +399,7 @@ jobs:
|
|||||||
- { os: macos-latest , toolchain: nightly-2020-04-29 }
|
- { os: macos-latest , toolchain: nightly-2020-04-29 }
|
||||||
- { os: windows-latest , toolchain: nightly-2020-04-29-x86_64-pc-windows-gnu }
|
- { os: windows-latest , toolchain: nightly-2020-04-29-x86_64-pc-windows-gnu }
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Initialize workflow variables
|
- name: Initialize workflow variables
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -197,3 +197,12 @@
|
|||||||
[submodule "assets/syntaxes/02_Extra/Apache"]
|
[submodule "assets/syntaxes/02_Extra/Apache"]
|
||||||
path = assets/syntaxes/02_Extra/Apache
|
path = assets/syntaxes/02_Extra/Apache
|
||||||
url = https://github.com/colinta/ApacheConf.tmLanguage
|
url = https://github.com/colinta/ApacheConf.tmLanguage
|
||||||
|
[submodule "assets/syntaxes/02_Extra/Ninja"]
|
||||||
|
path = assets/syntaxes/02_Extra/Ninja
|
||||||
|
url = https://github.com/pope/SublimeNinja.git
|
||||||
|
[submodule "assets/syntaxes/02_Extra/Svelte"]
|
||||||
|
path = assets/syntaxes/02_Extra/Svelte
|
||||||
|
url = https://github.com/corneliusio/svelte-sublime
|
||||||
|
[submodule "assets/themes/Coldark"]
|
||||||
|
path = assets/themes/Coldark
|
||||||
|
url = https://github.com/ArmandPhilippot/coldark-bat.git
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# unreleased
|
# unreleased
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
@@ -14,6 +15,41 @@
|
|||||||
|
|
||||||
## Packaging
|
## Packaging
|
||||||
|
|
||||||
|
# v0.17.1
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Running `bat` without arguments fails ("output file is also an input"), see #1396
|
||||||
|
|
||||||
|
# v0.17.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Added a new `--style` value, `rule`, which adds a simple horizontal ruled line between files, see #1276 (@tommilligan)
|
||||||
|
- Pass `-S` ("chop long lines") to `less` if `--wrap=never` is set in `bat`, see #1255 (@gahag)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Detect infinite loop when input and output are the same, see #1193 and #1197 (@niklasmohrin)
|
||||||
|
- Throw an error when `bat` is being used as `pager`, see #1343 (@adrian-rivera)
|
||||||
|
- Bash syntax highlighting not selected for `*.ebuild` and `*.eclass` files, see #1292 (@sharkdp)
|
||||||
|
- Fix `zsh` completion when using `-p`, see #1320 (@xzfc)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Add note to refer to see detailed help with `--help` (and vice versa with `-h`), see #1215 (@henil)
|
||||||
|
- Add a `Contributors` section to `README`, see #1348 (@adrian-rivera)
|
||||||
|
|
||||||
|
## Syntaxes
|
||||||
|
|
||||||
|
- Manpage syntax highlighting has been improved, see #1315 (@keith-hall)
|
||||||
|
- Add Svelte file syntax, see #1285 (@kjmph)
|
||||||
|
|
||||||
|
## New themes
|
||||||
|
|
||||||
|
- Coldark, see #1329 (@armandphilippot)
|
||||||
|
|
||||||
|
|
||||||
# v0.16.0
|
# v0.16.0
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
Thank you for considering to contribute to `bat`!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Add an entry to the changelog
|
||||||
|
|
||||||
|
If your contribution changes the behavior of `bat` (as opposed to a typo-fix
|
||||||
|
in the documentation), please update the [`CHANGELOG.md`](CHANGELOG.md) file
|
||||||
|
and describe your changes. This makes the release proess much easier and
|
||||||
|
therefore helps to get your changes into a new `bat` release faster.
|
||||||
|
|
||||||
|
The top of the `CHANGELOG` contains a *"unreleased"* section with a few
|
||||||
|
subsections (Features, Bugfixes, …). Please add your entry to the subsection
|
||||||
|
that best describes your change
|
||||||
|
|
||||||
|
Entries follow this format:
|
||||||
|
```
|
||||||
|
- Short description of what has been changed, see #123 (@user)
|
||||||
|
```
|
||||||
|
Here, `#123` is the number of the original issue and/or your pull request.
|
||||||
|
Please replace `@user` by your GitHub username.
|
||||||
|
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
Please check out the [Development](https://github.com/sharkdp/bat#development)
|
||||||
|
section in the README.
|
||||||
|
|
||||||
|
|
||||||
|
## Adding a new feature
|
||||||
|
|
||||||
|
Please consider opening a
|
||||||
|
[feature request ticket](https://github.com/sharkdp/bat/issues/new?assignees=&labels=feature-request&template=feature_request.md)
|
||||||
|
first in order to give us a chance to discuss the feature first.
|
||||||
|
|
||||||
|
|
||||||
|
## Adding new syntaxes/languages or themes
|
||||||
|
|
||||||
|
Before you make a pull request that adds a new syntax or theme, please read
|
||||||
|
the [Customization](https://github.com/sharkdp/bat#customization) section
|
||||||
|
in the README first.
|
||||||
|
|
||||||
|
If you really think that a particular syntax or theme should be added for all
|
||||||
|
users, please read the corresponding
|
||||||
|
[documentation](https://github.com/sharkdp/bat/blob/master/doc/assets.md)
|
||||||
|
first.
|
||||||
Generated
+395
-407
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -7,7 +7,7 @@ license = "MIT/Apache-2.0"
|
|||||||
name = "bat"
|
name = "bat"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/sharkdp/bat"
|
repository = "https://github.com/sharkdp/bat"
|
||||||
version = "0.16.0"
|
version = "0.17.1"
|
||||||
exclude = [
|
exclude = [
|
||||||
"assets/syntaxes/*",
|
"assets/syntaxes/*",
|
||||||
"assets/themes/*",
|
"assets/themes/*",
|
||||||
@@ -38,7 +38,7 @@ regex-fancy = ["syntect/regex-fancy"] # Use the rust-only "fancy-regex" engine
|
|||||||
atty = { version = "0.2.14", optional = true }
|
atty = { version = "0.2.14", optional = true }
|
||||||
ansi_term = "^0.12.1"
|
ansi_term = "^0.12.1"
|
||||||
ansi_colours = "^1.0"
|
ansi_colours = "^1.0"
|
||||||
console = "0.12.0"
|
console = "0.13.0"
|
||||||
dirs = { version = "3.0", optional = true }
|
dirs = { version = "3.0", optional = true }
|
||||||
lazy_static = { version = "1.4", optional = true }
|
lazy_static = { version = "1.4", optional = true }
|
||||||
wild = { version = "2.0", optional = true }
|
wild = { version = "2.0", optional = true }
|
||||||
|
|||||||
@@ -38,14 +38,14 @@ characters:
|
|||||||
|
|
||||||
### Automatic paging
|
### Automatic paging
|
||||||
|
|
||||||
`bat` can pipe its own output to a pager (e.g `less`) if the output is too large for one screen.
|
By default, `bat` pipes its own output to a pager (e.g `less`) if the output is too large for one screen.
|
||||||
|
If you would rather `bat` work like `cat` all the time (never page output), you can set `--paging=never` as an option, either on the command line or in your configuration file.
|
||||||
|
If you intend to alias `cat` to `bat` in your shell configuration, you can use `alias cat='bat --paging=never'` to preserve the default behavior.
|
||||||
|
|
||||||
### File concatenation
|
#### File concatenation
|
||||||
|
|
||||||
Oh.. you can also use it to concatenate files :wink:. Whenever
|
Even with a pager set, you can still use `bat` to concatenate files :wink:.
|
||||||
`bat` detects a non-interactive terminal (i.e. when you pipe into another process
|
Whenever `bat` detects a non-interactive terminal (i.e. when you pipe into another process or into a file), `bat` will act as a drop-in replacement for `cat` and fall back to printing the plain file contents, regardless of the `--pager` option's value.
|
||||||
or into a file), `bat` will act as a drop-in replacement for `cat` and
|
|
||||||
fall back to printing the plain file contents.
|
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
@@ -131,7 +131,18 @@ highlighting:
|
|||||||
git show v0.6.0:src/main.rs | bat -l rs
|
git show v0.6.0:src/main.rs | bat -l rs
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that syntax highlighting within diffs is currently not supported. If you are looking for this, check out [`delta`](https://github.com/dandavison/delta).
|
#### `git diff`
|
||||||
|
|
||||||
|
You can combine `bat` with `git diff` to view lines around code changes with proper syntax
|
||||||
|
highlighting:
|
||||||
|
```bash
|
||||||
|
batdiff() {
|
||||||
|
git diff --name-only --diff-filter=d | xargs bat --diff
|
||||||
|
}
|
||||||
|
```
|
||||||
|
If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).
|
||||||
|
|
||||||
|
If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta).
|
||||||
|
|
||||||
#### `xclip`
|
#### `xclip`
|
||||||
|
|
||||||
@@ -200,7 +211,7 @@ the most recent release of `bat`, download the latest `.deb` package from the
|
|||||||
[release page](https://github.com/sharkdp/bat/releases) and install it via:
|
[release page](https://github.com/sharkdp/bat/releases) and install it via:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo dpkg -i bat_0.16.0_amd64.deb # adapt version number and architecture
|
sudo dpkg -i bat_0.17.1_amd64.deb # adapt version number and architecture
|
||||||
```
|
```
|
||||||
|
|
||||||
### On Alpine Linux
|
### On Alpine Linux
|
||||||
@@ -276,14 +287,16 @@ You can install `bat` with zypper:
|
|||||||
zypper install bat
|
zypper install bat
|
||||||
```
|
```
|
||||||
|
|
||||||
### On macOS
|
### On macOS (or Linux) via Homebrew
|
||||||
|
|
||||||
You can install `bat` with [Homebrew](http://braumeister.org/formula/bat):
|
You can install `bat` with [Homebrew on MacOS](https://formulae.brew.sh/formula/bat) or [Homebrew on Linux](https://formulae.brew.sh/formula-linux/bat):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew install bat
|
brew install bat
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### On macOS via MacPorts
|
||||||
|
|
||||||
Or install `bat` with [MacPorts](https://ports.macports.org/port/bat/summary):
|
Or install `bat` with [MacPorts](https://ports.macports.org/port/bat/summary):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -334,7 +347,7 @@ higher. You can then use `cargo` to build everything:
|
|||||||
cargo install --locked bat
|
cargo install --locked bat
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that addition files like the man page or shell completion
|
Note that additional files like the man page or shell completion
|
||||||
files can not be installed in this way. They will be generated by `cargo` and should be available in the cargo target folder (under `build`).
|
files can not be installed in this way. They will be generated by `cargo` and should be available in the cargo target folder (under `build`).
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
@@ -389,35 +402,45 @@ variable to make these changes permanent or use `bat`s
|
|||||||
|
|
||||||
### Adding new syntaxes / language definitions
|
### Adding new syntaxes / language definitions
|
||||||
|
|
||||||
|
Should you find that a particular syntax is not available within `bat`, you can follow these
|
||||||
|
instructions to easily add new syntaxes to your current `bat` installation.
|
||||||
|
|
||||||
`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/)
|
`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/)
|
||||||
library for syntax highlighting. `syntect` can read any
|
library for syntax highlighting. `syntect` can read any
|
||||||
[Sublime Text `.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)
|
[Sublime Text `.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)
|
||||||
and theme. To add new syntax definitions, do the following.
|
and theme.
|
||||||
|
|
||||||
Create a folder with syntax definition files:
|
A good resource for finding Sublime Syntax packages is [Package Control](https://packagecontrol.io/). Once you found a
|
||||||
|
syntax:
|
||||||
|
|
||||||
```bash
|
1. Create a folder with syntax definition files:
|
||||||
mkdir -p "$(bat --config-dir)/syntaxes"
|
|
||||||
cd "$(bat --config-dir)/syntaxes"
|
|
||||||
|
|
||||||
# Put new '.sublime-syntax' language definition files
|
```bash
|
||||||
# in this folder (or its subdirectories), for example:
|
mkdir -p "$(bat --config-dir)/syntaxes"
|
||||||
git clone https://github.com/tellnobody1/sublime-purescript-syntax
|
cd "$(bat --config-dir)/syntaxes"
|
||||||
```
|
|
||||||
|
|
||||||
Now use the following command to parse these files into a binary cache:
|
# Put new '.sublime-syntax' language definition files
|
||||||
|
# in this folder (or its subdirectories), for example:
|
||||||
|
git clone https://github.com/tellnobody1/sublime-purescript-syntax
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
2. Now use the following command to parse these files into a binary cache:
|
||||||
bat cache --build
|
|
||||||
```
|
|
||||||
|
|
||||||
Finally, use `bat --list-languages` to check if the new languages are available.
|
```bash
|
||||||
|
bat cache --build
|
||||||
|
```
|
||||||
|
|
||||||
If you ever want to go back to the default settings, call:
|
3. Finally, use `bat --list-languages` to check if the new languages are available.
|
||||||
|
|
||||||
```bash
|
If you ever want to go back to the default settings, call:
|
||||||
bat cache --clear
|
|
||||||
```
|
```bash
|
||||||
|
bat cache --clear
|
||||||
|
```
|
||||||
|
|
||||||
|
4. If you think that a specific syntax should be included in `bat` by default, please
|
||||||
|
consider opening a "syntax request" ticket after reading the policies and
|
||||||
|
instructions [here](doc/assets.md): [Open Syntax Request](https://github.com/sharkdp/bat/issues/new?labels=syntax-request&template=syntax_request.md).
|
||||||
|
|
||||||
### Adding new themes
|
### Adding new themes
|
||||||
|
|
||||||
@@ -437,6 +460,33 @@ bat cache --build
|
|||||||
|
|
||||||
Finally, use `bat --list-themes` to check if the new themes are available.
|
Finally, use `bat --list-themes` to check if the new themes are available.
|
||||||
|
|
||||||
|
### Adding or changing file type associations
|
||||||
|
|
||||||
|
You can add new (or change existing) file name patterns using the `--map-syntax`
|
||||||
|
command line option. The option takes an argument of the form `pattern:syntax` where
|
||||||
|
`pattern` is a glob pattern that is matched against the file name and
|
||||||
|
the absolute file path. The `syntax` part is the full name of a supported language
|
||||||
|
(use `bat --list-languages` for an overview)full .
|
||||||
|
|
||||||
|
Note: You probably want to use this option as an entry in `bat`s configuration file instead
|
||||||
|
of passing it on the command line (see below).
|
||||||
|
|
||||||
|
Example: To use "INI" syntax highlighting for all files with a `.conf` file extension, use
|
||||||
|
```bash
|
||||||
|
--map-syntax='*.conf:INI'
|
||||||
|
```
|
||||||
|
|
||||||
|
Example: To open all files called `.ignore` (exact match) with the "Git Ignore" syntax, use:
|
||||||
|
```bash
|
||||||
|
--map-syntax='.ignore:Git Ignore'
|
||||||
|
```
|
||||||
|
|
||||||
|
Example: To open all `.conf` files in subfolders of `/etc/apache2` with the "Apache Conf"
|
||||||
|
syntax, use (this mapping is already built in):
|
||||||
|
```bash
|
||||||
|
-map-syntax='/etc/apache2/**/*.conf:Apache Conf'
|
||||||
|
```
|
||||||
|
|
||||||
### Using a different pager
|
### Using a different pager
|
||||||
|
|
||||||
`bat` uses the pager that is specified in the `PAGER` environment variable. If this variable is not
|
`bat` uses the pager that is specified in the `PAGER` environment variable. If this variable is not
|
||||||
@@ -488,6 +538,7 @@ and the `GitHub` theme when in the _light mode_.
|
|||||||
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
|
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Configuration file
|
## Configuration file
|
||||||
|
|
||||||
`bat` can also be customized with a configuration file. The location of the file is dependent
|
`bat` can also be customized with a configuration file. The location of the file is dependent
|
||||||
@@ -524,9 +575,6 @@ Example configuration file:
|
|||||||
|
|
||||||
# Use C++ syntax for .ino files
|
# Use C++ syntax for .ino files
|
||||||
--map-syntax "*.ino:C++"
|
--map-syntax "*.ino:C++"
|
||||||
|
|
||||||
# Use ".gitignore"-style highlighting for ".ignore" files
|
|
||||||
--map-syntax ".ignore:Git Ignore"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using `bat` on Windows
|
## Using `bat` on Windows
|
||||||
@@ -621,17 +669,22 @@ cargo build --bins
|
|||||||
cargo test
|
cargo test
|
||||||
|
|
||||||
# Install (release version)
|
# Install (release version)
|
||||||
cargo install --locked
|
cargo install --path . --locked
|
||||||
|
|
||||||
# Build a bat binary with modified syntaxes and themes
|
# Build a bat binary with modified syntaxes and themes
|
||||||
bash assets/create.sh
|
bash assets/create.sh
|
||||||
cargo install --locked --force
|
cargo install --path . --locked --force
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Take a look at the [`CONTRIBUTING.md`](CONTRIBUTING.md) guide.
|
||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
|
|
||||||
- [sharkdp](https://github.com/sharkdp)
|
- [sharkdp](https://github.com/sharkdp)
|
||||||
- [eth-p](https://github.com/eth-p)
|
- [eth-p](https://github.com/eth-p)
|
||||||
|
- [keith-hall](https://github.com/keith-hall)
|
||||||
|
|
||||||
## Project goals and alternatives
|
## Project goals and alternatives
|
||||||
|
|
||||||
|
|||||||
Vendored
+8
-8
@@ -3,8 +3,8 @@
|
|||||||
local context state state_descr line
|
local context state state_descr line
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
(( $+functions[_cache_subcommand] )) ||
|
(( $+functions[_{{PROJECT_EXECUTABLE}}_cache_subcommand] )) ||
|
||||||
_cache_subcommand() {
|
_{{PROJECT_EXECUTABLE}}_cache_subcommand() {
|
||||||
local -a args
|
local -a args
|
||||||
args=(
|
args=(
|
||||||
'(-b --build -c --clear)'{-b,--build}'[Initialize or update the syntax/theme cache]'
|
'(-b --build -c --clear)'{-b,--build}'[Initialize or update the syntax/theme cache]'
|
||||||
@@ -19,12 +19,12 @@ _cache_subcommand() {
|
|||||||
_arguments -S -s $args
|
_arguments -S -s $args
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_main] )) ||
|
(( $+functions[_{{PROJECT_EXECUTABLE}}_main] )) ||
|
||||||
_main() {
|
_{{PROJECT_EXECUTABLE}}_main() {
|
||||||
local -a args
|
local -a args
|
||||||
args=(
|
args=(
|
||||||
'(-A --show-all)'{-A,--show-all}'[Show non-printable characters (space, tab, newline, ..)]'
|
'(-A --show-all)'{-A,--show-all}'[Show non-printable characters (space, tab, newline, ..)]'
|
||||||
{-p,--plain}'[Show plain style (alias for `--style=plain`)]:When `-p` is used twice (`-pp`), it also disables automatic paging (alias for `--style=plain --paging=never`)'
|
'*'{-p,--plain}'[Show plain style (alias for `--style=plain`), repeat twice to disable disable automatic paging (alias for `--paging=never`)]'
|
||||||
'(-l --language)'{-l+,--language=}'[Set the language for syntax highlighting]:<language>:->language'
|
'(-l --language)'{-l+,--language=}'[Set the language for syntax highlighting]:<language>:->language'
|
||||||
'(-H --highlight-line)'{-H,--highlight-line}'[Highlight lines N through M]:<N\:M>...'
|
'(-H --highlight-line)'{-H,--highlight-line}'[Highlight lines N through M]:<N\:M>...'
|
||||||
'(--file-name)'--file-name'[Specify the name to display for a file]:<name>...:_files'
|
'(--file-name)'--file-name'[Specify the name to display for a file]:<name>...:_files'
|
||||||
@@ -79,15 +79,15 @@ if (( ${#words} == 2 )); then
|
|||||||
local -a subcommands
|
local -a subcommands
|
||||||
subcommands=('cache:Modify the syntax-definition and theme cache')
|
subcommands=('cache:Modify the syntax-definition and theme cache')
|
||||||
_describe subcommand subcommands
|
_describe subcommand subcommands
|
||||||
_main
|
_{{PROJECT_EXECUTABLE}}_main
|
||||||
else
|
else
|
||||||
case $words[2] in
|
case $words[2] in
|
||||||
cache)
|
cache)
|
||||||
_cache_subcommand
|
_{{PROJECT_EXECUTABLE}}_cache_subcommand
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
_main
|
_{{PROJECT_EXECUTABLE}}_main
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|||||||
Vendored
+7
-7
@@ -90,7 +90,7 @@ values: *auto*, never, always.
|
|||||||
\fB\-f\fR, \fB\-\-force\-colorization\fR
|
\fB\-f\fR, \fB\-\-force\-colorization\fR
|
||||||
.IP
|
.IP
|
||||||
Alias for '--decorations=always --color=always'. This is useful \
|
Alias for '--decorations=always --color=always'. This is useful \
|
||||||
if the output of bat is piped to another program, but you want \
|
if the output of {{PROJECT_EXECUTABLE}} is piped to another program, but you want \
|
||||||
to keep the colorization/decorations.
|
to keep the colorization/decorations.
|
||||||
.HP
|
.HP
|
||||||
\fB\-\-paging\fR <when>
|
\fB\-\-paging\fR <when>
|
||||||
@@ -129,7 +129,7 @@ Configure which elements (line numbers, file headers, grid borders, Git modifica
|
|||||||
of components to display (e.g. 'numbers,changes,grid') or a pre\-defined style ('full').
|
of components to display (e.g. 'numbers,changes,grid') or a pre\-defined style ('full').
|
||||||
To set a default style, add the '\-\-style=".."' option to the configuration file or
|
To set a default style, add the '\-\-style=".."' option to the configuration file or
|
||||||
export the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). Possible
|
export the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). Possible
|
||||||
values: *auto*, full, plain, changes, header, grid, numbers, snip.
|
values: *auto*, full, plain, changes, header, grid, rule, numbers, snip.
|
||||||
.HP
|
.HP
|
||||||
\fB\-r\fR, \fB\-\-line\-range\fR <N:M>...
|
\fB\-r\fR, \fB\-\-line\-range\fR <N:M>...
|
||||||
.IP
|
.IP
|
||||||
@@ -174,12 +174,12 @@ is dependent on your operating system. To get the default path for your system,
|
|||||||
|
|
||||||
\fB{{PROJECT_EXECUTABLE}} --config-file\fR
|
\fB{{PROJECT_EXECUTABLE}} --config-file\fR
|
||||||
|
|
||||||
Alternatively, you can use the BAT_CONFIG_PATH environment variable to point bat to a non-default
|
Alternatively, you can use the BAT_CONFIG_PATH environment variable to point {{PROJECT_EXECUTABLE}} to a non-default
|
||||||
location of the configuration file.
|
location of the configuration file.
|
||||||
.SH "ADDING CUSTOM LANGUAGES"
|
.SH "ADDING CUSTOM LANGUAGES"
|
||||||
{{PROJECT_EXECUTABLE}} supports Sublime Text \fB.sublime-syntax\fR language files, and can be
|
{{PROJECT_EXECUTABLE}} supports Sublime Text \fB.sublime-syntax\fR language files, and can be
|
||||||
customized to add additional languages to your local installation. To do this, add the \fB.sublime-snytax\fR language
|
customized to add additional languages to your local installation. To do this, add the \fB.sublime-syntax\fR language
|
||||||
files to `\fB$({{PROJECT_EXECUTABLE}} --config-dir)/syntaxes\fR` and run `\fBbat cache --build\fR`.
|
files to `\fB$({{PROJECT_EXECUTABLE}} --config-dir)/syntaxes\fR` and run `\fB{{PROJECT_EXECUTABLE}} cache --build\fR`.
|
||||||
|
|
||||||
\fBExample:\fR
|
\fBExample:\fR
|
||||||
|
|
||||||
@@ -199,9 +199,9 @@ git clone https://github.com/tellnobody1/sublime-purescript-syntax
|
|||||||
{{PROJECT_EXECUTABLE}} cache --build
|
{{PROJECT_EXECUTABLE}} cache --build
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
Once the cache is built, the new language will be visible in `\fBbat --list-languages\fR`.
|
Once the cache is built, the new language will be visible in `\fB{{PROJECT_EXECUTABLE}} --list-languages\fR`.
|
||||||
.br
|
.br
|
||||||
If you ever want to remove the custom languages, you can clear the cache with `\fBbat cache --clear\fR`.
|
If you ever want to remove the custom languages, you can clear the cache with `\fB{{PROJECT_EXECUTABLE}} cache --clear\fR`.
|
||||||
|
|
||||||
.SH "ADDING CUSTOM THEMES"
|
.SH "ADDING CUSTOM THEMES"
|
||||||
Similarly to custom languages, {{PROJECT_EXECUTABLE}} supports Sublime Text \fB.tmTheme\fR themes.
|
Similarly to custom languages, {{PROJECT_EXECUTABLE}} supports Sublime Text \fB.tmTheme\fR themes.
|
||||||
|
|||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
diff --git syntaxes/01_Packages/ShellScript/Bash.sublime-syntax syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
|
||||||
|
index e973e319..a703cef8 100644
|
||||||
|
--- syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
|
||||||
|
+++ syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
|
||||||
|
@@ -30,8 +30,8 @@ file_extensions:
|
||||||
|
- .zshenv
|
||||||
|
- .zshrc
|
||||||
|
- PKGBUILD # https://jlk.fjfi.cvut.cz/arch/manpages/man/PKGBUILD.5
|
||||||
|
- - .ebuild
|
||||||
|
- - .eclass
|
||||||
|
+ - ebuild
|
||||||
|
+ - eclass
|
||||||
|
|
||||||
|
first_line_match: |
|
||||||
|
(?x)
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
+1
-1
Submodule assets/syntaxes/02_Extra/CMake updated: aba96a0862...21e96989d6
Vendored
+1
-1
Submodule assets/syntaxes/02_Extra/Elixir updated: 4ee539b43d...4fb01891dd
+2
-1
@@ -25,12 +25,13 @@ contexts:
|
|||||||
scope: comment.line.semicolon.ini
|
scope: comment.line.semicolon.ini
|
||||||
captures:
|
captures:
|
||||||
1: punctuation.definition.comment.ini
|
1: punctuation.definition.comment.ini
|
||||||
- match: '^\s*(\[)(.*?)(\])'
|
- match: '^\s*(\[)(.*?)(\])\s*(;.*)?$\n?'
|
||||||
scope: meta.tag.section.ini
|
scope: meta.tag.section.ini
|
||||||
captures:
|
captures:
|
||||||
1: punctuation.definition.section.ini
|
1: punctuation.definition.section.ini
|
||||||
2: entity.section.ini
|
2: entity.section.ini
|
||||||
3: punctuation.definition.section.ini
|
3: punctuation.definition.section.ini
|
||||||
|
4: comment.definition.section.ini
|
||||||
- match: '^(\s*(["'']?)(.+?)(\2)\s*(=))?\s*((["'']?)(.*?)(\7))\s*(;.*)?$\n?'
|
- match: '^(\s*(["'']?)(.+?)(\2)\s*(=))?\s*((["'']?)(.*?)(\7))\s*(;.*)?$\n?'
|
||||||
scope: meta.declaration.ini
|
scope: meta.declaration.ini
|
||||||
captures:
|
captures:
|
||||||
|
|||||||
+138
-28
@@ -7,47 +7,157 @@ file_extensions:
|
|||||||
scope: source.man
|
scope: source.man
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
section_heading: '^\S.*$'
|
section_heading: '^(?!#)\S.*$'
|
||||||
|
command_line_option: '(--?[A-Za-z0-9][_A-Za-z0-9-]*)'
|
||||||
|
|
||||||
contexts:
|
contexts:
|
||||||
|
prototype:
|
||||||
|
# ignore syntax test lines
|
||||||
|
- match: '^#'
|
||||||
|
push:
|
||||||
|
- meta_scope: comment.syntax-test.man
|
||||||
|
- match: $\n?
|
||||||
|
pop: true
|
||||||
main:
|
main:
|
||||||
- match: ^
|
- match: ^
|
||||||
push: first_line
|
push: first_line
|
||||||
|
|
||||||
first_line:
|
first_line:
|
||||||
- match: '([A-Z0-9_\-]+)(\()([^)]+)(\))'
|
- match: '([A-Z0-9_\-]+)(\()([^)]+)(\))\s*'
|
||||||
captures:
|
captures:
|
||||||
1: meta.preprocessor
|
1: meta.preprocessor.man
|
||||||
2: keyword.operator
|
2: keyword.operator.man
|
||||||
3: string.quoted.other
|
3: string.quoted.other.man
|
||||||
4: keyword.operator
|
4: keyword.operator.man
|
||||||
|
push:
|
||||||
- match: '$'
|
- match: (?:[\w'-]+|\s(?!\s))
|
||||||
push: body
|
scope: markup.heading.title.man
|
||||||
|
- match: \s\s
|
||||||
body:
|
pop: true
|
||||||
- match: '^(SYNOPSIS|SYNTAX|SINTASSI|SKŁADNIA|СИНТАКСИС|書式)'
|
- match: '(?=\S|$)'
|
||||||
push: Packages/C/C.sublime-syntax
|
|
||||||
scope: markup.heading
|
|
||||||
with_prototype:
|
|
||||||
- match: '(?={{section_heading}})'
|
|
||||||
pop: true
|
pop: true
|
||||||
|
|
||||||
- match: '^\S.*$'
|
- match: '$'
|
||||||
scope: markup.heading
|
set: body
|
||||||
|
|
||||||
|
body:
|
||||||
|
# English, ..., ..., ..., Russian, ...
|
||||||
|
|
||||||
|
- match: '^(?:SYNOPSIS|SYNTAX|SINTASSI|SKŁADNIA|СИНТАКСИС|書式)'
|
||||||
|
scope: markup.heading.synopsis.man
|
||||||
|
embed: synopsis
|
||||||
|
escape: '(?={{section_heading}})'
|
||||||
|
|
||||||
|
- match: '^(?:USAGE)'
|
||||||
|
scope: markup.heading.synopsis.man
|
||||||
|
embed: synopsis
|
||||||
|
escape: '(?={{section_heading}})'
|
||||||
|
|
||||||
|
- match: '{{section_heading}}'
|
||||||
|
scope: markup.heading.other.man
|
||||||
|
embed: options # some man pages put command line options under the description heading
|
||||||
|
escape: '(?={{section_heading}})'
|
||||||
|
|
||||||
|
function-call:
|
||||||
- match: '\b([A-Za-z0-9_\-]+)(\()([^)]*)(\))'
|
- match: '\b([A-Za-z0-9_\-]+)(\()([^)]*)(\))'
|
||||||
captures:
|
captures:
|
||||||
1: entity.name.function
|
1: entity.name.function.man
|
||||||
2: keyword.operator
|
2: keyword.operator.man
|
||||||
3: constant.numeric
|
3: constant.numeric.man
|
||||||
4: keyword.operator
|
4: keyword.operator.man
|
||||||
|
|
||||||
|
options:
|
||||||
# command-line options like --option=value, --some-flag, or -x
|
# command-line options like --option=value, --some-flag, or -x
|
||||||
- match: '(?:[^a-zA-Z0-9_-]|^|\s)(--?[A-Za-z0-9][A-Za-z0-9-]*)(?:(=)?("?)([A-Za-z0-9]+)("?))?'
|
- match: '^[ ]{7}(?=-)'
|
||||||
|
push: expect-command-line-option
|
||||||
|
- match: '(?:[^a-zA-Z0-9_-]|^|\s){{command_line_option}}'
|
||||||
captures:
|
captures:
|
||||||
1: entity.name
|
1: entity.name.command-line-option
|
||||||
2: keyword.operator
|
push:
|
||||||
3: punctuation.definition.string.begin
|
- match: '='
|
||||||
4: variable.parameter
|
scope: keyword.operator.man
|
||||||
3: punctuation.definition.string.end
|
set:
|
||||||
|
- match: '[^],.() ]+'
|
||||||
|
scope: variable.parameter.man
|
||||||
|
pop: true
|
||||||
|
- match: $
|
||||||
|
pop: true
|
||||||
|
- match: ''
|
||||||
|
pop: true
|
||||||
|
- include: function-call
|
||||||
|
- include: c-code
|
||||||
|
|
||||||
|
expect-command-line-option:
|
||||||
|
- match: '[A-Za-z0-9-]+'
|
||||||
|
scope: entity.name.command-line-option.man
|
||||||
|
- match: '(\[)(=)'
|
||||||
|
captures:
|
||||||
|
1: punctuation.section.brackets.begin.man
|
||||||
|
2: keyword.operator.man
|
||||||
|
push: [command-line-option-or-pipe, expect-parameter]
|
||||||
|
- match: '\['
|
||||||
|
push:
|
||||||
|
- meta_scope: entity.name.command-line-option.man
|
||||||
|
- match: '\]'
|
||||||
|
pop: true
|
||||||
|
- match: '='
|
||||||
|
scope: keyword.operator.man
|
||||||
|
push: expect-parameter
|
||||||
|
- match: (?=.*\.)
|
||||||
|
pop: true
|
||||||
|
- match: '\s'
|
||||||
|
push: expect-parameter
|
||||||
|
- match: '(,)\s*'
|
||||||
|
captures:
|
||||||
|
1: punctuation.separator.man
|
||||||
|
- match: $|(?=\])
|
||||||
|
pop: true
|
||||||
|
|
||||||
|
expect-parameter:
|
||||||
|
- match: '[A-Za-z0-9-]+'
|
||||||
|
scope: variable.parameter.man
|
||||||
|
- match: (?=\s+\|)
|
||||||
|
pop: true
|
||||||
|
- match: \|
|
||||||
|
scope: keyword.operator.logical.man
|
||||||
|
- match: '\['
|
||||||
|
scope: punctuation.section.brackets.begin.man
|
||||||
|
push:
|
||||||
|
- match: '\]'
|
||||||
|
scope: punctuation.section.brackets.end.man
|
||||||
|
pop: true
|
||||||
|
- include: expect-parameter
|
||||||
|
- match: '$|(?=[],]|{{command_line_option}})'
|
||||||
|
pop: true
|
||||||
|
|
||||||
|
c-code:
|
||||||
|
- match: '^(?=\s+(?:#include\b|#define\b|/\*|struct\s+(\w+\s*)?\{))'
|
||||||
|
embed: scope:source.c
|
||||||
|
#embed_scope: source.c.embedded.man
|
||||||
|
#escape: ^(?!#|\1|\s*(?:$|/\*|#include\b|#define\b))
|
||||||
|
escape: ^(?=\s*(?:\(.*\.\)\s*$|[A-Z](?![A-Z])))
|
||||||
|
|
||||||
|
synopsis:
|
||||||
|
- include: c-code
|
||||||
|
- match: \[
|
||||||
|
scope: punctuation.section.brackets.begin.man
|
||||||
|
push: command-line-option-or-pipe
|
||||||
|
- include: options
|
||||||
|
|
||||||
|
command-line-option-or-pipe:
|
||||||
|
- match: (\|)\s*
|
||||||
|
captures:
|
||||||
|
1: keyword.operator.logical.man
|
||||||
|
#- match: (?={{command_line_option}})
|
||||||
|
- match: \w+-\w+
|
||||||
|
- match: (?=-)
|
||||||
|
push:
|
||||||
|
- match: (?=\s*\|)
|
||||||
|
pop: true
|
||||||
|
- include: expect-command-line-option
|
||||||
|
- match: \]
|
||||||
|
scope: punctuation.section.brackets.end.man
|
||||||
|
pop: true
|
||||||
|
- match: \[
|
||||||
|
scope: punctuation.section.brackets.begin.man
|
||||||
|
push: command-line-option-or-pipe
|
||||||
|
|||||||
+1
Submodule assets/syntaxes/02_Extra/Ninja added at 25830aaec9
+52
@@ -0,0 +1,52 @@
|
|||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
# http://www.sublimetext.com/docs/3/syntax.html
|
||||||
|
name: Ninja
|
||||||
|
file_extensions:
|
||||||
|
- ninja
|
||||||
|
scope: source.ninja
|
||||||
|
contexts:
|
||||||
|
main:
|
||||||
|
- match: (#).*$\n?
|
||||||
|
comment: Comment line.
|
||||||
|
scope: comment.line.number-sign.ninja
|
||||||
|
captures:
|
||||||
|
1: punctuation.definition.comment.ninja
|
||||||
|
- match: ^(rule)\b
|
||||||
|
comment: Rule keyword and keywords for a rule.
|
||||||
|
captures:
|
||||||
|
1: keyword.other.ninja
|
||||||
|
push:
|
||||||
|
- match: ^(?=\S)
|
||||||
|
pop: true
|
||||||
|
- include: main
|
||||||
|
- match: \b(?:command|deps|depfile|description|generator|pool|restat|rspfile|rspfile_content)\b
|
||||||
|
scope: keyword.other.ninja
|
||||||
|
- match: ^(pool)\b
|
||||||
|
comment: Pool keyword and keywords for a pool.
|
||||||
|
captures:
|
||||||
|
1: keyword.other.ninja
|
||||||
|
push:
|
||||||
|
- match: ^(?=\S)
|
||||||
|
pop: true
|
||||||
|
- include: main
|
||||||
|
- match: \b(?:depth)\b
|
||||||
|
scope: keyword.other.ninja
|
||||||
|
- match: ^(?:build|rule|default|include|subninja)\b
|
||||||
|
comment: Other Keywords.
|
||||||
|
scope: keyword.other.ninja
|
||||||
|
- match: '(?:[=:]|\|{1,2})(?=\s)'
|
||||||
|
comment: Operators for variable assignment (=), rule definition (:), implicit (|) and order only (||) dependencies.
|
||||||
|
scope: keyword.operator.ninja
|
||||||
|
- match: \$$
|
||||||
|
comment: Line wrap.
|
||||||
|
scope: keyword.operator.ninja
|
||||||
|
- match: \$\$
|
||||||
|
comment: Dollar literal.
|
||||||
|
scope: keyword.operator.ninja
|
||||||
|
- match: '\$[[:alnum:]_-]+'
|
||||||
|
comment: Simple variables, e.g. $var.
|
||||||
|
scope: variable.other.ninja
|
||||||
|
- match: '\${[[:alnum:]_.-]+}'
|
||||||
|
comment: "Variables, e.g. ${some.var.name}."
|
||||||
|
scope: variable.other.ninja
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
%YAML 1.2
|
%YAML 1.2
|
||||||
---
|
---
|
||||||
# http://www.sublimetext.com/docs/3/syntax.html
|
# http://www.sublimetext.com/docs/3/syntax.html
|
||||||
name: Robot Framework syntax highlighting.
|
name: Robot Framework
|
||||||
file_extensions:
|
file_extensions:
|
||||||
- robot
|
- robot
|
||||||
scope: source.robot
|
scope: source.robot
|
||||||
|
|||||||
+1
Submodule assets/syntaxes/02_Extra/Svelte added at bf92f5b7b6
Vendored
+1
-1
Submodule assets/syntaxes/02_Extra/Terraform updated: 64208ea816...54d8350c3c
Vendored
+1
-1
Submodule assets/syntaxes/02_Extra/TypeScript updated: f21aba57c5...603ebb48b1
@@ -3084,6 +3084,13 @@ contexts:
|
|||||||
captures:
|
captures:
|
||||||
0: meta.brace.square.ts
|
0: meta.brace.square.ts
|
||||||
pop: true
|
pop: true
|
||||||
|
- match: \.\.\.
|
||||||
|
scope: keyword.operator.rest.ts
|
||||||
|
- match: '(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))([_$[:alpha:]][_$[:alnum:]]*)\s*(\?)?\s*(:)'
|
||||||
|
captures:
|
||||||
|
1: entity.name.label.ts
|
||||||
|
2: keyword.operator.optional.ts
|
||||||
|
3: punctuation.separator.label.ts
|
||||||
- include: type
|
- include: type
|
||||||
- include: punctuation-comma
|
- include: punctuation-comma
|
||||||
typeof-operator:
|
typeof-operator:
|
||||||
|
|||||||
+151
@@ -0,0 +1,151 @@
|
|||||||
|
# SYNTAX TEST "Manpage.sublime-syntax"
|
||||||
|
SOMETHING(8) System Manager's Manual SOMETHING(8)
|
||||||
|
# ^^^^^ meta.preprocessor
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^^^^ markup.heading.title
|
||||||
|
# ^^^^^^^ meta.preprocessor
|
||||||
|
|
||||||
|
NAME
|
||||||
|
#^^^ markup.heading.other
|
||||||
|
example - do something useful
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
example [options] [--home DIR] [--shell SHELL] [--no-create-home]
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^^^^^^ entity.name.command-line-option
|
||||||
|
# ^^^ variable.parameter
|
||||||
|
# ^ punctuation.section.brackets.end
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^^^^^ variable.parameter
|
||||||
|
# ^ punctuation.section.brackets.end
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^^^^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ punctuation.section.brackets.end
|
||||||
|
[-u | --set-upstream] [-o <string> | --push-option=<string>]
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^^ entity.name.command-line-option
|
||||||
|
# ^ keyword.operator.logical
|
||||||
|
# ^^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ punctuation.section.brackets.end
|
||||||
|
# ^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
[--force-with-lease[=<refname>[:<expect>]]]
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^^^^^^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^ keyword.operator
|
||||||
|
# ^^^^^^^ variable.parameter
|
||||||
|
# ^ punctuation.section.brackets.begin
|
||||||
|
# ^^^^^^ variable.parameter
|
||||||
|
# ^^^ punctuation.section.brackets.end
|
||||||
|
|
||||||
|
example --system [options]
|
||||||
|
# ^^^^^^^^ entity.name
|
||||||
|
|
||||||
|
COMMON OPTIONS
|
||||||
|
[--quiet] [--debug] [--help|-h] [--version] [--conf FILE]
|
||||||
|
|
||||||
|
/* According to POSIX.1-2001, POSIX.1-2008 */
|
||||||
|
# ^^ source.c comment.block punctuation.definition.comment
|
||||||
|
#include <sys/select.h>
|
||||||
|
# ^^^^^^^^ source.c meta.preprocessor.include keyword.control.import.include
|
||||||
|
struct timeval {
|
||||||
|
# ^^^^^^ source.c storage.type
|
||||||
|
|
||||||
|
time_t tv_sec; /* seconds */
|
||||||
|
suseconds_t tv_usec; /* microseconds */
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
example does something useful in relation to the command line options
|
||||||
|
and configuration information in /etc/example.conf.
|
||||||
|
|
||||||
|
OPTIONS
|
||||||
|
--conf FILE
|
||||||
|
# ^^^^^^ entity.name.command-line-option
|
||||||
|
#^^^^^^ - variable - entity - markup
|
||||||
|
# ^^^^ variable.parameter
|
||||||
|
Use FILE instead of /etc/example.conf.
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - variable - entity
|
||||||
|
|
||||||
|
--disabled-login
|
||||||
|
Do not run passwd to set the password. The user won't be able
|
||||||
|
to use her account until the password is set.
|
||||||
|
|
||||||
|
--disabled-password
|
||||||
|
Like --disabled-login, but logins are still possible (for exam-
|
||||||
|
# ^^^^^^^^^^^^^^^^ entity.name
|
||||||
|
#^^^^^^^^^^^^^^^^^^ - entity - variable - markup
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - entity - variable - markup
|
||||||
|
ple using SSH RSA keys) but not using password authentication.
|
||||||
|
|
||||||
|
--help Display brief instructions.
|
||||||
|
# ^^^^^^ entity.name.command-line-option
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - variable.parameter
|
||||||
|
|
||||||
|
--home DIR
|
||||||
|
# ^^^^^^ entity.name.command-line-option
|
||||||
|
# ^^^ variable.parameter
|
||||||
|
# ^ - variable - entity - markup
|
||||||
|
Use DIR as the user's home directory, rather than the default
|
||||||
|
specified by the configuration file. If the directory does not
|
||||||
|
exist, it is created and skeleton files are copied.
|
||||||
|
|
||||||
|
--[no-]signed, --signed=(true|false|if-asked)
|
||||||
|
# ^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ punctuation.separator
|
||||||
|
# ^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ keyword.operator
|
||||||
|
# ^ - variable
|
||||||
|
# ^^^^ variable.parameter
|
||||||
|
# ^ keyword.operator.logical
|
||||||
|
# ^^^^^ variable.parameter
|
||||||
|
# ^ keyword.operator.logical
|
||||||
|
# ^^^^^^^^ variable.parameter
|
||||||
|
# ^ - variable
|
||||||
|
--no-recurse-submodules, --recurse-submodules=check|on-demand|only|no
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ punctuation.separator
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^ keyword.operator
|
||||||
|
# ^^^^^ variable.parameter
|
||||||
|
# ^ keyword.operator.logical
|
||||||
|
# ^^^^^^^^^ variable.parameter
|
||||||
|
# ^ keyword.operator.logical
|
||||||
|
# ^^^^ variable.parameter
|
||||||
|
# ^ keyword.operator.logical
|
||||||
|
# ^^ variable.parameter
|
||||||
|
May be used to make sure all submodule commits used by the
|
||||||
|
|
||||||
|
-c, -C NUM, --context[=NUM]
|
||||||
|
# ^^ entity.name.command-line-option
|
||||||
|
# ^ punctuation.separator
|
||||||
|
# ^^ entity.name.command-line-option
|
||||||
|
# ^^^ variable.parameter
|
||||||
|
# ^ punctuation.separator
|
||||||
|
# ^^^^^^^^^ entity.name.command-line-option
|
||||||
|
# ^^^^^^^ - entity.name
|
||||||
|
# ^ keyword.operator
|
||||||
|
# ^^^ variable.parameter
|
||||||
|
# ^^ - variable
|
||||||
|
output NUM (default 3) lines of copied context
|
||||||
|
|
||||||
|
EXAMPLE
|
||||||
|
#include <stdio.h>
|
||||||
|
# ^^^^^^^^ source.c meta.preprocessor.include keyword.control.import.include
|
||||||
|
|
||||||
|
(This is not C code.)
|
||||||
|
# ^^^^^^^^^^^^^^^^^^^^^^ - source.c
|
||||||
|
|
||||||
|
struct timeval {
|
||||||
|
time_t tv_sec; /* seconds */
|
||||||
|
suseconds_t tv_usec; /* microseconds */
|
||||||
|
};
|
||||||
|
# ^ source.c punctuation.terminator
|
||||||
|
|
||||||
|
The corresponding argument for pselect() has the following type:
|
||||||
|
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - source.c
|
||||||
|
#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |
|
||||||
|
EPOLLHUP | EPOLLERR)
|
||||||
|
# ^ source.c meta.preprocessor.macro meta.group punctuation.section.group.end
|
||||||
Vendored
BIN
Binary file not shown.
+1
Submodule assets/themes/Coldark added at b4a1c74d8d
Vendored
+1
-1
Submodule assets/themes/onehalf updated: 3aa42a39ed...89923117bc
+8
-6
@@ -39,13 +39,13 @@
|
|||||||
|
|
||||||
### 自動ページング
|
### 自動ページング
|
||||||
|
|
||||||
出力が1つの画面に対して大きすぎる場合、`bat` は自身の出力を `less` にパイプで繋げることが可能です。
|
出力が1つの画面に対して大きすぎる場合、`bat` は自身の出力をページャー(例えば `less`) にパイプで繋げます。
|
||||||
|
|
||||||
### ファイルの連結
|
### ファイルの連結
|
||||||
|
|
||||||
あなたはさらにファイルを連結させるために使うことも可能です:wink:。
|
あなたはさらにファイルを連結させるために使うことも可能です:wink:。
|
||||||
`bat` は非対話型のターミナルを検出すると、
|
`bat` は非対話型のターミナルを検出すると(すなわち他のプロセスにパイプしたりファイル出力していると)、
|
||||||
いつでも `cat` の完全互換として振る舞い、
|
`bat` は `cat` の完全互換として振る舞い、
|
||||||
プレーンなファイルを表示します。
|
プレーンなファイルを表示します。
|
||||||
|
|
||||||
## 使い方
|
## 使い方
|
||||||
@@ -62,7 +62,9 @@
|
|||||||
> bat src/*.rs
|
> bat src/*.rs
|
||||||
```
|
```
|
||||||
|
|
||||||
標準入力から自動的に構文を決定させたい場合
|
標準入力から自動的に構文を決定させたい場合(ハイライトされるのは、
|
||||||
|
たいていは `#!/bin/sh` のようなシバンを利用して、
|
||||||
|
ファイルの一行目から構文を決定できる場合のみです)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
> curl -s https://sh.rustup.rs | bat
|
> curl -s https://sh.rustup.rs | bat
|
||||||
@@ -152,7 +154,7 @@ man 2 select
|
|||||||
```
|
```
|
||||||
|
|
||||||
フォーマットの問題が発生した場合は
|
フォーマットの問題が発生した場合は
|
||||||
`MANROFFOPT = "-c"` を設定する必要もあります。
|
`MANROFFOPT="-c"` を設定する必要もあります。
|
||||||
|
|
||||||
これを新しいコマンドにバンドルしたい場合は [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md) も使用できます。
|
これを新しいコマンドにバンドルしたい場合は [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md) も使用できます。
|
||||||
|
|
||||||
@@ -189,7 +191,7 @@ ln -s /usr/bin/batcat ~/.local/bin/bat
|
|||||||
batの最新リリースを実行する場合、または Ubuntu/Debian の古いバージョンを使用している場合は、[release page](https://github.com/sharkdp/bat/releases) から最新の `.deb` パッケージをダウンロードし、
|
batの最新リリースを実行する場合、または Ubuntu/Debian の古いバージョンを使用している場合は、[release page](https://github.com/sharkdp/bat/releases) から最新の `.deb` パッケージをダウンロードし、
|
||||||
次の方法でインストールします:
|
次の方法でインストールします:
|
||||||
```bash
|
```bash
|
||||||
sudo dpkg -i bat_0.16.0_amd64.deb # adapt version number and architecture
|
sudo dpkg -i bat_0.17.1_amd64.deb # adapt version number and architecture
|
||||||
```
|
```
|
||||||
|
|
||||||
### On Alpine Linux
|
### On Alpine Linux
|
||||||
|
|||||||
+1
-1
@@ -170,7 +170,7 @@ apt install bat
|
|||||||
만약 최근 릴리즈된 bat을 사용을 원하거나 buntu/Debian 예전 버전을 사용하는 경우, [릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서 다음과 같이 `.deb` 패키지를 받아 설치 할 수도 있습니다:
|
만약 최근 릴리즈된 bat을 사용을 원하거나 buntu/Debian 예전 버전을 사용하는 경우, [릴리즈 페이지](https://github.com/sharkdp/bat/releases)에서 다음과 같이 `.deb` 패키지를 받아 설치 할 수도 있습니다:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo dpkg -i bat_0.16.0_amd64.deb # adapt version number and architecture
|
sudo dpkg -i bat_0.17.1_amd64.deb # adapt version number and architecture
|
||||||
```
|
```
|
||||||
|
|
||||||
### On Alpine Linux
|
### On Alpine Linux
|
||||||
|
|||||||
+1
-1
@@ -185,7 +185,7 @@ ln -s /usr/bin/batcat ~/.local/bin/bat
|
|||||||
[release page](https://github.com/sharkdp/bat/releases) и установить так:
|
[release page](https://github.com/sharkdp/bat/releases) и установить так:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo dpkg -i bat_0.16.0_amd64.deb # измените архитектуру и версию
|
sudo dpkg -i bat_0.17.1_amd64.deb # измените архитектуру и версию
|
||||||
```
|
```
|
||||||
|
|
||||||
### Alpine Linux
|
### Alpine Linux
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
## Syntax Highlighting in bat
|
## Adding new builtin languages for syntax highlighting
|
||||||
|
|
||||||
`bat` uses the [syntect](https://github.com/trishume/syntect) library to highlight source
|
Should you find that a particular syntax is not available within `bat` and think it should be included in `bat` by default, you can follow the instructions outlined below.
|
||||||
|
|
||||||
|
`bat` uses the excellent [syntect](https://github.com/trishume/syntect) library to highlight source
|
||||||
code. As a basis, syntect uses [Sublime Text](https://www.sublimetext.com/) syntax definitions
|
code. As a basis, syntect uses [Sublime Text](https://www.sublimetext.com/) syntax definitions
|
||||||
in the `.sublime-syntax` format.
|
in the `.sublime-syntax` format.
|
||||||
|
|
||||||
In order to add new syntaxes to `bat`, follow these steps:
|
**Important:** Before proceeding, verify that the syntax you wish to add meets the [criteria for inclusion](#Criteria-for-inclusion-of-new-syntaxes).
|
||||||
|
|
||||||
1. Find a Sublime Text syntax for the given language, preferably in a separate Git repository
|
1. Find a Sublime Text syntax for the given language, preferably in a separate Git repository
|
||||||
which can be included as a submodule (under `assets/syntaxes`).
|
which can be included as a submodule (under `assets/syntaxes`).
|
||||||
@@ -13,13 +15,15 @@ In order to add new syntaxes to `bat`, follow these steps:
|
|||||||
Sublime Text and convert it to a `.sublime-syntax` file via *Tools* -> *Developer* ->
|
Sublime Text and convert it to a `.sublime-syntax` file via *Tools* -> *Developer* ->
|
||||||
*New Syntax from XXX.tmLanguage...*. Save the new file in the `assets/syntaxes` folder.
|
*New Syntax from XXX.tmLanguage...*. Save the new file in the `assets/syntaxes` folder.
|
||||||
|
|
||||||
3. Run the `create.sh` script. It calls `bat cache --build` to parse all available
|
3. Run the `assets/create.sh` script. It calls `bat cache --build` to parse all available
|
||||||
`.sublime-syntax` files and serialize them to a `syntaxes.bin` file (in this folder).
|
`.sublime-syntax` files and serialize them to a `syntaxes.bin` file (in this folder).
|
||||||
|
|
||||||
4. Re-compile `bat`. At compilation time, the `syntaxes.bin` file will be stored inside the
|
4. Re-compile `bat`. At compilation time, the `syntaxes.bin` file will be stored inside the
|
||||||
`bat` binary.
|
`bat` binary.
|
||||||
|
|
||||||
5. If you send a pull request with your changes, please do *not* include the changed `syntaxes.bin`
|
5. Use `bat --list-languages` to check if the new languages are available.
|
||||||
|
|
||||||
|
6. If you send a pull request with your changes, please do *not* include the changed `syntaxes.bin`
|
||||||
file. A new binary cache file will be created once before every new release of `bat`.
|
file. A new binary cache file will be created once before every new release of `bat`.
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
@@ -27,15 +31,20 @@ In order to add new syntaxes to `bat`, follow these steps:
|
|||||||
Make sure that the local cache does not interfere with the internally stored syntaxes and
|
Make sure that the local cache does not interfere with the internally stored syntaxes and
|
||||||
themes (`bat cache --clear`).
|
themes (`bat cache --clear`).
|
||||||
|
|
||||||
|
## Criteria for inclusion of new syntaxes
|
||||||
|
|
||||||
|
* More than 10,000 downloads on packagecontrol.io/
|
||||||
|
|
||||||
### Manual modifications
|
### Manual modifications
|
||||||
|
|
||||||
The following files have been manually modified after converting from a `.tmLanguage` file:
|
The following files have been manually modified after converting from a `.tmLanguage` file:
|
||||||
|
|
||||||
* `Apache.sublime_syntax`=> removed `.conf` and `.CONF` file types.
|
* `Apache.sublime_syntax`=> removed `.conf` and `.CONF` file types.
|
||||||
* `Dart.sublime-syntax` => removed `#regex.dart` include.
|
* `Dart.sublime-syntax` => removed `#regex.dart` include.
|
||||||
* `INI.sublime-syntax` => added `.hgrc`, `hgrc`, and `desktop` file types.
|
* `INI.sublime-syntax` => added `.hgrc`, `hgrc`, and `desktop` file types and support for comments after section headers
|
||||||
* `Org mode.sublime-syntax` => removed `task` file type.
|
* `Org mode.sublime-syntax` => removed `task` file type.
|
||||||
* `SML.sublime_syntax` => removed `ml` file type.
|
* `SML.sublime_syntax` => removed `ml` file type.
|
||||||
|
* `Robot.sublime_syntax` => changed name to "Robot Framework"
|
||||||
|
|
||||||
### Non-submodule additions
|
### Non-submodule additions
|
||||||
|
|
||||||
+1
-1
@@ -45,7 +45,7 @@
|
|||||||
showguides="true"
|
showguides="true"
|
||||||
inkscape:guide-bbox="true" />
|
inkscape:guide-bbox="true" />
|
||||||
<rect
|
<rect
|
||||||
style="opacity:1;fill:#f2f2f2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.14294769px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
|
style="opacity:0.5;fill:#e5e5e5;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.14294769px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
|
||||||
id="rect1929"
|
id="rect1929"
|
||||||
width="1000"
|
width="1000"
|
||||||
height="286.64285"
|
height="286.64285"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
+18
-12
@@ -169,9 +169,8 @@ impl App {
|
|||||||
|| match self.matches.value_of("color") {
|
|| match self.matches.value_of("color") {
|
||||||
Some("always") => true,
|
Some("always") => true,
|
||||||
Some("never") => false,
|
Some("never") => false,
|
||||||
Some("auto") | _ => {
|
Some("auto") => env::var_os("NO_COLOR").is_none() && self.interactive_output,
|
||||||
env::var_os("NO_COLOR").is_none() && self.interactive_output
|
_ => unreachable!("other values for --color are not allowed"),
|
||||||
}
|
|
||||||
},
|
},
|
||||||
paging_mode,
|
paging_mode,
|
||||||
term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
|
term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
|
||||||
@@ -226,17 +225,14 @@ impl App {
|
|||||||
style_components,
|
style_components,
|
||||||
syntax_mapping,
|
syntax_mapping,
|
||||||
pager: self.matches.value_of("pager"),
|
pager: self.matches.value_of("pager"),
|
||||||
use_italic_text: match self.matches.value_of("italic-text") {
|
use_italic_text: self.matches.value_of("italic-text") == Some("always"),
|
||||||
Some("always") => true,
|
|
||||||
_ => false,
|
|
||||||
},
|
|
||||||
highlighted_lines: self
|
highlighted_lines: self
|
||||||
.matches
|
.matches
|
||||||
.values_of("highlight-line")
|
.values_of("highlight-line")
|
||||||
.map(|ws| ws.map(LineRange::from).collect())
|
.map(|ws| ws.map(LineRange::from).collect())
|
||||||
.transpose()?
|
.transpose()?
|
||||||
.map(LineRanges::from)
|
.map(LineRanges::from)
|
||||||
.map(|lr| HighlightedLineRanges(lr))
|
.map(HighlightedLineRanges)
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -288,8 +284,8 @@ impl App {
|
|||||||
|
|
||||||
fn style_components(&self) -> Result<StyleComponents> {
|
fn style_components(&self) -> Result<StyleComponents> {
|
||||||
let matches = &self.matches;
|
let matches = &self.matches;
|
||||||
Ok(StyleComponents(
|
let mut styled_components =
|
||||||
if matches.value_of("decorations") == Some("never") {
|
StyleComponents(if matches.value_of("decorations") == Some("never") {
|
||||||
HashSet::new()
|
HashSet::new()
|
||||||
} else if matches.is_present("number") {
|
} else if matches.is_present("number") {
|
||||||
[StyleComponent::LineNumbers].iter().cloned().collect()
|
[StyleComponent::LineNumbers].iter().cloned().collect()
|
||||||
@@ -323,7 +319,17 @@ impl App {
|
|||||||
acc.extend(components.iter().cloned());
|
acc.extend(components.iter().cloned());
|
||||||
acc
|
acc
|
||||||
})
|
})
|
||||||
},
|
});
|
||||||
))
|
|
||||||
|
// If `grid` is set, remove `rule` as it is a subset of `grid`, and print a warning.
|
||||||
|
if styled_components.grid() && styled_components.0.remove(&StyleComponent::Rule) {
|
||||||
|
use ansi_term::Colour::Yellow;
|
||||||
|
eprintln!(
|
||||||
|
"{}: Style 'rule' is a subset of style 'grid', 'rule' will not be visible.",
|
||||||
|
Yellow.paint("[bat warning]"),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(styled_components)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
"A cat(1) clone with wings.\n\n\
|
"A cat(1) clone with wings.\n\n\
|
||||||
Use '--help' instead of '-h' to see a more detailed version of the help text.",
|
Use '--help' instead of '-h' to see a more detailed version of the help text.",
|
||||||
)
|
)
|
||||||
|
.after_help(
|
||||||
|
"Note: `bat -h` prints a short and concise overview while `bat --help` gives all \
|
||||||
|
details.",
|
||||||
|
)
|
||||||
.long_about("A cat(1) clone with syntax highlighting and Git integration.")
|
.long_about("A cat(1) clone with syntax highlighting and Git integration.")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("FILE")
|
Arg::with_name("FILE")
|
||||||
@@ -363,7 +367,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
.validator(|val| {
|
.validator(|val| {
|
||||||
let mut invalid_vals = val.split(',').filter(|style| {
|
let mut invalid_vals = val.split(',').filter(|style| {
|
||||||
!&[
|
!&[
|
||||||
"auto", "full", "plain", "header", "grid", "numbers", "snip",
|
"auto", "full", "plain", "header", "grid", "rule", "numbers", "snip",
|
||||||
#[cfg(feature = "git")]
|
#[cfg(feature = "git")]
|
||||||
"changes",
|
"changes",
|
||||||
]
|
]
|
||||||
@@ -378,7 +382,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
})
|
})
|
||||||
.help(
|
.help(
|
||||||
"Comma-separated list of style elements to display \
|
"Comma-separated list of style elements to display \
|
||||||
(*auto*, full, plain, changes, header, grid, numbers, snip).",
|
(*auto*, full, plain, changes, header, grid, rule, numbers, snip).",
|
||||||
)
|
)
|
||||||
.long_help(
|
.long_help(
|
||||||
"Configure which elements (line numbers, file headers, grid \
|
"Configure which elements (line numbers, file headers, grid \
|
||||||
@@ -396,6 +400,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
* header: show filenames before the content.\n \
|
* header: show filenames before the content.\n \
|
||||||
* grid: vertical/horizontal lines to separate side bar\n \
|
* grid: vertical/horizontal lines to separate side bar\n \
|
||||||
and the header from the content.\n \
|
and the header from the content.\n \
|
||||||
|
* rule: horizontal lines to delimit files.\n \
|
||||||
* numbers: show line numbers in the side bar.\n \
|
* numbers: show line numbers in the side bar.\n \
|
||||||
* snip: draw separation lines between distinct line ranges.",
|
* snip: draw separation lines between distinct line ranges.",
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ pub fn generate_config_file() -> bat::error::Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let default_config =
|
let default_config = r#"# This is `bat`s configuration file. Each line either contains a comment or
|
||||||
r#"# This is `bat`s configuration file. Each line either contains a comment or
|
|
||||||
# a command-line option that you want to pass to `bat` by default. You can
|
# a command-line option that you want to pass to `bat` by default. You can
|
||||||
# run `bat --help` to get a list of all possible configuration options.
|
# run `bat --help` to get a list of all possible configuration options.
|
||||||
|
|
||||||
@@ -86,7 +85,7 @@ pub fn get_args_from_config_file() -> Result<Vec<OsString>, shell_words::ParseEr
|
|||||||
.ok()
|
.ok()
|
||||||
.map(|content| get_args_from_str(&content))
|
.map(|content| get_args_from_str(&content))
|
||||||
.transpose()?
|
.transpose()?
|
||||||
.unwrap_or_else(|| vec![]))
|
.unwrap_or_else(Vec::new))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_args_from_env_var() -> Option<Result<Vec<OsString>, shell_words::ParseError>> {
|
pub fn get_args_from_env_var() -> Option<Result<Vec<OsString>, shell_words::ParseError>> {
|
||||||
|
|||||||
@@ -205,6 +205,14 @@ pub fn list_themes(cfg: &Config) -> Result<()> {
|
|||||||
writeln!(stdout, "{}", theme)?;
|
writeln!(stdout, "{}", theme)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
writeln!(
|
||||||
|
stdout,
|
||||||
|
"Further themes can be installed to '{}', \
|
||||||
|
and are added to the cache with `bat cache --build`. \
|
||||||
|
For more information, see:\n\n \
|
||||||
|
https://github.com/sharkdp/bat#adding-new-themes",
|
||||||
|
config_file().join("themes").to_string_lossy()
|
||||||
|
)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-2
@@ -54,7 +54,10 @@ impl<'b> Controller<'b> {
|
|||||||
paging_mode = PagingMode::Never;
|
paging_mode = PagingMode::Never;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output_type = OutputType::from_mode(paging_mode, self.config.pager)?;
|
|
||||||
|
let wrapping_mode = self.config.wrapping_mode;
|
||||||
|
|
||||||
|
output_type = OutputType::from_mode(paging_mode, wrapping_mode, self.config.pager)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "paging"))]
|
#[cfg(not(feature = "paging"))]
|
||||||
@@ -144,7 +147,7 @@ impl<'b> Controller<'b> {
|
|||||||
Ok(no_errors)
|
Ok(no_errors)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_file<'a>(
|
fn print_file(
|
||||||
&self,
|
&self,
|
||||||
printer: &mut dyn Printer,
|
printer: &mut dyn Printer,
|
||||||
writer: &mut dyn Write,
|
writer: &mut dyn Write,
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ error_chain! {
|
|||||||
description("unknown syntax"),
|
description("unknown syntax"),
|
||||||
display("unknown syntax: '{}'", name)
|
display("unknown syntax: '{}'", name)
|
||||||
}
|
}
|
||||||
|
InvalidPagerValueBat {
|
||||||
|
description("invalid value `bat` for pager property"),
|
||||||
|
display("Use of bat as a pager is disallowed in order to avoid infinite recursion problems")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -143,9 +143,8 @@ impl<'a> Input<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_name(mut self, provided_name: Option<&OsStr>) -> Self {
|
pub fn with_name(mut self, provided_name: Option<&OsStr>) -> Self {
|
||||||
match provided_name {
|
if let Some(name) = provided_name {
|
||||||
Some(name) => self.description.name = name.to_string_lossy().to_string(),
|
self.description.name = name.to_string_lossy().to_string()
|
||||||
None => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.metadata.user_provided_name = provided_name.map(|n| n.to_owned());
|
self.metadata.user_provided_name = provided_name.map(|n| n.to_owned());
|
||||||
|
|||||||
+31
-8
@@ -7,6 +7,15 @@ use crate::error::*;
|
|||||||
use crate::less::retrieve_less_version;
|
use crate::less::retrieve_less_version;
|
||||||
#[cfg(feature = "paging")]
|
#[cfg(feature = "paging")]
|
||||||
use crate::paging::PagingMode;
|
use crate::paging::PagingMode;
|
||||||
|
#[cfg(feature = "paging")]
|
||||||
|
use crate::wrapping::WrappingMode;
|
||||||
|
|
||||||
|
#[cfg(feature = "paging")]
|
||||||
|
#[derive(Debug, PartialEq)]
|
||||||
|
enum SingleScreenAction {
|
||||||
|
Quit,
|
||||||
|
Nothing,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum OutputType {
|
pub enum OutputType {
|
||||||
@@ -17,18 +26,28 @@ pub enum OutputType {
|
|||||||
|
|
||||||
impl OutputType {
|
impl OutputType {
|
||||||
#[cfg(feature = "paging")]
|
#[cfg(feature = "paging")]
|
||||||
pub fn from_mode(mode: PagingMode, pager: Option<&str>) -> Result<Self> {
|
pub fn from_mode(
|
||||||
|
paging_mode: PagingMode,
|
||||||
|
wrapping_mode: WrappingMode,
|
||||||
|
pager: Option<&str>,
|
||||||
|
) -> Result<Self> {
|
||||||
use self::PagingMode::*;
|
use self::PagingMode::*;
|
||||||
Ok(match mode {
|
Ok(match paging_mode {
|
||||||
Always => OutputType::try_pager(false, pager)?,
|
Always => OutputType::try_pager(SingleScreenAction::Nothing, wrapping_mode, pager)?,
|
||||||
QuitIfOneScreen => OutputType::try_pager(true, pager)?,
|
QuitIfOneScreen => {
|
||||||
|
OutputType::try_pager(SingleScreenAction::Quit, wrapping_mode, pager)?
|
||||||
|
}
|
||||||
_ => OutputType::stdout(),
|
_ => OutputType::stdout(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Try to launch the pager. Fall back to stdout in case of errors.
|
/// Try to launch the pager. Fall back to stdout in case of errors.
|
||||||
#[cfg(feature = "paging")]
|
#[cfg(feature = "paging")]
|
||||||
fn try_pager(quit_if_one_screen: bool, pager_from_config: Option<&str>) -> Result<Self> {
|
fn try_pager(
|
||||||
|
single_screen_action: SingleScreenAction,
|
||||||
|
wrapping_mode: WrappingMode,
|
||||||
|
pager_from_config: Option<&str>,
|
||||||
|
) -> Result<Self> {
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::ffi::OsString;
|
use std::ffi::OsString;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
@@ -66,10 +85,10 @@ impl OutputType {
|
|||||||
|
|
||||||
match pagerflags.split_first() {
|
match pagerflags.split_first() {
|
||||||
Some((pager_name, args)) => {
|
Some((pager_name, args)) => {
|
||||||
let mut pager_path = PathBuf::from(pager_name);
|
let pager_path = PathBuf::from(pager_name);
|
||||||
|
|
||||||
if pager_path.file_stem() == Some(&OsString::from("bat")) {
|
if pager_path.file_stem() == Some(&OsString::from("bat")) {
|
||||||
pager_path = PathBuf::from("less");
|
return Err(ErrorKind::InvalidPagerValueBat.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
let is_less = pager_path.file_stem() == Some(&OsString::from("less"));
|
let is_less = pager_path.file_stem() == Some(&OsString::from("less"));
|
||||||
@@ -78,10 +97,14 @@ impl OutputType {
|
|||||||
let mut p = Command::new(&pager_path);
|
let mut p = Command::new(&pager_path);
|
||||||
if args.is_empty() || replace_arguments_to_less {
|
if args.is_empty() || replace_arguments_to_less {
|
||||||
p.arg("--RAW-CONTROL-CHARS");
|
p.arg("--RAW-CONTROL-CHARS");
|
||||||
if quit_if_one_screen {
|
if single_screen_action == SingleScreenAction::Quit {
|
||||||
p.arg("--quit-if-one-screen");
|
p.arg("--quit-if-one-screen");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if wrapping_mode == WrappingMode::NoWrapping {
|
||||||
|
p.arg("--chop-long-lines");
|
||||||
|
}
|
||||||
|
|
||||||
// Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
|
// Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
|
||||||
// versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
|
// versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
|
||||||
//
|
//
|
||||||
|
|||||||
+11
-1
@@ -23,6 +23,7 @@ struct ActiveStyleComponents {
|
|||||||
header: bool,
|
header: bool,
|
||||||
vcs_modification_markers: bool,
|
vcs_modification_markers: bool,
|
||||||
grid: bool,
|
grid: bool,
|
||||||
|
rule: bool,
|
||||||
line_numbers: bool,
|
line_numbers: bool,
|
||||||
snip: bool,
|
snip: bool,
|
||||||
}
|
}
|
||||||
@@ -179,6 +180,12 @@ impl<'a> PrettyPrinter<'a> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Whether to paint a horizontal rule to delimit files
|
||||||
|
pub fn rule(&mut self, yes: bool) -> &mut Self {
|
||||||
|
self.active_style_components.rule = yes;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
/// Whether to show modification markers for VCS changes. This has no effect if
|
/// Whether to show modification markers for VCS changes. This has no effect if
|
||||||
/// the `git` feature is not activated.
|
/// the `git` feature is not activated.
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
@@ -285,6 +292,9 @@ impl<'a> PrettyPrinter<'a> {
|
|||||||
if self.active_style_components.grid {
|
if self.active_style_components.grid {
|
||||||
style_components.push(StyleComponent::Grid);
|
style_components.push(StyleComponent::Grid);
|
||||||
}
|
}
|
||||||
|
if self.active_style_components.rule {
|
||||||
|
style_components.push(StyleComponent::Rule);
|
||||||
|
}
|
||||||
if self.active_style_components.header {
|
if self.active_style_components.header {
|
||||||
style_components.push(StyleComponent::Header);
|
style_components.push(StyleComponent::Header);
|
||||||
}
|
}
|
||||||
@@ -328,7 +338,7 @@ impl<'a> Input<'a> {
|
|||||||
|
|
||||||
/// A new input from bytes.
|
/// A new input from bytes.
|
||||||
pub fn from_bytes(bytes: &'a [u8]) -> Self {
|
pub fn from_bytes(bytes: &'a [u8]) -> Self {
|
||||||
Input::from_reader(bytes).into()
|
Input::from_reader(bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A new input from STDIN.
|
/// A new input from STDIN.
|
||||||
|
|||||||
+19
-7
@@ -200,13 +200,18 @@ impl<'a> InteractivePrinter<'a> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn print_horizontal_line_term(&mut self, handle: &mut dyn Write, style: Style) -> Result<()> {
|
||||||
|
writeln!(
|
||||||
|
handle,
|
||||||
|
"{}",
|
||||||
|
style.paint("─".repeat(self.config.term_width))
|
||||||
|
)?;
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> {
|
fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> {
|
||||||
if self.panel_width == 0 {
|
if self.panel_width == 0 {
|
||||||
writeln!(
|
self.print_horizontal_line_term(handle, self.colors.grid)?;
|
||||||
handle,
|
|
||||||
"{}",
|
|
||||||
self.colors.grid.paint("─".repeat(self.config.term_width))
|
|
||||||
)?;
|
|
||||||
} else {
|
} else {
|
||||||
let hline = "─".repeat(self.config.term_width - (self.panel_width + 1));
|
let hline = "─".repeat(self.config.term_width - (self.panel_width + 1));
|
||||||
let hline = format!("{}{}{}", "─".repeat(self.panel_width), grid_char, hline);
|
let hline = format!("{}{}{}", "─".repeat(self.panel_width), grid_char, hline);
|
||||||
@@ -251,6 +256,10 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
|||||||
input: &OpenedInput,
|
input: &OpenedInput,
|
||||||
add_header_padding: bool,
|
add_header_padding: bool,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
if add_header_padding && self.config.style_components.rule() {
|
||||||
|
self.print_horizontal_line_term(handle, self.colors.rule)?;
|
||||||
|
}
|
||||||
|
|
||||||
if !self.config.style_components.header() {
|
if !self.config.style_components.header() {
|
||||||
if Some(ContentType::BINARY) == self.content_type && !self.config.show_nonprintable {
|
if Some(ContentType::BINARY) == self.content_type && !self.config.show_nonprintable {
|
||||||
writeln!(
|
writeln!(
|
||||||
@@ -279,7 +288,8 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
|||||||
.paint(if self.panel_width > 0 { "│ " } else { "" }),
|
.paint(if self.panel_width > 0 { "│ " } else { "" }),
|
||||||
)?;
|
)?;
|
||||||
} else {
|
} else {
|
||||||
if add_header_padding {
|
// Only pad space between files, if we haven't already drawn a horizontal rule
|
||||||
|
if add_header_padding && !self.config.style_components.rule() {
|
||||||
writeln!(handle)?;
|
writeln!(handle)?;
|
||||||
}
|
}
|
||||||
write!(handle, "{}", " ".repeat(self.panel_width))?;
|
write!(handle, "{}", " ".repeat(self.panel_width))?;
|
||||||
@@ -301,7 +311,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
|||||||
description
|
description
|
||||||
.kind()
|
.kind()
|
||||||
.map(|kind| format!("{}: ", kind))
|
.map(|kind| format!("{}: ", kind))
|
||||||
.unwrap_or("".into()),
|
.unwrap_or_else(|| "".into()),
|
||||||
self.colors.filename.paint(description.title()),
|
self.colors.filename.paint(description.title()),
|
||||||
mode
|
mode
|
||||||
)?;
|
)?;
|
||||||
@@ -603,6 +613,7 @@ const DEFAULT_GUTTER_COLOR: u8 = 238;
|
|||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct Colors {
|
pub struct Colors {
|
||||||
pub grid: Style,
|
pub grid: Style,
|
||||||
|
pub rule: Style,
|
||||||
pub filename: Style,
|
pub filename: Style,
|
||||||
pub git_added: Style,
|
pub git_added: Style,
|
||||||
pub git_removed: Style,
|
pub git_removed: Style,
|
||||||
@@ -624,6 +635,7 @@ impl Colors {
|
|||||||
|
|
||||||
Colors {
|
Colors {
|
||||||
grid: gutter_color.normal(),
|
grid: gutter_color.normal(),
|
||||||
|
rule: gutter_color.normal(),
|
||||||
filename: Style::new().bold(),
|
filename: Style::new().bold(),
|
||||||
git_added: Green.normal(),
|
git_added: Green.normal(),
|
||||||
git_removed: Red.normal(),
|
git_removed: Red.normal(),
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ pub enum StyleComponent {
|
|||||||
#[cfg(feature = "git")]
|
#[cfg(feature = "git")]
|
||||||
Changes,
|
Changes,
|
||||||
Grid,
|
Grid,
|
||||||
|
Rule,
|
||||||
Header,
|
Header,
|
||||||
LineNumbers,
|
LineNumbers,
|
||||||
Snip,
|
Snip,
|
||||||
@@ -29,6 +30,7 @@ impl StyleComponent {
|
|||||||
#[cfg(feature = "git")]
|
#[cfg(feature = "git")]
|
||||||
StyleComponent::Changes => &[StyleComponent::Changes],
|
StyleComponent::Changes => &[StyleComponent::Changes],
|
||||||
StyleComponent::Grid => &[StyleComponent::Grid],
|
StyleComponent::Grid => &[StyleComponent::Grid],
|
||||||
|
StyleComponent::Rule => &[StyleComponent::Rule],
|
||||||
StyleComponent::Header => &[StyleComponent::Header],
|
StyleComponent::Header => &[StyleComponent::Header],
|
||||||
StyleComponent::LineNumbers => &[StyleComponent::LineNumbers],
|
StyleComponent::LineNumbers => &[StyleComponent::LineNumbers],
|
||||||
StyleComponent::Snip => &[StyleComponent::Snip],
|
StyleComponent::Snip => &[StyleComponent::Snip],
|
||||||
@@ -54,6 +56,7 @@ impl FromStr for StyleComponent {
|
|||||||
#[cfg(feature = "git")]
|
#[cfg(feature = "git")]
|
||||||
"changes" => Ok(StyleComponent::Changes),
|
"changes" => Ok(StyleComponent::Changes),
|
||||||
"grid" => Ok(StyleComponent::Grid),
|
"grid" => Ok(StyleComponent::Grid),
|
||||||
|
"rule" => Ok(StyleComponent::Rule),
|
||||||
"header" => Ok(StyleComponent::Header),
|
"header" => Ok(StyleComponent::Header),
|
||||||
"numbers" => Ok(StyleComponent::LineNumbers),
|
"numbers" => Ok(StyleComponent::LineNumbers),
|
||||||
"snip" => Ok(StyleComponent::Snip),
|
"snip" => Ok(StyleComponent::Snip),
|
||||||
@@ -81,6 +84,10 @@ impl StyleComponents {
|
|||||||
self.0.contains(&StyleComponent::Grid)
|
self.0.contains(&StyleComponent::Grid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn rule(&self) -> bool {
|
||||||
|
self.0.contains(&StyleComponent::Rule)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn header(&self) -> bool {
|
pub fn header(&self) -> bool {
|
||||||
self.0.contains(&StyleComponent::Header)
|
self.0.contains(&StyleComponent::Header)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
# force LF EOLs for test fixtures
|
# force LF EOLs for test fixtures
|
||||||
examples/** text=auto eol=lf
|
examples/** text=auto eol=lf
|
||||||
snapshots/** text=auto eol=lf
|
snapshots/** text=auto eol=lf
|
||||||
|
syntax-tests/source/** text=auto eol=lf
|
||||||
# BAT/CMD files always need CRLF EOLs
|
syntax-tests/highlighted/** text=auto eol=lf
|
||||||
*.[Bb][Aa][Tt] text eol=crlf
|
|
||||||
*.[Cc][Mm][Dd] text eol=crlf
|
|
||||||
|
|
||||||
examples/* linguist-vendored
|
examples/* linguist-vendored
|
||||||
snapshots/* linguist-vendored
|
snapshots/* linguist-vendored
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
use bat::assets::HighlightingAssets;
|
use bat::assets::HighlightingAssets;
|
||||||
|
|
||||||
/// This test ensures that we are not accidentally removing themes due to submodule updates.
|
/// This test ensures that we are not accidentally removing themes due to submodule updates.
|
||||||
|
/// It is 'ignore'd by default because it requires themes.bin to be up-to-date.
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore]
|
||||||
fn all_themes_are_present() {
|
fn all_themes_are_present() {
|
||||||
let assets = HighlightingAssets::from_binary();
|
let assets = HighlightingAssets::from_binary();
|
||||||
|
|
||||||
@@ -12,6 +14,8 @@ fn all_themes_are_present() {
|
|||||||
themes,
|
themes,
|
||||||
vec![
|
vec![
|
||||||
"1337",
|
"1337",
|
||||||
|
"Coldark-Cold",
|
||||||
|
"Coldark-Dark",
|
||||||
"DarkNeon",
|
"DarkNeon",
|
||||||
"Dracula",
|
"Dracula",
|
||||||
"GitHub",
|
"GitHub",
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
if ! which hyperfine > /dev/null 2>&1; then
|
if ! which hyperfine > /dev/null 2>&1; then
|
||||||
echo "'hyperfine' does not seem to be installed."
|
echo "'hyperfine' does not seem to be installed."
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
if ! which hyperfine > /dev/null 2>&1; then
|
if ! which hyperfine > /dev/null 2>&1; then
|
||||||
echo "'hyperfine' does not seem to be installed."
|
echo "'hyperfine' does not seem to be installed."
|
||||||
|
|||||||
@@ -405,6 +405,16 @@ fn pager_disable() {
|
|||||||
.stdout(predicate::eq("hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn pager_value_bat() {
|
||||||
|
bat()
|
||||||
|
.arg("--pager=bat")
|
||||||
|
.arg("--paging=always")
|
||||||
|
.arg("test.txt")
|
||||||
|
.assert()
|
||||||
|
.failure();
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn alias_pager_disable() {
|
fn alias_pager_disable() {
|
||||||
bat()
|
bat()
|
||||||
@@ -570,6 +580,18 @@ fn empty_file_leads_to_empty_output_with_grid_enabled() {
|
|||||||
.stdout("");
|
.stdout("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn empty_file_leads_to_empty_output_with_rule_enabled() {
|
||||||
|
bat()
|
||||||
|
.arg("empty.txt")
|
||||||
|
.arg("--style=rule")
|
||||||
|
.arg("--decorations=always")
|
||||||
|
.arg("--terminal-width=80")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout("");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn filename_basic() {
|
fn filename_basic() {
|
||||||
bat()
|
bat()
|
||||||
@@ -668,6 +690,48 @@ fn header_padding() {
|
|||||||
.stderr("");
|
.stderr("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn header_padding_rule() {
|
||||||
|
bat()
|
||||||
|
.arg("--decorations=always")
|
||||||
|
.arg("--style=header,rule")
|
||||||
|
.arg("--terminal-width=80")
|
||||||
|
.arg("test.txt")
|
||||||
|
.arg("single-line.txt")
|
||||||
|
.assert()
|
||||||
|
.stdout(
|
||||||
|
"File: test.txt
|
||||||
|
hello world
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
File: single-line.txt
|
||||||
|
Single Line
|
||||||
|
",
|
||||||
|
)
|
||||||
|
.stderr("");
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn grid_overrides_rule() {
|
||||||
|
bat()
|
||||||
|
.arg("--decorations=always")
|
||||||
|
.arg("--style=grid,rule")
|
||||||
|
.arg("--terminal-width=80")
|
||||||
|
.arg("test.txt")
|
||||||
|
.arg("single-line.txt")
|
||||||
|
.assert()
|
||||||
|
.stdout(
|
||||||
|
"\
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
hello world
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
Single Line
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
",
|
||||||
|
)
|
||||||
|
.stderr("\x1b[33m[bat warning]\x1b[0m: Style 'rule' is a subset of style 'grid', 'rule' will not be visible.\n");
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
#[test]
|
#[test]
|
||||||
fn file_with_invalid_utf8_filename() {
|
fn file_with_invalid_utf8_filename() {
|
||||||
|
|||||||
@@ -19,17 +19,27 @@ snapshot_tests! {
|
|||||||
grid: "grid",
|
grid: "grid",
|
||||||
header: "header",
|
header: "header",
|
||||||
numbers: "numbers",
|
numbers: "numbers",
|
||||||
|
rule: "rule",
|
||||||
changes_grid: "changes,grid",
|
changes_grid: "changes,grid",
|
||||||
changes_header: "changes,header",
|
changes_header: "changes,header",
|
||||||
changes_numbers: "changes,numbers",
|
changes_numbers: "changes,numbers",
|
||||||
|
changes_rule: "changes,rule",
|
||||||
grid_header: "grid,header",
|
grid_header: "grid,header",
|
||||||
grid_numbers: "grid,numbers",
|
grid_numbers: "grid,numbers",
|
||||||
|
grid_rule: "grid,rule",
|
||||||
header_numbers: "header,numbers",
|
header_numbers: "header,numbers",
|
||||||
|
header_rule: "header,rule",
|
||||||
changes_grid_header: "changes,grid,header",
|
changes_grid_header: "changes,grid,header",
|
||||||
changes_grid_numbers: "changes,grid,numbers",
|
changes_grid_numbers: "changes,grid,numbers",
|
||||||
|
changes_grid_rule: "changes,grid,rule",
|
||||||
changes_header_numbers: "changes,header,numbers",
|
changes_header_numbers: "changes,header,numbers",
|
||||||
|
changes_header_rule: "changes,header,rule",
|
||||||
grid_header_numbers: "grid,header,numbers",
|
grid_header_numbers: "grid,header,numbers",
|
||||||
|
grid_header_rule: "grid,header,rule",
|
||||||
|
header_numbers_rule: "header,numbers,rule",
|
||||||
changes_grid_header_numbers: "changes,grid,header,numbers",
|
changes_grid_header_numbers: "changes,grid,header,numbers",
|
||||||
|
changes_grid_header_rule: "changes,grid,header,rule",
|
||||||
|
changes_grid_header_numbers_rule: "changes,grid,header,numbers,rule",
|
||||||
full: "full",
|
full: "full",
|
||||||
plain: "plain",
|
plain: "plain",
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import shutil
|
|||||||
|
|
||||||
|
|
||||||
def generate_snapshots():
|
def generate_snapshots():
|
||||||
single_styles = ["changes", "grid", "header", "numbers"]
|
single_styles = ["changes", "grid", "header", "numbers", "rule"]
|
||||||
collective_styles = ["full", "plain"]
|
collective_styles = ["full", "plain"]
|
||||||
|
|
||||||
for num in range(len(single_styles)):
|
for num in range(len(single_styles)):
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
───────┬────────────────────────────────────────────────────────────────────────
|
||||||
|
│ File: sample.rs
|
||||||
|
───────┼────────────────────────────────────────────────────────────────────────
|
||||||
|
1 │ struct Rectangle {
|
||||||
|
2 │ width: u32,
|
||||||
|
3 │ height: u32,
|
||||||
|
4 │ }
|
||||||
|
5 │
|
||||||
|
6 _ │ fn main() {
|
||||||
|
7 │ let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8 │
|
||||||
|
9 │ println!(
|
||||||
|
10 ~ │ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 ~ │ perimeter(&rect1)
|
||||||
|
12 │ );
|
||||||
|
13 + │ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 │ }
|
||||||
|
15 │
|
||||||
|
16 │ fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 │ rectangle.width * rectangle.height
|
||||||
|
18 │ }
|
||||||
|
19 + │
|
||||||
|
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 + │ (rectangle.width + rectangle.height) * 2
|
||||||
|
22 + │ }
|
||||||
|
───────┴────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
──┬─────────────────────────────────────────────────────────────────────────────
|
||||||
|
│ File: sample.rs
|
||||||
|
──┼─────────────────────────────────────────────────────────────────────────────
|
||||||
|
│ struct Rectangle {
|
||||||
|
│ width: u32,
|
||||||
|
│ height: u32,
|
||||||
|
│ }
|
||||||
|
│
|
||||||
|
_ │ fn main() {
|
||||||
|
│ let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
│
|
||||||
|
│ println!(
|
||||||
|
~ │ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
~ │ perimeter(&rect1)
|
||||||
|
│ );
|
||||||
|
+ │ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
│ }
|
||||||
|
│
|
||||||
|
│ fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
│ rectangle.width * rectangle.height
|
||||||
|
│ }
|
||||||
|
+ │
|
||||||
|
+ │ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
+ │ (rectangle.width + rectangle.height) * 2
|
||||||
|
+ │ }
|
||||||
|
──┴─────────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
───────┬────────────────────────────────────────────────────────────────────────
|
||||||
|
1 │ struct Rectangle {
|
||||||
|
2 │ width: u32,
|
||||||
|
3 │ height: u32,
|
||||||
|
4 │ }
|
||||||
|
5 │
|
||||||
|
6 _ │ fn main() {
|
||||||
|
7 │ let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8 │
|
||||||
|
9 │ println!(
|
||||||
|
10 ~ │ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 ~ │ perimeter(&rect1)
|
||||||
|
12 │ );
|
||||||
|
13 + │ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 │ }
|
||||||
|
15 │
|
||||||
|
16 │ fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 │ rectangle.width * rectangle.height
|
||||||
|
18 │ }
|
||||||
|
19 + │
|
||||||
|
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 + │ (rectangle.width + rectangle.height) * 2
|
||||||
|
22 + │ }
|
||||||
|
───────┴────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
──┬─────────────────────────────────────────────────────────────────────────────
|
||||||
|
│ struct Rectangle {
|
||||||
|
│ width: u32,
|
||||||
|
│ height: u32,
|
||||||
|
│ }
|
||||||
|
│
|
||||||
|
_ │ fn main() {
|
||||||
|
│ let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
│
|
||||||
|
│ println!(
|
||||||
|
~ │ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
~ │ perimeter(&rect1)
|
||||||
|
│ );
|
||||||
|
+ │ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
│ }
|
||||||
|
│
|
||||||
|
│ fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
│ rectangle.width * rectangle.height
|
||||||
|
│ }
|
||||||
|
+ │
|
||||||
|
+ │ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
+ │ (rectangle.width + rectangle.height) * 2
|
||||||
|
+ │ }
|
||||||
|
──┴─────────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
File: sample.rs
|
||||||
|
1 struct Rectangle {
|
||||||
|
2 width: u32,
|
||||||
|
3 height: u32,
|
||||||
|
4 }
|
||||||
|
5
|
||||||
|
6 _ fn main() {
|
||||||
|
7 let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8
|
||||||
|
9 println!(
|
||||||
|
10 ~ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 ~ perimeter(&rect1)
|
||||||
|
12 );
|
||||||
|
13 + println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 }
|
||||||
|
15
|
||||||
|
16 fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 rectangle.width * rectangle.height
|
||||||
|
18 }
|
||||||
|
19 +
|
||||||
|
20 + fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 + (rectangle.width + rectangle.height) * 2
|
||||||
|
22 + }
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
File: sample.rs
|
||||||
|
struct Rectangle {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
_ fn main() {
|
||||||
|
let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
|
||||||
|
println!(
|
||||||
|
~ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
~ perimeter(&rect1)
|
||||||
|
);
|
||||||
|
+ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
rectangle.width * rectangle.height
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
+ (rectangle.width + rectangle.height) * 2
|
||||||
|
+ }
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
1 struct Rectangle {
|
||||||
|
2 width: u32,
|
||||||
|
3 height: u32,
|
||||||
|
4 }
|
||||||
|
5
|
||||||
|
6 _ fn main() {
|
||||||
|
7 let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8
|
||||||
|
9 println!(
|
||||||
|
10 ~ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 ~ perimeter(&rect1)
|
||||||
|
12 );
|
||||||
|
13 + println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 }
|
||||||
|
15
|
||||||
|
16 fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 rectangle.width * rectangle.height
|
||||||
|
18 }
|
||||||
|
19 +
|
||||||
|
20 + fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 + (rectangle.width + rectangle.height) * 2
|
||||||
|
22 + }
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
struct Rectangle {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
_ fn main() {
|
||||||
|
let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
|
||||||
|
println!(
|
||||||
|
~ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
~ perimeter(&rect1)
|
||||||
|
);
|
||||||
|
+ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
rectangle.width * rectangle.height
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
+ (rectangle.width + rectangle.height) * 2
|
||||||
|
+ }
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
─────┬──────────────────────────────────────────────────────────────────────────
|
||||||
|
│ File: sample.rs
|
||||||
|
─────┼──────────────────────────────────────────────────────────────────────────
|
||||||
|
1 │ struct Rectangle {
|
||||||
|
2 │ width: u32,
|
||||||
|
3 │ height: u32,
|
||||||
|
4 │ }
|
||||||
|
5 │
|
||||||
|
6 │ fn main() {
|
||||||
|
7 │ let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8 │
|
||||||
|
9 │ println!(
|
||||||
|
10 │ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 │ perimeter(&rect1)
|
||||||
|
12 │ );
|
||||||
|
13 │ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 │ }
|
||||||
|
15 │
|
||||||
|
16 │ fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 │ rectangle.width * rectangle.height
|
||||||
|
18 │ }
|
||||||
|
19 │
|
||||||
|
20 │ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 │ (rectangle.width + rectangle.height) * 2
|
||||||
|
22 │ }
|
||||||
|
─────┴──────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
File: sample.rs
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
struct Rectangle {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"The perimeter of the rectangle is {} pixels.",
|
||||||
|
perimeter(&rect1)
|
||||||
|
);
|
||||||
|
println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
rectangle.width * rectangle.height
|
||||||
|
}
|
||||||
|
|
||||||
|
fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
(rectangle.width + rectangle.height) * 2
|
||||||
|
}
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
─────┬──────────────────────────────────────────────────────────────────────────
|
||||||
|
1 │ struct Rectangle {
|
||||||
|
2 │ width: u32,
|
||||||
|
3 │ height: u32,
|
||||||
|
4 │ }
|
||||||
|
5 │
|
||||||
|
6 │ fn main() {
|
||||||
|
7 │ let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8 │
|
||||||
|
9 │ println!(
|
||||||
|
10 │ "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 │ perimeter(&rect1)
|
||||||
|
12 │ );
|
||||||
|
13 │ println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 │ }
|
||||||
|
15 │
|
||||||
|
16 │ fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 │ rectangle.width * rectangle.height
|
||||||
|
18 │ }
|
||||||
|
19 │
|
||||||
|
20 │ fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 │ (rectangle.width + rectangle.height) * 2
|
||||||
|
22 │ }
|
||||||
|
─────┴──────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
|
struct Rectangle {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"The perimeter of the rectangle is {} pixels.",
|
||||||
|
perimeter(&rect1)
|
||||||
|
);
|
||||||
|
println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
rectangle.width * rectangle.height
|
||||||
|
}
|
||||||
|
|
||||||
|
fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
(rectangle.width + rectangle.height) * 2
|
||||||
|
}
|
||||||
|
────────────────────────────────────────────────────────────────────────────────
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
File: sample.rs
|
||||||
|
1 struct Rectangle {
|
||||||
|
2 width: u32,
|
||||||
|
3 height: u32,
|
||||||
|
4 }
|
||||||
|
5
|
||||||
|
6 fn main() {
|
||||||
|
7 let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8
|
||||||
|
9 println!(
|
||||||
|
10 "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 perimeter(&rect1)
|
||||||
|
12 );
|
||||||
|
13 println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 }
|
||||||
|
15
|
||||||
|
16 fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 rectangle.width * rectangle.height
|
||||||
|
18 }
|
||||||
|
19
|
||||||
|
20 fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 (rectangle.width + rectangle.height) * 2
|
||||||
|
22 }
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
File: sample.rs
|
||||||
|
struct Rectangle {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"The perimeter of the rectangle is {} pixels.",
|
||||||
|
perimeter(&rect1)
|
||||||
|
);
|
||||||
|
println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
rectangle.width * rectangle.height
|
||||||
|
}
|
||||||
|
|
||||||
|
fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
(rectangle.width + rectangle.height) * 2
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
1 struct Rectangle {
|
||||||
|
2 width: u32,
|
||||||
|
3 height: u32,
|
||||||
|
4 }
|
||||||
|
5
|
||||||
|
6 fn main() {
|
||||||
|
7 let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
8
|
||||||
|
9 println!(
|
||||||
|
10 "The perimeter of the rectangle is {} pixels.",
|
||||||
|
11 perimeter(&rect1)
|
||||||
|
12 );
|
||||||
|
13 println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
14 }
|
||||||
|
15
|
||||||
|
16 fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
17 rectangle.width * rectangle.height
|
||||||
|
18 }
|
||||||
|
19
|
||||||
|
20 fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
21 (rectangle.width + rectangle.height) * 2
|
||||||
|
22 }
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
struct Rectangle {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let rect1 = Rectangle { width: 30, height: 50 };
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"The perimeter of the rectangle is {} pixels.",
|
||||||
|
perimeter(&rect1)
|
||||||
|
);
|
||||||
|
println!(r#"This line contains invalid utf8: "�����"#;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn area(rectangle: &Rectangle) -> u32 {
|
||||||
|
rectangle.width * rectangle.height
|
||||||
|
}
|
||||||
|
|
||||||
|
fn perimeter(rectangle: &Rectangle) -> u32 {
|
||||||
|
(rectangle.width + rectangle.height) * 2
|
||||||
|
}
|
||||||
+35
-6
@@ -16,11 +16,32 @@ BAT_OPTIONS = [
|
|||||||
"--italic-text=always",
|
"--italic-text=always",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
SKIP_FILENAMES = [
|
||||||
|
"LICENSE.md",
|
||||||
|
"README.md",
|
||||||
|
"bat_options",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def get_options(source):
|
||||||
|
options = BAT_OPTIONS.copy()
|
||||||
|
|
||||||
|
source_dirpath = path.dirname(source)
|
||||||
|
options_file = path.join(source_dirpath, "bat_options")
|
||||||
|
try:
|
||||||
|
with open(options_file, "r") as f:
|
||||||
|
options.extend(map(lambda x: x.rstrip(), f.readlines()))
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
return options
|
||||||
|
|
||||||
|
|
||||||
def create_highlighted_versions(output_basepath):
|
def create_highlighted_versions(output_basepath):
|
||||||
root = os.path.dirname(os.path.abspath(__file__))
|
root = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sources = path.join(root, "source", "*")
|
||||||
|
|
||||||
for source in glob.glob(path.join(root, "source", "*", "*")):
|
for source in glob.glob(path.join(sources, "*")) + glob.glob(path.join(sources, ".*")):
|
||||||
try:
|
try:
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env.pop("PAGER", None)
|
env.pop("PAGER", None)
|
||||||
@@ -31,16 +52,18 @@ def create_highlighted_versions(output_basepath):
|
|||||||
env.pop("BAT_TABS", None)
|
env.pop("BAT_TABS", None)
|
||||||
env["COLORTERM"] = "truecolor" # make sure to output 24bit colors
|
env["COLORTERM"] = "truecolor" # make sure to output 24bit colors
|
||||||
|
|
||||||
bat_output = subprocess.check_output(
|
|
||||||
["bat"] + BAT_OPTIONS + [source], stderr=subprocess.PIPE, env=env,
|
|
||||||
)
|
|
||||||
|
|
||||||
source_dirname = path.basename(path.dirname(source))
|
source_dirname = path.basename(path.dirname(source))
|
||||||
source_filename = path.basename(source)
|
source_filename = path.basename(source)
|
||||||
|
|
||||||
if source_filename == "LICENSE.md":
|
if source_filename in SKIP_FILENAMES:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
bat_output = subprocess.check_output(
|
||||||
|
["bat"] + get_options(source) + [source],
|
||||||
|
stderr=subprocess.PIPE,
|
||||||
|
env=env,
|
||||||
|
)
|
||||||
|
|
||||||
output_dir = path.join(output_basepath, source_dirname)
|
output_dir = path.join(output_basepath, source_dirname)
|
||||||
output_path = path.join(output_dir, source_filename)
|
output_path = path.join(output_dir, source_filename)
|
||||||
|
|
||||||
@@ -64,6 +87,12 @@ def create_highlighted_versions(output_basepath):
|
|||||||
file=sys.stderr,
|
file=sys.stderr,
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except FileNotFoundError:
|
||||||
|
print(
|
||||||
|
"Error: Could not execute 'bat'. Please make sure that the executable "
|
||||||
|
"is available on the PATH."
|
||||||
|
)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
[38;2;248;248;242m.[0m[38;2;248;248;242mdata[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114m.balign[0m[38;2;190;132;255m 4[0m
|
||||||
|
[38;2;248;248;242mred[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;190;132;255m 0[0m
|
||||||
|
[38;2;248;248;242mgreen[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;190;132;255m 0[0m
|
||||||
|
[38;2;248;248;242mblue[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;190;132;255m 0[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114m.text[0m
|
||||||
|
[38;2;249;38;114m.global[0m[38;2;248;248;242m [0m[38;2;248;248;242mgrayscale[0m
|
||||||
|
[38;2;249;38;114m.func[0m[38;2;248;248;242m [0m[38;2;248;248;242mgrayscale[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mgrayscale[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242massign[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m/* some comment */[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mip[0m[38;2;248;248;242m, [0m[38;2;248;248;242maddr_red[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mstr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr3[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mip[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mip[0m[38;2;248;248;242m, [0m[38;2;248;248;242maddr_green[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldmfd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr13[0m[38;2;248;248;242m!, {[0m[38;2;248;248;242mr3[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mstr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr3[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mip[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mip[0m[38;2;248;248;242m, [0m[38;2;248;248;242maddr_blue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldmfd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr13[0m[38;2;248;248;242m!, {[0m[38;2;248;248;242mr3[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mstr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr3[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mip[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mstmfd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr13[0m[38;2;248;248;242m!, {[0m[38;2;248;248;242mr4[0m[38;2;248;248;242m-[0m[38;2;248;248;242mr8[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mip[0m[38;2;248;248;242m, [0m[38;2;248;248;242maddr_red[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr3[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mip[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mip[0m[38;2;248;248;242m, [0m[38;2;248;248;242maddr_green[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr4[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mip[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mip[0m[38;2;248;248;242m, [0m[38;2;248;248;242maddr_blue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr5[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mip[0m[3;38;2;102;217;239m][0m[38;2;248;248;242m [0m[38;2;117;113;94m/* another comment */[0m
|
||||||
|
[38;2;248;248;242mgrayscale_loop[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldrb[0m[38;2;248;248;242m [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mr1[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mmul[0m[38;2;248;248;242m [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr3[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr6[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr1[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldrb[0m[38;2;248;248;242m [0m[38;2;248;248;242mr7[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mr1[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mmul[0m[38;2;248;248;242m [0m[38;2;248;248;242mr7[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr4[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr7[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr1[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldrb[0m[38;2;248;248;242m [0m[38;2;248;248;242mr8[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mr1[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mmul[0m[38;2;248;248;242m [0m[38;2;248;248;242mr8[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr5[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr8[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr1[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr7[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr8[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239masr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #8[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mstr[0m[38;2;248;248;242m [0m[38;2;248;248;242mr6[0m[38;2;248;248;242m,[0m[3;38;2;102;217;239m [[0m[3;38;2;102;217;239mr2[0m[3;38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr2[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239msub[0m[38;2;248;248;242m [0m[38;2;248;248;242mr0[0m[38;2;248;248;242m, [0m[38;2;248;248;242mr0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mcmp[0m[38;2;248;248;242m [0m[38;2;248;248;242mr0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m #0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mbne[0m[38;2;248;248;242m [0m[38;2;248;248;242mgrayscale_loop[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mldmfd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr13[0m[38;2;248;248;242m!, {[0m[38;2;248;248;242mr4[0m[38;2;248;248;242m-[0m[38;2;248;248;242mr8[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mstmfd[0m[38;2;248;248;242m [0m[38;2;248;248;242mr13[0m[38;2;248;248;242m!, {[0m[38;2;248;248;242mr0[0m[38;2;248;248;242m-[0m[38;2;248;248;242mr1[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mbx[0m[38;2;248;248;242m [0m[38;2;248;248;242mlr[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242maddr_red[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;248;248;242m [0m[38;2;248;248;242mred[0m
|
||||||
|
[38;2;248;248;242maddr_green[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;248;248;242m [0m[38;2;248;248;242mgreen[0m
|
||||||
|
[38;2;248;248;242maddr_blue[0m[38;2;248;248;242m: [0m[38;2;249;38;114m.word[0m[38;2;248;248;242m [0m[38;2;248;248;242mblue[0m
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
[38;2;255;255;255m<[0m[38;2;249;38;114mhtml[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;249;38;114mbody[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;124;120;101m<!--[0m[38;2;124;120;101m #include file ="headers\header.inc" [0m[38;2;124;120;101m-->[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m<%[0m
|
||||||
|
[38;2;249;38;114mFor[0m[38;2;248;248;242m [0m[38;2;255;255;255mi[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;249;38;114mTo[0m[38;2;248;248;242m [0m[38;2;190;132;255m5[0m
|
||||||
|
[3;38;2;166;226;46mResponse[0m[38;2;248;248;242m.[0m[38;2;102;217;239mWrite[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mThe number is [0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242m [0m[38;2;255;255;255mi[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m<br />[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mNext[0m
|
||||||
|
[38;2;248;248;242m%>[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m<%[0m
|
||||||
|
[3;38;2;166;226;46mResponse[0m[38;2;248;248;242m.[0m[38;2;102;217;239mWrite[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello World![0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m%>[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m<%[0m
|
||||||
|
[38;2;249;38;114mDim[0m[38;2;248;248;242m [0m[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mVolvo[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mBMW[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mFord[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mApple[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mOrange[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mBanana[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mCoke[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mPepsi[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mSprite[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;255;255;255mi[0m[38;2;249;38;114m=[0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;249;38;114mto[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m
|
||||||
|
[3;38;2;166;226;46mresponse[0m[38;2;248;248;242m.[0m[38;2;102;217;239mwrite[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m<p>[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;255;255;255mj[0m[38;2;249;38;114m=[0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;249;38;114mto[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m
|
||||||
|
[3;38;2;166;226;46mresponse[0m[38;2;248;248;242m.[0m[38;2;102;217;239mwrite[0m[38;2;248;248;242m([0m[38;2;255;255;255mx[0m[38;2;248;248;242m([0m[38;2;255;255;255mi[0m[38;2;248;248;242m,[0m[38;2;255;255;255mj[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m<br />[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mnext[0m
|
||||||
|
[3;38;2;166;226;46mresponse[0m[38;2;248;248;242m.[0m[38;2;102;217;239mwrite[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m</p>[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mnext[0m
|
||||||
|
[38;2;248;248;242m%>[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m</[0m[38;2;249;38;114mbody[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;249;38;114mhtml[0m[38;2;255;255;255m>[0m
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m flash.events.[0m[38;2;249;38;114m*[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m flash.events.MouseEvent;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mpackage TestSyntax {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mclass[0m[38;2;248;248;242m [0m[38;2;166;226;46mTestSyntax[0m[38;2;248;248;242m [0m[38;2;249;38;114mextends[0m[38;2;248;248;242m [0m[3;4;38;2;166;226;46mflash.display.Sprite[0m[38;2;248;248;242m {[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[38;2;249;38;114mstatic[0m[38;2;248;248;242m const TEST_CONSTANT[0m[38;2;249;38;114m:[0m[3;38;2;102;217;239mNumber[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m33.333[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m testAttribute[0m[38;2;249;38;114m:[0m[38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m namespace TestNamespace;[0m
|
||||||
|
[38;2;248;248;242m TestNamespace [0m[3;38;2;102;217;239mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46mMethod2[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;249;38;114m:[0m[38;2;102;217;239mvoid[0m[38;2;248;248;242m { }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m*[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*[0m[38;2;117;113;94m Multi-line comment[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;248;248;242m override [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m function [0m[38;2;102;217;239mset[0m[38;2;248;248;242m [0m[38;2;102;217;239mx[0m[38;2;248;248;242m([0m[38;2;102;217;239mvalue[0m[38;2;249;38;114m:[0m[3;38;2;102;217;239mNumber[0m[38;2;248;248;242m)[0m[38;2;249;38;114m:[0m[38;2;102;217;239mvoid[0m
|
||||||
|
[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114msuper[0m[38;2;248;248;242m.[0m[38;2;102;217;239mx[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mMath[0m[38;2;248;248;242m.[0m[38;2;102;217;239mround[0m[38;2;248;248;242m([0m[38;2;102;217;239mvalue[0m[38;2;248;248;242m);[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m*[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*[0m[38;2;117;113;94m Actual multi-line comment[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*[0m[38;2;117;113;94m Takes up multiple lines[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;248;248;242m override [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m function [0m[38;2;102;217;239mset[0m[38;2;248;248;242m y([0m[38;2;102;217;239mvalue[0m[38;2;249;38;114m:[0m[3;38;2;102;217;239mNumber[0m[38;2;248;248;242m)[0m[38;2;249;38;114m:[0m[38;2;102;217;239mvoid[0m
|
||||||
|
[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114msuper[0m[38;2;248;248;242m.y [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46mtestFunction[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m [0m[38;2;102;217;239mtest[0m[38;2;249;38;114m:[0m[3;38;2;102;217;239mString[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mhello[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m arrays[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m testArray[0m[38;2;249;38;114m:[0m[3;38;2;166;226;46mArray[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [[0m[38;2;230;219;116m"[0m[38;2;230;219;116ma[0m[38;2;230;219;116m"[0m[38;2;248;248;242m, [0m[38;2;230;219;116m"[0m[38;2;230;219;116mb[0m[38;2;230;219;116m"[0m[38;2;248;248;242m, [0m[38;2;230;219;116m"[0m[38;2;230;219;116mc[0m[38;2;230;219;116m"[0m[38;2;248;248;242m, [0m[38;2;230;219;116m"[0m[38;2;230;219;116md[0m[38;2;230;219;116m"[0m[38;2;248;248;242m];[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ([0m[38;2;249;38;114mvar[0m[38;2;248;248;242m i[0m[38;2;249;38;114m:[0m[38;2;248;248;242muint [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m; i < testArray.[0m[38;2;102;217;239mlength[0m[38;2;248;248;242m; i[0m[38;2;249;38;114m+[0m[38;2;249;38;114m+[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mtrace[0m[38;2;248;248;242m(testArray[i]);[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m objects[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m testObject[0m[38;2;249;38;114m:[0m[3;38;2;166;226;46mObject[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m {foo[0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m20[0m[38;2;248;248;242m, bar[0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m40[0m[38;2;248;248;242m};[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ([0m[38;2;249;38;114mvar[0m[38;2;248;248;242m key[0m[38;2;249;38;114m:[0m[3;38;2;102;217;239mString[0m[38;2;248;248;242m [0m[38;2;102;217;239min[0m[38;2;248;248;242m testObject) {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mtrace[0m[38;2;248;248;242m(testObject[key]);[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m each ([0m[38;2;249;38;114mvar[0m[38;2;248;248;242m objectValue[0m[38;2;249;38;114m:[0m[38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;102;217;239min[0m[38;2;248;248;242m testObject) {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mtrace[0m[38;2;248;248;242m(objectValue);[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m dynamic variables[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m testDynamic[0m[38;2;249;38;114m:[0m[38;2;249;38;114m*[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m testDynamic [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m75[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m testDynamic [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mSeventy-five[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m regex[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m testRegExp[0m[38;2;249;38;114m:[0m[38;2;248;248;242mRegExp [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m/[0m[38;2;248;248;242mfoo[0m[38;2;249;38;114m-[0m[38;2;248;248;242m\d[0m[38;2;249;38;114m+[0m[38;2;249;38;114m/[0m[38;2;248;248;242mi;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m XML[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m testXML[0m[38;2;249;38;114m:[0m[3;38;2;166;226;46mXML[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m<employee>[0m
|
||||||
|
[38;2;248;248;242m <firstName>Harold<[0m[38;2;249;38;114m/[0m[38;2;248;248;242mfirstName>[0m
|
||||||
|
[38;2;248;248;242m <lastName>Webster<[0m[38;2;249;38;114m/[0m[38;2;248;248;242mlastName>[0m
|
||||||
|
[38;2;248;248;242m<[0m[38;2;249;38;114m/[0m[38;2;248;248;242memployee>;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mprivate[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46manotherFunc[0m[38;2;248;248;242m([0m[3;38;2;253;151;31ma:int[0m[38;2;248;248;242m,[0m[3;38;2;253;151;31m arg2:uint[0m[38;2;248;248;242m,[0m[3;38;2;253;151;31m arg3:Function[0m[38;2;248;248;242m,[0m[3;38;2;253;151;31m ... args[0m[38;2;248;248;242m)[0m[38;2;248;248;242m {[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [Embed([0m[38;2;102;217;239msource[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116msound1.mp3[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)] [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m soundCls[0m[38;2;249;38;114m:[0m[38;2;248;248;242mClass;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46mSoundAssetExample[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m mySound[0m[38;2;249;38;114m:[0m[38;2;248;248;242mSoundAsset [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114mnew[0m[38;2;248;248;242m soundCls() as SoundAsset;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mvar[0m[38;2;248;248;242m sndChannel[0m[38;2;249;38;114m:[0m[38;2;248;248;242mSoundChannel [0m[38;2;249;38;114m=[0m[38;2;248;248;242m mySound.[0m[38;2;102;217;239mplay[0m[38;2;248;248;242m();[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
[38;2;117;113;94m# This is a comment[0m
|
||||||
|
[38;2;117;113;94m#[0m
|
||||||
|
[38;2;249;38;114mServerRoot[0m[38;2;248;248;242m ""[0m
|
||||||
|
[38;2;249;38;114mListen[0m[38;2;248;248;242m [0m[38;2;190;132;255m80[0m
|
||||||
|
[38;2;249;38;114mLoadModule[0m[38;2;248;248;242m mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116munixd_module[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;249;38;114mUser[0m[38;2;248;248;242m daemon[0m
|
||||||
|
[38;2;249;38;114mGroup[0m[38;2;248;248;242m daemon[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;249;38;114mServerAdmin[0m[38;2;248;248;242m you@example.com[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mDirectory[0m[38;2;248;248;242m [0m[38;2;230;219;116m/[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mAllowOverride[0m[38;2;248;248;242m none[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mRequire[0m[38;2;248;248;242m all denied[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mDirectory[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;249;38;114mDocumentRoot[0m[38;2;248;248;242m "/usr/share/apache2/default-site/htdocs"[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mDirectory[0m[38;2;248;248;242m [0m[38;2;230;219;116m"/usr/share/apache2/default-site/htdocs"[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mOptions[0m[38;2;248;248;242m Indexes FollowSymLinks[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mAllowOverride[0m[38;2;248;248;242m None[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mRequire[0m[38;2;248;248;242m all granted[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mDirectory[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mFiles[0m[38;2;248;248;242m [0m[38;2;230;219;116m".ht*"[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mRequire[0m[38;2;248;248;242m all denied[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mFiles[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;249;38;114mErrorLog[0m[38;2;248;248;242m "/var/log/apache2/error_log"[0m
|
||||||
|
[38;2;249;38;114mLogLevel[0m[38;2;248;248;242m warn[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116mlog_config_module[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mLogFormat[0m[38;2;248;248;242m "%h %l %u %t \"%r\" %>s %b \"[0m[38;2;248;248;242m%{[0m[38;2;248;248;242mReferer[0m[38;2;248;248;242m}[0m[38;2;248;248;242mi\" \"[0m[38;2;248;248;242m%{[0m[38;2;248;248;242mUser-Agent[0m[38;2;248;248;242m}[0m[38;2;248;248;242mi\"" combined[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mCustomLog[0m[38;2;248;248;242m "/var/log/apache2/access_log" common[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116malias_module[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mScriptAlias[0m[38;2;248;248;242m [0m[38;2;230;219;116m/cgi-bin/[0m[38;2;248;248;242m [0m[38;2;230;219;116m"/usr/lib/cgi-bin/"[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116mmime_module[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mTypesConfig[0m[38;2;248;248;242m /etc/apache2/mime.types[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mAddType[0m[38;2;248;248;242m [0m[38;2;166;226;46mapplication/x-compress[0m[38;2;248;248;242m .Z[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mAddOutputFilter[0m[38;2;248;248;242m INCLUDES .shtml[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116mproxy_html_module[0m[38;2;255;255;255m>[0m
|
||||||
|
[38;2;249;38;114mInclude[0m[38;2;248;248;242m /etc/apache2/extra/proxy-html.conf[0m
|
||||||
|
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m This is a comment[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mproperty[0m[38;2;248;248;242m [0m[38;2;255;255;255mdefaultClientName[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mMary Smith[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mon[0m[38;2;248;248;242m [0m[38;2;166;226;46mgreetClient[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mnameOfClient[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mdisplay dialog[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello [0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242m nameOfClient [0m[38;2;249;38;114m&[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m![0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mend[0m[38;2;248;248;242m greetClient[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mscript[0m[38;2;248;248;242m [0m[38;2;166;226;46mtestGreet[0m
|
||||||
|
[38;2;248;248;242m greetClient[0m[38;2;248;248;242m([0m[38;2;248;248;242mdefaultClientName[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mend script[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239mrun[0m[38;2;248;248;242m testGreet[0m
|
||||||
|
[38;2;248;248;242mgreetClient[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mJoe Jones[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mmyList[0m[38;2;248;248;242m [0m[38;2;249;38;114mto[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mwhat[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;249;38;114mbeginning[0m[38;2;248;248;242m [0m[38;2;249;38;114mof[0m[38;2;248;248;242m myList [0m[38;2;249;38;114mto[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m [0m[38;2;249;38;114mof[0m[38;2;248;248;242m myList [0m[38;2;249;38;114mto[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mfour[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mmyList[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mtell[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mapplication[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mTextEdit[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;166;226;46mparagraph[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114mof[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mdocument[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m
|
||||||
|
[38;2;249;38;114mend tell[0m
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
[38;2;253;151;31m=[0m[38;2;253;151;31m [0m[38;2;253;151;31mThis is the document title[0m
|
||||||
|
[38;2;248;248;242mAuthor McAuthorson <author@author.org>[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mTable of Content[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m:[0m[38;2;248;248;242mtoc[0m[38;2;248;248;242m:[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mParagraphs[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m[[0m[38;2;248;248;242m.lead[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242mThis text will be styled as a lead paragraph with a larger font.[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThis is a normal paragraph.[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m This is a literal paragraph that is offset by one space, [0m
|
||||||
|
[38;2;248;248;242m it will be rendered in a fixed-width font.[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239mNOTE:[0m[38;2;248;248;242m This is an admonition paragraph[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239mTIP:[0m[38;2;248;248;242m This is another admonition paragraph[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mFormatted text[0m
|
||||||
|
|
||||||
|
[1;38;2;249;38;114m*[0m[1;38;2;249;38;114mbold text[0m[1;38;2;249;38;114m*[0m
|
||||||
|
|
||||||
|
[3;38;2;228;46;112m_[0m[3;38;2;228;46;112mitalic text[0m[3;38;2;228;46;112m_[0m
|
||||||
|
|
||||||
|
[1;38;2;249;38;114m*[0m[3;38;2;228;46;112m_[0m[3;38;2;228;46;112mbold italic text[0m[3;38;2;228;46;112m_[0m[1;38;2;249;38;114m*[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m`[0m[38;2;230;219;116mmonospace text[0m[38;2;230;219;116m`[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m`[0m[1;38;2;249;38;114m*[0m[1;38;2;249;38;114mbold monospace[0m[1;38;2;249;38;114m*[0m[38;2;230;219;116m`[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m`[0m[3;38;2;228;46;112m_[0m[3;38;2;228;46;112mitalic monospace[0m[3;38;2;228;46;112m_[0m[38;2;230;219;116m`[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m`[0m[1;38;2;249;38;114m*[0m[3;38;2;228;46;112m_[0m[3;38;2;228;46;112mbold and italic monospace[0m[3;38;2;228;46;112m_[0m[1;38;2;249;38;114m*[0m[38;2;230;219;116m`[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following word is [0m[38;2;230;219;116m#[0m[38;2;230;219;116mhighlighted[0m[38;2;230;219;116m#[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following words are [0m[38;2;230;219;116m[.small][0m[38;2;230;219;116m#[0m[38;2;230;219;116msmall print[0m[38;2;230;219;116m#[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following word is [0m[38;2;230;219;116m[.underline][0m[38;2;230;219;116m#[0m[38;2;230;219;116munderlined[0m[38;2;230;219;116m#[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following word is [0m[38;2;230;219;116m[.line-through][0m[38;2;230;219;116m#[0m[38;2;230;219;116mline-through[0m[38;2;230;219;116m#[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following word is [0m[38;2;230;219;116m[.big][0m[38;2;230;219;116m#[0m[38;2;230;219;116mbig[0m[38;2;230;219;116m#[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following word is printed in [0m[38;2;230;219;116m^[0m[38;2;230;219;116msuperscript^[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mThe following word is printed in [0m[38;2;230;219;116m~[0m[38;2;230;219;116msub-script[0m[38;2;230;219;116m~[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mInclude[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114minclude[0m[38;2;190;132;255m::[0m[4;38;2;166;226;46mnot_existing.adoc[0m[38;2;190;132;255m[[0m[38;2;190;132;255m][0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mBreaks[0m
|
||||||
|
[38;2;248;248;242mHere we have a [0m[38;2;248;248;242m+[0m
|
||||||
|
[38;2;248;248;242mline break.[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mBelow is a horizontal rule.[0m
|
||||||
|
|
||||||
|
[1;38;2;255;255;255m'''[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mAnd below here is a page break.[0m
|
||||||
|
|
||||||
|
[1;38;2;255;255;255m<<<[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mLists[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;248;248;242mThis is[0m
|
||||||
|
[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;248;248;242man unordered[0m
|
||||||
|
[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;248;248;242mlist[0m
|
||||||
|
[38;2;190;132;255m**[0m[38;2;248;248;242m [0m[38;2;248;248;242mwith nested[0m
|
||||||
|
[38;2;190;132;255m***[0m[38;2;248;248;242m [0m[38;2;248;248;242melements[0m
|
||||||
|
|
||||||
|
[1;38;2;255;255;255m'''[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m-[0m[38;2;248;248;242m [0m[38;2;248;248;242mThis is also an[0m
|
||||||
|
[38;2;190;132;255m-[0m[38;2;248;248;242m [0m[38;2;248;248;242munordered[0m
|
||||||
|
[38;2;190;132;255m-[0m[38;2;248;248;242m [0m[38;2;248;248;242mlist[0m
|
||||||
|
|
||||||
|
[1;38;2;255;255;255m'''[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m.[0m[38;2;248;248;242m [0m[38;2;248;248;242mAnd this is[0m
|
||||||
|
[38;2;190;132;255m.[0m[38;2;248;248;242m [0m[38;2;248;248;242man ordered[0m
|
||||||
|
[38;2;190;132;255m.[0m[38;2;248;248;242m [0m[38;2;248;248;242mlist[0m
|
||||||
|
[38;2;190;132;255m..[0m[38;2;248;248;242m [0m[38;2;248;248;242mwith nested[0m
|
||||||
|
[38;2;190;132;255m...[0m[38;2;248;248;242m [0m[38;2;248;248;242melements[0m
|
||||||
|
|
||||||
|
[1;38;2;255;255;255m'''[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m* [*] checked[0m
|
||||||
|
[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;248;248;242m[x] also checked[0m
|
||||||
|
[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;248;248;242m[ ] not checked[0m
|
||||||
|
[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;248;248;242mnormal list item[0m
|
||||||
|
|
||||||
|
[1;38;2;255;255;255m'''[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m[[0m[38;2;248;248;242mqanda[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242mWhat is this?[0m[38;2;248;248;242m::[0m
|
||||||
|
[38;2;248;248;242m This is a Q&A[0m
|
||||||
|
[38;2;248;248;242mAnd what is this?[0m[38;2;248;248;242m::[0m[38;2;248;248;242m [0m[38;2;248;248;242mAlso a Q&A[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mLinks[0m
|
||||||
|
[38;2;248;248;242mThe following link will be created automatically: https://asciidoctor.org[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m.[0m[38;2;253;151;31mAn image caption[0m
|
||||||
|
[38;2;249;38;114mimage[0m[38;2;190;132;255m::[0m[4;38;2;166;226;46mnot_existing.jpg[0m[38;2;190;132;255m[[0m[3;38;2;253;151;31malt text[0m[38;2;190;132;255m][0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m.[0m[38;2;253;151;31mA video caption[0m
|
||||||
|
[38;2;249;38;114mvideo[0m[38;2;190;132;255m::[0m[4;38;2;166;226;46mnot_existing.mp4[0m[38;2;190;132;255m[[0m[3;38;2;253;151;31malt text[0m[38;2;190;132;255m][0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mSource Code[0m
|
||||||
|
[38;2;248;248;242mThe following word is [0m[38;2;230;219;116m`[0m[38;2;230;219;116mmonospace[0m[38;2;230;219;116m`[0m[38;2;248;248;242m.[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239m....[0m
|
||||||
|
[38;2;230;219;116mThis is a literal block[0m
|
||||||
|
[38;2;230;219;116mwhere linebreaks are rendered[0m
|
||||||
|
[38;2;102;217;239m....[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m.[0m[38;2;253;151;31mexample.java[0m
|
||||||
|
[38;2;248;248;242m[[0m[38;2;248;248;242msource,java[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m----[0m
|
||||||
|
[38;2;248;248;242mpublic class Example { // [0m[38;2;190;132;255m<[0m[38;2;190;132;255m1[0m[38;2;190;132;255m>[0m
|
||||||
|
[38;2;248;248;242m private static boolean isExample = true; // [0m[38;2;190;132;255m<[0m[38;2;190;132;255m2[0m[38;2;190;132;255m>[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m----[0m
|
||||||
|
[38;2;190;132;255m<[0m[38;2;190;132;255m1[0m[38;2;190;132;255m>[0m[38;2;248;248;242m [0m[38;2;248;248;242mThis is a callout[0m
|
||||||
|
[38;2;190;132;255m<[0m[38;2;190;132;255m2[0m[38;2;190;132;255m>[0m[38;2;248;248;242m [0m[38;2;248;248;242mThis is another callout[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m==[0m[38;2;253;151;31m [0m[38;2;253;151;31mMisc[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m.[0m[38;2;253;151;31mA sidebar[0m
|
||||||
|
[38;2;102;217;239m****[0m
|
||||||
|
[38;2;230;219;116mThis will be rendered like a sidebar[0m
|
||||||
|
[38;2;102;217;239m****[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239m____[0m
|
||||||
|
[3;38;2;102;217;239mThis is a random blockquote[0m
|
||||||
|
[3;38;2;102;217;239m____[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m[[0m[38;2;248;248;242mquote, Albert Einstein, 'Scientist'[0m[38;2;248;248;242m][0m
|
||||||
|
[3;38;2;102;217;239m____[0m
|
||||||
|
[3;38;2;102;217;239mThis is not actually something Einstein said[0m
|
||||||
|
[3;38;2;102;217;239m____[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m here we have a single line comment[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m////[0m
|
||||||
|
[38;2;117;113;94mand this is a[0m
|
||||||
|
[38;2;117;113;94mmultiline comment[0m
|
||||||
|
[38;2;117;113;94m////[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m.[0m[38;2;253;151;31mA Table[0m
|
||||||
|
[38;2;248;248;242m[[0m[38;2;248;248;242m%header[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m|===[0m
|
||||||
|
[38;2;248;248;242m|Header Column 1 |Header Column 2 |And the last header column[0m
|
||||||
|
[38;2;248;248;242m|Cell in col1[0m
|
||||||
|
[38;2;248;248;242m|Cell in col2[0m
|
||||||
|
[38;2;248;248;242m|Cell in col3[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m|Cell in col1, row2[0m
|
||||||
|
[38;2;248;248;242m|Cell in col2, row2[0m
|
||||||
|
[38;2;248;248;242m|Cell in col3, row2[0m
|
||||||
|
[38;2;248;248;242m|===[0m
|
||||||
|
|
||||||
|
[38;2;253;151;31m.[0m[38;2;253;151;31mA Table from CSV[0m
|
||||||
|
[38;2;248;248;242m[[0m[38;2;248;248;242m%header, format=csv[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m|===[0m
|
||||||
|
[38;2;248;248;242mheader col1, header col2, header col3[0m
|
||||||
|
[38;2;248;248;242mThis,is the first, row[0m
|
||||||
|
[38;2;248;248;242mThis, is the second, row[0m
|
||||||
|
[38;2;248;248;242m|===[0m
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
[38;2;102;217;239mglobal[0m[38;2;248;248;242m [0m[38;2;166;226;46menlight[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239msection[0m[38;2;248;248;242m [0m[38;2;102;217;239m.data[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mred[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdq[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;117;113;94m;[0m[38;2;117;113;94m some comment[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mgreen[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdq[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mblue[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdq[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mdata[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdq[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mN[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdd[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mM[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdd[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mchange[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdd[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;166;226;46mdelta[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdb[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239msection[0m[38;2;248;248;242m [0m[38;2;102;217;239m.text[0m
|
||||||
|
[38;2;166;226;46menlight[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcall[0m[38;2;248;248;242m [0m[38;2;166;226;46massign_arguments[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcall[0m[38;2;248;248;242m [0m[38;2;166;226;46mset_data[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcall[0m[38;2;248;248;242m [0m[38;2;166;226;46mmake_deltas[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46massign_arguments[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mred[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrdi[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mgreen[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrsi[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mblue[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrdx[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mN[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mecx[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mM[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mr8d[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mchange[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mr9d[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mal[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrsp[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m16[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;166;226;46mdelta[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mal[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46mset_data[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255meax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mchange[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcmp[0m[38;2;248;248;242m [0m[38;2;190;132;255meax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mjne[0m[38;2;248;248;242m [0m[38;2;166;226;46mnot_1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mred[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mdata[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
[38;2;166;226;46mnot_1[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcmp[0m[38;2;248;248;242m [0m[38;2;190;132;255meax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mjne[0m[38;2;248;248;242m [0m[38;2;166;226;46mnot_2[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mgreen[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mdata[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
[38;2;166;226;46mnot_2[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mblue[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mdata[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mmake_deltas[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mecx[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mN[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255meax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mM[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mimul[0m[38;2;248;248;242m [0m[38;2;190;132;255mecx[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255meax[0m
|
||||||
|
[38;2;166;226;46mloop_start[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcall[0m[38;2;248;248;242m [0m[38;2;166;226;46mmake_delta[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mloop[0m[38;2;248;248;242m [0m[38;2;166;226;46mloop_start[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46mmake_delta[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mqword[0m[38;2;248;248;242m[[0m[38;2;166;226;46mdata[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114madd[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrcx[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdec[0m[38;2;248;248;242m [0m[38;2;190;132;255mrax[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;166;226;46mdelta[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcmp[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mjl[0m[38;2;248;248;242m [0m[38;2;166;226;46msubstracting[0m
|
||||||
|
[38;2;166;226;46madding[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114madd[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrax[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mjc[0m[38;2;248;248;242m [0m[38;2;166;226;46madding_overflow[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrax[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
[38;2;166;226;46madding_overflow[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrax[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m255[0m[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
[38;2;166;226;46msubstracting[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mr9b[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114msub[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mr9b[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[38;2;190;132;255mr8b[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrax[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114msub[0m[38;2;248;248;242m [0m[38;2;190;132;255mr8b[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdl[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mjc[0m[38;2;248;248;242m [0m[38;2;166;226;46msubstracting_overflow[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrax[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mr8b[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
|
[38;2;117;113;94m;[0m[38;2;117;113;94m another comment[0m
|
||||||
|
[38;2;166;226;46msubstracting_overflow[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mmov[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbyte[0m[38;2;248;248;242m[[0m[38;2;190;132;255mrax[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mret[0m
|
||||||
@@ -0,0 +1,511 @@
|
|||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m!/usr/bin/env bash[0m
|
||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m -----------------------------------------------------------------------------[0m
|
||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m bat-extras | Copyright (C) 2020 eth-p and contributors | MIT License[0m
|
||||||
|
[3;38;2;124;120;101m#[0m
|
||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m Repository: https://github.com/eth-p/bat-extras[0m
|
||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m Issues: https://github.com/eth-p/bat-extras/issues[0m
|
||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m -----------------------------------------------------------------------------[0m
|
||||||
|
[38;2;166;226;46mprintc[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;102;217;239mprintf[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255msed[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_PRINTC_PATTERN[0m[38;2;255;255;255m"[0m[38;2;230;219;116m [0m[38;2;249;38;114m<[0m[38;2;249;38;114m<[0m[38;2;249;38;114m<[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;255;255;255m"[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m@[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mprintc_init[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255mtrue[0m[38;2;249;38;114m)[0m[38;2;255;255;255m_PRINTC_PATTERN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_PRINTC_PATTERN_ANSI[0m[38;2;255;255;255m"[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255mfalse[0m[38;2;249;38;114m)[0m[38;2;255;255;255m_PRINTC_PATTERN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_PRINTC_PATTERN_PLAIN[0m[38;2;255;255;255m"[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116m[DEFINE][0m[38;2;255;255;255m"[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m_PRINTC_PATTERN_ANSI[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m_PRINTC_PATTERN_PLAIN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mname[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mansi[0m
|
||||||
|
[38;2;249;38;114mwhile[0m[38;2;255;255;255m [0m[38;2;102;217;239mread[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mr[0m[38;2;255;255;255m name ansi[0m[38;2;249;38;114m;[0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mname[0m[38;2;255;255;255m [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mansi[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m||[0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m{[0m[38;2;255;255;255mname[0m[38;2;249;38;114m:[0m[38;2;190;132;255m0[0m[38;2;249;38;114m:[0m[38;2;190;132;255m1[0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m#[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mcontinue[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mansi[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mansi[0m[38;2;249;38;114m/[0m[38;2;190;132;255m\\[0m[38;2;249;38;114m/[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m_PRINTC_PATTERN_PLAIN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m_PRINTC_PATTERN_PLAIN[0m[38;2;230;219;116m}[0m[38;2;230;219;116ms/%{[0m[38;2;255;255;255m$[0m[38;2;255;255;255mname[0m[38;2;230;219;116m}//g;[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m_PRINTC_PATTERN_ANSI[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m_PRINTC_PATTERN_ANSI[0m[38;2;230;219;116m}[0m[38;2;230;219;116ms/%{[0m[38;2;255;255;255m$[0m[38;2;255;255;255mname[0m[38;2;230;219;116m}/[0m[38;2;255;255;255m$[0m[38;2;255;255;255mansi[0m[38;2;230;219;116m/g;[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mdone[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mt[0m[38;2;255;255;255m 1 [0m[38;2;102;217;239m][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m_PRINTC_PATTERN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_PRINTC_PATTERN_ANSI[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255m_PRINTC_PATTERN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_PRINTC_PATTERN_PLAIN[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mprint_warning[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mprintc[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{YELLOW}[%s warning]%{CLEAR}: [0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;230;219;116m%{CLEAR}\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m@[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mprint_error[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mprintc[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{RED}[%s error]%{CLEAR}: [0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;230;219;116m%{CLEAR}\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m@[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255mprintc_init[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m[DEFINE][0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114m<<[0m[38;2;249;38;114mEND[0m
|
||||||
|
[38;2;230;219;116m CLEAR \x1B[0m[0m
|
||||||
|
[38;2;230;219;116m RED \x1B[31m[0m
|
||||||
|
[38;2;230;219;116m GREEN \x1B[32m[0m
|
||||||
|
[38;2;230;219;116m YELLOW \x1B[33m[0m
|
||||||
|
[38;2;230;219;116m BLUE \x1B[34m[0m
|
||||||
|
[38;2;230;219;116m MAGENTA \x1B[35m[0m
|
||||||
|
[38;2;230;219;116m CYAN \x1B[36m[0m
|
||||||
|
|
||||||
|
[38;2;230;219;116m DEFAULT \x1B[39m[0m
|
||||||
|
[38;2;230;219;116m DIM \x1B[2m[0m
|
||||||
|
[38;2;249;38;114mEND[0m
|
||||||
|
[38;2;166;226;46mis_pager_less[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mpager_name[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mless[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mis_pager_disabled[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mpager_name[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mpager_name[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m_detect_pager[0m[38;2;255;255;255m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_SCRIPT_PAGER_NAME[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mpager_version[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m_detect_pager[0m[38;2;255;255;255m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_SCRIPT_PAGER_VERSION[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mpager_exec[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m@[0m[38;2;255;255;255m"[0m[38;2;249;38;114m|[0m[38;2;255;255;255mpager_display[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m@[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mpager_display[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mcat[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46m_detect_pager[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m_SCRIPT_PAGER_DETECTED[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mtrue[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m[38;2;255;255;255m [0m[38;2;249;38;114mreturn[0m[38;2;249;38;114m;[0m[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_DETECTED[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m{[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m[[0m[38;2;190;132;255m0[0m[38;2;255;255;255m][0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_VERSION[0m[38;2;249;38;114m=[0m[38;2;230;219;116m0[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_NAME[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255moutput[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255moutput1[0m
|
||||||
|
[38;2;255;255;255moutput[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m[[0m[38;2;190;132;255m0[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31mversion[0m[38;2;230;219;116m [0m[38;2;190;132;255m2[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m1[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255moutput1[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mhead[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31mn[0m[38;2;230;219;116m 1 [0m[38;2;249;38;114m<[0m[38;2;249;38;114m<[0m[38;2;249;38;114m<[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255moutput[0m[38;2;255;255;255m"[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255moutput1[0m[38;2;255;255;255m [0m[38;2;249;38;114m=~[0m[38;2;255;255;255m [0m[38;2;255;255;255m^less[0m[38;2;249;38;114m[[0m[38;2;249;38;114m[[0m[38;2;255;255;255m:[0m[38;2;255;255;255mblank[0m[38;2;255;255;255m:[0m[38;2;249;38;114m][0m[38;2;249;38;114m][0m[38;2;255;255;255m([0m[38;2;249;38;114m[[0m[38;2;249;38;114m[[0m[38;2;255;255;255m:[0m[38;2;255;255;255mdigit[0m[38;2;255;255;255m:[0m[38;2;249;38;114m][0m[38;2;249;38;114m][0m[38;2;255;255;255m+)[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_VERSION[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mBASH_REMATCH[0m[38;2;255;255;255m[[0m[38;2;190;132;255m1[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_NAME[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mless[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_VERSION[0m[38;2;249;38;114m=[0m[38;2;230;219;116m0[0m
|
||||||
|
[38;2;255;255;255m_SCRIPT_PAGER_NAME[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mbasename[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m[[0m[38;2;190;132;255m0[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46m_configure_pager[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m$[0m[38;2;255;255;255mPAGER[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m{[0m[38;2;255;255;255mBAT_PAGER[0m[38;2;249;38;114m+[0m[38;2;255;255;255mx[0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m$[0m[38;2;255;255;255mBAT_PAGER[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mreturn[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255mis_pager_less[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;255;255;255m[[0m[38;2;190;132;255m0[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m -R --quit-if-one-screen[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mpager_version[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mlt[0m[38;2;255;255;255m 500 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m--no-init[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mt[0m[38;2;255;255;255m 1 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m_configure_pager[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mSHIFTOPT_HOOKS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;166;226;46msetargs[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m_ARGV[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m@[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m_ARGV_LAST[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m(([0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;249;38;114m#[0m[38;2;255;255;255m_ARGV[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;249;38;114m-[0m[38;2;190;132;255m1[0m[38;2;230;219;116m))[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m_ARGV_INDEX[0m[38;2;249;38;114m=[0m[38;2;230;219;116m0[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mshiftopt[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m_ARGV_INDEX[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mgt[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m_ARGV_LAST[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;255;255;255mOPT[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m_ARGV[0m[38;2;255;255;255m[[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_ARGV_INDEX[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239munset[0m[38;2;255;255;255m OPT_VAL[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m [0m[38;2;249;38;114m=~[0m[38;2;255;255;255m [0m[38;2;255;255;255m^--[0m[38;2;249;38;114m[[0m[38;2;255;255;255ma[0m[38;2;249;38;114m-[0m[38;2;255;255;255mzA[0m[38;2;249;38;114m-[0m[38;2;255;255;255mZ0[0m[38;2;249;38;114m-[0m[38;2;255;255;255m9_-[0m[38;2;249;38;114m][0m[38;2;255;255;255m+=.[0m[38;2;249;38;114m*[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mOPT_VAL[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mOPT[0m[38;2;249;38;114m#[0m[38;2;249;38;114m*[0m[38;2;230;219;116m=[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mOPT[0m[38;2;249;38;114m%%[0m[38;2;230;219;116m=[0m[38;2;249;38;114m*[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m(([0m[38;2;255;255;255m_ARGV_INDEX[0m[38;2;249;38;114m++[0m[38;2;255;255;255m))[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mhook[0m
|
||||||
|
[38;2;249;38;114mfor[0m[38;2;255;255;255m hook [0m[38;2;249;38;114min[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSHIFTOPT_HOOKS[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mhook[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mshiftopt[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mdone[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mshiftval[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m{[0m[38;2;255;255;255mOPT_VAL[0m[38;2;249;38;114m+[0m[38;2;255;255;255mx[0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m [0m[38;2;249;38;114m=~[0m[38;2;255;255;255m [0m[38;2;255;255;255m^-[0m[38;2;249;38;114m[[0m[38;2;249;38;114m[[0m[38;2;255;255;255m:[0m[38;2;255;255;255malpha[0m[38;2;255;255;255m:[0m[38;2;249;38;114m][0m[38;2;249;38;114m][0m[38;2;249;38;114m[[0m[38;2;249;38;114m[[0m[38;2;255;255;255m:[0m[38;2;255;255;255mdigit[0m[38;2;255;255;255m:[0m[38;2;249;38;114m][0m[38;2;249;38;114m][0m[38;2;255;255;255m{[0m[38;2;255;255;255m1[0m[38;2;255;255;255m,[0m[38;2;255;255;255m}[0m[38;2;255;255;255m$[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mOPT_VAL[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mOPT[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mOPT_VAL[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255m_ARGV[0m[38;2;255;255;255m[[0m[38;2;255;255;255m$[0m[38;2;255;255;255m_ARGV_INDEX[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m(([0m[38;2;255;255;255m_ARGV_INDEX[0m[38;2;249;38;114m++[0m[38;2;255;255;255m))[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m [0m[38;2;249;38;114m=~[0m[38;2;255;255;255m [0m[38;2;255;255;255m-.[0m[38;2;249;38;114m*[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mprintc[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{RED}%s: '%s' requires a value%{CLEAR}\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mARG[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255msetargs[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m@[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;166;226;46mhook_color[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mSHIFTOPT_HOOKS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m__shiftopt_hook__color[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;166;226;46m__shiftopt_hook__color[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m--no-color[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--color[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255malways[0m[38;2;249;38;114m|[0m[38;2;255;255;255mtrue[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255mnever[0m[38;2;249;38;114m|[0m[38;2;255;255;255mfalse[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255mauto[0m[38;2;249;38;114m)[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mprintc[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{RED}%s: '--color' expects value of 'auto', 'always', or 'never'%{CLEAR}\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;255;255;255m}[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;255;255;255mprintc_init[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mt[0m[38;2;255;255;255m 1 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mOPT_COLOR[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mOPT_COLOR[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mprintc_init[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mhook_pager[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mSHIFTOPT_HOOKS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m__shiftopt_hook__pager[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;166;226;46m__shiftopt_hook__pager[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--no-pager[0m[38;2;249;38;114m)[0m[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m'[0m[38;2;255;255;255m'[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--paging[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255mauto[0m[38;2;249;38;114m)[0m[38;2;102;217;239m:[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255malways[0m[38;2;249;38;114m)[0m[38;2;102;217;239m:[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255mnever[0m[38;2;249;38;114m)[0m[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m'[0m[38;2;255;255;255m'[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mprintc[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{RED}%s: '--paging' expects value of 'auto', 'always', or 'never'%{CLEAR}\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;255;255;255m}[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--pager[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_CMD[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mPAGER_ARGS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255m}[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mhook_version[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mSHIFTOPT_HOOKS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m__shiftopt_hook__version[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;166;226;46m__shiftopt_hook__version[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m--version[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;102;217;239mprintf[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%s %s\n\n%s\n%s\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116m2020.10.04[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116mCopyright (C) 2019-2020 eth-p | MIT License[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116mhttps://github.com/eth-p/bat-extras[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mterm_width[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mwidth[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;230;219;116m{[0m[38;2;230;219;116m [0m[38;2;255;255;255mstty[0m[38;2;230;219;116m size [0m[38;2;190;132;255m2[0m[38;2;249;38;114m>[0m[38;2;230;219;116m/dev/null[0m[38;2;249;38;114m||[0m[38;2;102;217;239mecho[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m22 80[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;230;219;116m}[0m[38;2;249;38;114m|[0m[38;2;255;255;255mcut[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31md[0m[38;2;230;219;116m [0m[38;2;255;255;255m'[0m[38;2;230;219;116m [0m[38;2;255;255;255m'[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31mf2[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mwidth[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mne[0m[38;2;255;255;255m 0 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mwidth[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m80[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mhook_width[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mSHIFTOPT_HOOKS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m__shiftopt_hook__width[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;166;226;46m__shiftopt_hook__width[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m--terminal-width[0m[38;2;249;38;114m)[0m[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255mOPT_TERMINAL_WIDTH[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255mOPT_TERMINAL_WIDTH[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mterm_width[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mbat_version[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116mbat[0m[38;2;255;255;255m"[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31mversion[0m[38;2;249;38;114m|[0m[38;2;255;255;255mcut[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31md[0m[38;2;255;255;255m [0m[38;2;255;255;255m'[0m[38;2;230;219;116m [0m[38;2;255;255;255m'[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31mf[0m[38;2;255;255;255m 2[0m
|
||||||
|
[38;2;249;38;114mreturn[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mversion_compare[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mversion[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mcompare[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m3[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;249;38;114m![0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mversion[0m[38;2;255;255;255m [0m[38;2;249;38;114m=~[0m[38;2;255;255;255m [0m[38;2;190;132;255m\.[0m[38;2;255;255;255m$[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mversion[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mversion[0m[38;2;230;219;116m.[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;249;38;114m![0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mcompare[0m[38;2;255;255;255m [0m[38;2;249;38;114m=~[0m[38;2;255;255;255m [0m[38;2;190;132;255m\.[0m[38;2;255;255;255m$[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mcompare[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mcompare[0m[38;2;230;219;116m.[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mversion_compare__recurse[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mversion[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m2[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mcompare[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;166;226;46mversion_compare__recurse[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mversion[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255moperator[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m2[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mcompare[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m3[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mv_major[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mversion[0m[38;2;249;38;114m%%[0m[38;2;230;219;116m.[0m[38;2;249;38;114m*[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mc_major[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mcompare[0m[38;2;249;38;114m%%[0m[38;2;230;219;116m.[0m[38;2;249;38;114m*[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mv_minor[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mversion[0m[38;2;249;38;114m#[0m[38;2;249;38;114m*[0m[38;2;230;219;116m.[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mc_minor[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mcompare[0m[38;2;249;38;114m#[0m[38;2;249;38;114m*[0m[38;2;230;219;116m.[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_minor[0m[38;2;255;255;255m [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_minor[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;102;217;239m[[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255moperator[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m][0m
|
||||||
|
[38;2;249;38;114mreturn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_minor[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mv_minor[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m0.[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_minor[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mc_minor[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m0.[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255moperator[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m-eq[0m[38;2;249;38;114m)[0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mne[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-ne[0m[38;2;249;38;114m)[0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mne[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-ge[0m[38;2;249;38;114m|[0m[38;2;255;255;255m-gt[0m[38;2;249;38;114m)[0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mlt[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mgt[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-le[0m[38;2;249;38;114m|[0m[38;2;255;255;255m-lt[0m[38;2;249;38;114m)[0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mgt[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_major[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mlt[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_major[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;255;255;255mversion_compare__recurse[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mv_minor[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255moperator[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mc_minor[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255mhook_color[0m
|
||||||
|
[38;2;255;255;255mhook_pager[0m
|
||||||
|
[38;2;255;255;255mhook_version[0m
|
||||||
|
[38;2;255;255;255mhook_width[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mBAT_ARGS[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mPATTERN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mFILES[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mOPT_CASE_SENSITIVITY[0m[38;2;249;38;114m=[0m[38;2;255;255;255m'[0m[38;2;255;255;255m'[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m2[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;230;219;116m2[0m
|
||||||
|
[38;2;255;255;255mOPT_FOLLOW[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m
|
||||||
|
[38;2;255;255;255mOPT_SNIP[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_HIGHLIGHT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m
|
||||||
|
[38;2;255;255;255mOPT_SEARCH_PATTERN[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m
|
||||||
|
[38;2;255;255;255mOPT_FIXED_STRINGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m
|
||||||
|
[38;2;255;255;255mBAT_STYLE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mheader,numbers[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255mversion_compare[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mbat_version[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31mgt[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m0.12[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mOPT_SNIP[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m,snip[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mRIPGREP_CONFIG_PATH[0m[38;2;255;255;255m [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mRIPGREP_CONFIG_PATH[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mfor[0m[38;2;255;255;255m arg [0m[38;2;249;38;114min[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m([0m[38;2;255;255;255mcat[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mRIPGREP_CONFIG_PATH[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m[38;2;249;38;114m;[0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255marg[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m--context=[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mval[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255marg[0m[38;2;249;38;114m:[0m[38;2;190;132;255m10[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--before-context=[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mval[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255marg[0m[38;2;249;38;114m:[0m[38;2;190;132;255m17[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--after-context=[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mval[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255marg[0m[38;2;249;38;114m:[0m[38;2;190;132;255m16[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-C[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mval[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255marg[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-B[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mval[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255marg[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-A[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255mval[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255marg[0m[38;2;249;38;114m:[0m[38;2;190;132;255m2[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mval[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;249;38;114mdone[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mwhile[0m[38;2;255;255;255m [0m[38;2;255;255;255mshiftopt[0m[38;2;249;38;114m;[0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-i[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--ignore-case[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_CASE_SENSITIVITY[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m--ignore-case[0m[38;2;255;255;255m"[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-s[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--case-sensitive[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_CASE_SENSITIVITY[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m--case-sensitive[0m[38;2;255;255;255m"[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-S[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--smart-case[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_CASE_SENSITIVITY[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m--smart-case[0m[38;2;255;255;255m"[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-A[0m[38;2;249;38;114m*[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--after-context[0m[38;2;249;38;114m)[0m[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-B[0m[38;2;249;38;114m*[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--before-context[0m[38;2;249;38;114m)[0m[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-C[0m[38;2;249;38;114m*[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--context[0m[38;2;249;38;114m)[0m[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-F[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--fixed-strings[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_FIXED_STRINGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-U[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--multiline[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-P[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--pcre2[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-z[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--search-zip[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-w[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--word-regexp[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--one-file-system[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--multiline-dotall[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--ignore[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--no-ignore[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--crlf[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--no-crlf[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--hidden[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--no-hidden[0m[38;2;249;38;114m)[0m[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-E[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--encoding[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-g[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--glob[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-t[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--type[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-T[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--type-not[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-m[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--max-count[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--max-depth[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--iglob[0m[38;2;249;38;114m|[0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--ignore-file[0m[38;2;249;38;114m)[0m[38;2;255;255;255mshiftval[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--no-follow[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_FOLLOW[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--no-snip[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_SNIP[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--no-highlight[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_HIGHLIGHT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m-p[0m[38;2;249;38;114m|[0m[38;2;255;255;255m--search-pattern[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_SEARCH_PATTERN[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m--no-search-pattern[0m[38;2;249;38;114m)[0m[38;2;255;255;255mOPT_SEARCH_PATTERN[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m--rg:[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m{[0m[38;2;255;255;255mOPT[0m[38;2;249;38;114m:[0m[38;2;190;132;255m5[0m[38;2;249;38;114m:[0m[38;2;190;132;255m1[0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m-[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mOPT[0m[38;2;249;38;114m:[0m[38;2;190;132;255m5[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m--[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mOPT[0m[38;2;249;38;114m:[0m[38;2;190;132;255m5[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_VAL[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m-[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mprintc[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{RED}%s: unknown option '%s'%{CLEAR}\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mbatgrep[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;255;255;255m}[0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m\[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mPATTERN[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mPATTERN[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mFILES[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;249;38;114mesac[0m
|
||||||
|
[38;2;249;38;114mdone[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mPATTERN[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mprint_error[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mno pattern provided[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mSEP[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mprintc[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%{DIM}%[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mOPT_TERMINAL_WIDTH[0m[38;2;230;219;116m}[0m[38;2;230;219;116ms%{CLEAR}[0m[38;2;255;255;255m"[0m[38;2;249;38;114m|[0m[38;2;255;255;255msed[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;230;219;116ms/ /─/g[0m[38;2;255;255;255m"[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_CASE_SENSITIVITY[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_CASE_SENSITIVITY[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_FOLLOW[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mRG_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m--follow[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_COLOR[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mBAT_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m--color=always[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mBAT_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m--color=never[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_CONTEXT_BEFORE[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31meq[0m[38;2;255;255;255m 0 [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_CONTEXT_AFTER[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31meq[0m[38;2;255;255;255m 0 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mOPT_SNIP[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mOPT_HIGHLIGHT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_SEARCH_PATTERN[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255mis_pager_less[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_FIXED_STRINGS[0m[38;2;255;255;255m"[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m-p [0m[38;2;255;255;255m$'[0m[38;2;190;132;255m\x12[0m[38;2;255;255;255m'[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mPATTERN[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mSCRIPT_PAGER_ARGS[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m-p [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mPATTERN[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114melif[0m[38;2;255;255;255m [0m[38;2;255;255;255mis_pager_disabled[0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mprint_error[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%s %s %s[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116mThe -p/--search-pattern option requires a pager, but[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m'[0m[38;2;230;219;116mthe pager was explicitly disabled by $BAT_PAGER or the[0m[38;2;255;255;255m'[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116m--paging option.[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114melse[0m
|
||||||
|
[38;2;255;255;255mprint_error[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mUnsupported pager '%s' for option -p/--search-pattern[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mpager_name[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 1[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;166;226;46mmain[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255mFOUND_FILES[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mFOUND[0m[38;2;249;38;114m=[0m[38;2;230;219;116m0[0m
|
||||||
|
[38;2;255;255;255mFIRST_PRINT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtrue[0m
|
||||||
|
[38;2;255;255;255mLAST_LR[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mLAST_LH[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mLAST_FILE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m'[0m[38;2;255;255;255m'[0m
|
||||||
|
[38;2;166;226;46mdo_print[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mz[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mLAST_FILE[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 0[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mFIRST_PRINT[0m[38;2;255;255;255m"[0m[38;2;249;38;114m&&[0m[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mSEP[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mFIRST_PRINT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfalse[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;230;219;116mbat[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mBAT_ARGS[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mLAST_LR[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mLAST_LH[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[3;38;2;253;151;31m--[0m[3;38;2;253;151;31mstyle[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mBAT_STYLE[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_SNIP[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[3;38;2;253;151;31m--[0m[3;38;2;253;151;31mpaging[0m[38;2;249;38;114m=[0m[38;2;255;255;255mnever [0m[38;2;255;255;255m\[0m
|
||||||
|
[3;38;2;253;151;31m--[0m[3;38;2;253;151;31mterminal-width[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_TERMINAL_WIDTH[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mLAST_FILE[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mSEP[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;249;38;114mwhile[0m[38;2;255;255;255m [0m[38;2;255;255;255mIFS[0m[38;2;255;255;255m=[0m[38;2;255;255;255m'[0m[38;2;230;219;116m:[0m[38;2;255;255;255m'[0m[38;2;255;255;255m read[0m[3;38;2;253;151;31m -[0m[3;38;2;253;151;31mr[0m[38;2;255;255;255m file line column text[0m[38;2;249;38;114m;[0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;255;255;255m(([0m[38;2;255;255;255mFOUND[0m[38;2;249;38;114m++[0m[38;2;255;255;255m))[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mLAST_FILE[0m[38;2;255;255;255m [0m[38;2;249;38;114m!=[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mfile[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255mdo_print[0m
|
||||||
|
[38;2;255;255;255mLAST_FILE[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mfile[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255mLAST_LR[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mLAST_LH[0m[38;2;249;38;114m=[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255mline_start[0m[38;2;249;38;114m=[0m[38;2;255;255;255m$[0m[38;2;230;219;116m(([0m[38;2;230;219;116mline[0m[38;2;249;38;114m-[0m[38;2;230;219;116mOPT_CONTEXT_BEFORE[0m[38;2;230;219;116m))[0m
|
||||||
|
[38;2;255;255;255mline_end[0m[38;2;249;38;114m=[0m[38;2;255;255;255m$[0m[38;2;230;219;116m(([0m[38;2;230;219;116mline[0m[38;2;249;38;114m+[0m[38;2;230;219;116mOPT_CONTEXT_AFTER[0m[38;2;230;219;116m))[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mline_start[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mgt[0m[38;2;255;255;255m 0 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m||[0m[38;2;255;255;255mline_start[0m[38;2;249;38;114m=[0m[38;2;255;255;255m'[0m[38;2;255;255;255m'[0m
|
||||||
|
[38;2;255;255;255mLAST_LR[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m--line-range=[0m[38;2;255;255;255m$[0m[38;2;255;255;255mline_start[0m[38;2;230;219;116m:[0m[38;2;255;255;255m$[0m[38;2;255;255;255mline_end[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mOPT_HIGHLIGHT[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mtrue[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m]][0m[38;2;249;38;114m&&[0m[38;2;255;255;255mLAST_LH[0m[38;2;249;38;114m+=[0m[38;2;255;255;255m([0m[38;2;255;255;255m"[0m[38;2;230;219;116m--highlight-line=[0m[38;2;255;255;255m$[0m[38;2;255;255;255mline[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;249;38;114mdone[0m[38;2;255;255;255m [0m[38;2;249;38;114m<[0m[38;2;255;255;255m [0m[38;2;249;38;114m<[0m[38;2;255;255;255m([0m[38;2;255;255;255mrg[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31mwith-filename[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31mvimgrep[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mRG_ARGS[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31mcontext[0m[38;2;249;38;114m=[0m[38;2;255;255;255m0[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31mno-context-separator[0m[3;38;2;253;151;31m --[0m[3;38;2;253;151;31msort[0m[38;2;255;255;255m path [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mPATTERN[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mFILES[0m[38;2;255;255;255m[[0m[38;2;255;255;255m@[0m[38;2;255;255;255m][0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255mdo_print[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mFOUND[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31meq[0m[38;2;255;255;255m 0 [0m[38;2;102;217;239m]][0m[38;2;249;38;114m;[0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m 2[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
[38;2;255;255;255mpager_exec[0m[38;2;255;255;255m main[0m
|
||||||
|
[38;2;102;217;239mexit[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
[3;38;2;124;120;101m#[0m[3;38;2;124;120;101m!/usr/bin/env bash[0m
|
||||||
|
[3;38;2;102;217;239mfunction[0m[38;2;255;255;255m [0m[38;2;166;226;46mincompatible_function[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239m:[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46mcompatible_function[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;255;255;255m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;249;38;114m![0m[38;2;255;255;255m [0m[38;2;102;217;239m[[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255m1[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114m==[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116myes[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;102;217;239m][0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mreturn[0m[38;2;255;255;255m 3[0m[38;2;249;38;114m;[0m[38;2;102;217;239m:[0m[38;2;249;38;114m;[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mfi[0m
|
||||||
|
[38;2;255;255;255m [0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m([0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239mexec[0m[38;2;255;255;255m [0m[38;2;190;132;255m3[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m1[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mfinished! [0m[38;2;255;255;255m$[0m[38;2;255;255;255m@[0m[38;2;230;219;116m? [0m[38;2;255;255;255m$[0m[38;2;255;255;255m*[0m[38;2;230;219;116m.[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114m>&[0m[38;2;190;132;255m3[0m[38;2;255;255;255m [0m[38;2;255;255;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mcat[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mbat[0m[38;2;255;255;255m -[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mcat[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239mexit[0m[38;2;255;255;255m 4[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m)[0m[38;2;255;255;255m [0m[38;2;249;38;114m||[0m[38;2;255;255;255m [0m[38;2;102;217;239mexit[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239mcommand[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mv[0m[38;2;255;255;255m bat [0m[38;2;249;38;114m&>[0m[38;2;255;255;255m /dev/null[0m[38;2;249;38;114m;[0m[38;2;255;255;255m [0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;230;219;116m1[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239mprintf[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m%s...\n[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;102;217;239mecho[0m[38;2;230;219;116m some text[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mwhile[0m[38;2;255;255;255m [0m[38;2;255;255;255mtrue[0m[38;2;249;38;114m;[0m[38;2;255;255;255m [0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mvar[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255m{[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mvar[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31meq[0m[38;2;255;255;255m 1 [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m ( true [0m[38;2;249;38;114m||[0m[38;2;255;255;255m false ) [0m[38;2;102;217;239m]][0m[38;2;255;255;255m [0m[38;2;249;38;114m||[0m[38;2;255;255;255m [0m[38;2;255;255;255mfalse[0m[38;2;255;255;255m [0m[38;2;190;132;255m2[0m[38;2;249;38;114m>&[0m[38;2;190;132;255m1[0m[38;2;255;255;255m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m>[0m[38;2;255;255;255m /dev/null[0m[38;2;249;38;114m;[0m[38;2;255;255;255m [0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;249;38;114m&>[0m[38;2;255;255;255m /dev/null[0m[38;2;249;38;114m;[0m[38;2;255;255;255m [0m[38;2;249;38;114mthen[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m[38;2;255;255;255mcat[0m[38;2;230;219;116m [0m[38;2;249;38;114m<<<[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mtwo[0m[38;2;255;255;255m"[0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mcontinue[0m[38;2;255;255;255m [0m[38;2;255;255;255m1[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mfi[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mcase[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mvar[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;249;38;114min[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mtwo[0m[38;2;255;255;255m"[0m[38;2;249;38;114m)[0m[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mthree[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mthree[0m[38;2;249;38;114m)[0m[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mfour[0m[38;2;255;255;255m"[0m[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mfo[0m[38;2;249;38;114m*[0m[38;2;255;255;255mr[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;230;219;116mfive[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mfi[0m[38;2;255;255;255m"[0m[38;2;255;255;255mve[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m([0m
|
||||||
|
[38;2;230;219;116m [0m[38;2;255;255;255mcat[0m[38;2;230;219;116m [0m[38;2;249;38;114m<<[0m[38;2;230;219;116m [0m[38;2;249;38;114mEND[0m
|
||||||
|
[38;2;230;219;116msix > [0m[38;2;255;255;255m$[0m[38;2;255;255;255mvar[0m
|
||||||
|
[38;2;249;38;114mEND[0m
|
||||||
|
[38;2;230;219;116m [0m[38;2;230;219;116m)[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m$'[0m[38;2;230;219;116msix[0m[38;2;190;132;255m\n[0m[38;2;255;255;255m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;249;38;114m*[0m[38;2;255;255;255msix[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239mecho[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116m?[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mseven[0m[38;2;249;38;114m=[0m[38;2;230;219;116mseven[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mwhile[0m[38;2;255;255;255m [0m[38;2;102;217;239mread[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mr[0m[38;2;255;255;255m line[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;255;255;255m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mline[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mdone[0m[38;2;255;255;255m [0m[38;2;249;38;114m<<[0m[38;2;230;219;116m [0m[38;2;255;255;255m"[0m[38;2;249;38;114mHEREDOC[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;230;219;116m1[0m
|
||||||
|
[38;2;230;219;116m2[0m
|
||||||
|
[38;2;230;219;116m$seven[0m
|
||||||
|
[38;2;249;38;114mHEREDOC[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114m*[0m[38;2;255;255;255m'[0m[38;2;230;219;116msev[0m[38;2;255;255;255m'[0m[38;2;249;38;114m*[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mexport[0m[38;2;255;255;255m [0m[38;2;255;255;255mvar[0m[38;2;249;38;114m=[0m[38;2;230;219;116meight[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;102;217;239munset[0m[38;2;255;255;255m var[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m'[0m[38;2;255;255;255m'[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m{[0m[38;2;255;255;255m [0m[38;2;255;255;255mincompatible_function[0m[38;2;255;255;255m [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m [0m[38;2;255;255;255mfalse[0m[38;2;249;38;114m;[0m[38;2;255;255;255m [0m[38;2;255;255;255m}[0m[38;2;255;255;255m [0m[38;2;249;38;114m||[0m[38;2;255;255;255m [0m[38;2;255;255;255mcompatible_function[0m[38;2;255;255;255m [0m[38;2;255;255;255m"[0m[38;2;230;219;116myes[0m[38;2;255;255;255m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mbreak[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m;;[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mesac[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mcontinue[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mdone[0m
|
||||||
|
[38;2;249;38;114mfi[0m
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114mecho[0m[38;2;248;248;242m off[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Change to your LLVM installation[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mLLVMPath[0m[38;2;249;38;114m=[0m[38;2;230;219;116mC:\Program Files\LLVM[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Change to your Visual Studio 2017 installation[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mVSPath[0m[38;2;249;38;114m=[0m[38;2;230;219;116mC:\Program Files [0m[38;2;230;219;116m([0m[38;2;230;219;116mx86[0m[38;2;230;219;116m)[0m[38;2;230;219;116m\Microsoft Visual Studio\[0m[38;2;190;132;255m2017[0m[38;2;230;219;116m\Community[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mVSVersion[0m[38;2;249;38;114m=[0m[38;2;190;132;255m14[0m[38;2;230;219;116m.[0m[38;2;190;132;255m10[0m[38;2;230;219;116m.[0m[38;2;190;132;255m25017[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Change to your Windows Kit version & installation[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;249;38;114m=[0m[38;2;190;132;255m10[0m[38;2;230;219;116m.[0m[38;2;190;132;255m0[0m[38;2;230;219;116m.[0m[38;2;190;132;255m15063[0m[38;2;230;219;116m.[0m[38;2;190;132;255m0[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mWinSDKPath[0m[38;2;249;38;114m=[0m[38;2;230;219;116mC:\Program Files [0m[38;2;230;219;116m([0m[38;2;230;219;116mx86[0m[38;2;230;219;116m)[0m[38;2;230;219;116m\Windows Kits\[0m[38;2;190;132;255m10[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Change this to your resulting exe[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mOUTPUT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtest.exe[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Setup[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mVSBasePath[0m[38;2;249;38;114m=[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\VC\Tools\MSVC\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mPATH[0m[38;2;249;38;114m=[0m[38;2;255;255;255m%[0m[38;2;255;255;255mPATH[0m[38;2;255;255;255m%[0m[38;2;230;219;116m;[0m[38;2;255;255;255m%[0m[38;2;255;255;255mLLVMPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\bin;[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSBasePath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\bin\HostX64\x64[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Compiler Flags[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mCFLAGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
|
||||||
|
[38;2;248;248;242m -std=c++[0m[38;2;190;132;255m14[0m[38;2;248;248;242m -Wall -Wextra[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mCPPFLAGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
|
||||||
|
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSBasePath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\include[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Include\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\shared[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Include\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\ucrt[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Include\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\um[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Linker Libs[0m
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mLDFLAGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
|
||||||
|
[38;2;248;248;242m -machine:x64 [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -nodefaultlib [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -subsystem:console[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mLDLIBS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
|
||||||
|
[38;2;248;248;242m -libpath:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSBasePath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\lib\x64[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -libpath:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Lib\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\ucrt\x64[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m -libpath:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Lib\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\um\x64[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m libucrt.lib libvcruntime.lib libcmt.lib libcpmt.lib [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m legacy_stdio_definitions.lib oldnames.lib [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m legacy_stdio_wide_specifiers.lib [0m[38;2;190;132;255m^[0m
|
||||||
|
[38;2;248;248;242m kernel32.lib User32.lib[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Compiling[0m
|
||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114mecho[0m[38;2;248;248;242m on[0m
|
||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;190;132;255m%%[0m[38;2;248;248;242mf in [0m[38;2;248;248;242m([0m[38;2;248;248;242m*.cc[0m[38;2;248;248;242m)[0m[38;2;248;248;242m do [0m[38;2;248;248;242m([0m
|
||||||
|
[38;2;248;248;242m clang++.exe [0m[38;2;230;219;116m"[0m[38;2;190;132;255m%%[0m[38;2;230;219;116m~f[0m[38;2;230;219;116m"[0m[38;2;248;248;242m -o [0m[38;2;230;219;116m"[0m[38;2;190;132;255m%%[0m[38;2;230;219;116m~nf.o[0m[38;2;230;219;116m"[0m[38;2;248;248;242m -c [0m[38;2;255;255;255m%[0m[38;2;255;255;255mCFLAGS[0m[38;2;255;255;255m%[0m
|
||||||
|
[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m::[0m[38;2;117;113;94m Linking[0m
|
||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mLINK_FILES[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;190;132;255m%%[0m[38;2;248;248;242mf in [0m[38;2;248;248;242m([0m[38;2;248;248;242m*.o[0m[38;2;248;248;242m)[0m[38;2;248;248;242m do [0m[38;2;248;248;242m([0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mLINK_FILES[0m[38;2;249;38;114m=[0m[38;2;255;255;255m%[0m[38;2;255;255;255mLINK_FILES[0m[38;2;255;255;255m%[0m[38;2;230;219;116m [0m[38;2;190;132;255m%%[0m[38;2;230;219;116m~f[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mlld-link.exe [0m[38;2;255;255;255m%[0m[38;2;255;255;255mLINK_FILES[0m[38;2;255;255;255m%[0m[38;2;248;248;242m -out:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mOUTPUT[0m[38;2;255;255;255m%[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;255;255;255m%[0m[38;2;255;255;255mLDFLAGS[0m[38;2;255;255;255m%[0m[38;2;248;248;242m [0m[38;2;255;255;255m%[0m[38;2;255;255;255mLDLIBS[0m[38;2;255;255;255m%[0m
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114mbook[0m[38;2;248;248;242m{[0m[38;2;166;226;46mknuth1997art[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mtitle[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mThe art of computer programming[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mauthor[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mKnuth, Donald Ervin[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mvolume[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116m3[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116myear[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116m1997[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mpublisher[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mPearson Education[0m[38;2;230;219;116m}[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114m@[0m[38;2;249;38;114marticle[0m[38;2;248;248;242m{[0m[38;2;166;226;46megholm1993pna[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mtitle[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mPNA hybridizes to complementary oligonucleotides obeying the Watson--Crick hydrogen-bonding rules[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mauthor[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mEgholm, Michael and Buchardt, Ole and Christensen, Leif and Behrens, Carsten and Freier, Susan M and Driver, David A and Berg, Rolf H and Kim, Seog K and Norden, Bengt and Nielsen, Peter E[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mjournal[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mNature[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mvolume[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116m365[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mnumber[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116m6446[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mpages[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116m566--568[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116myear[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116m1993[0m[38;2;230;219;116m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116mpublisher[0m[38;2;248;248;242m=[0m[38;2;230;219;116m{[0m[38;2;230;219;116mSpringer[0m[38;2;230;219;116m}[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
[3;38;2;102;217;239mnamespace[0m[38;2;248;248;242m [0m[38;2;166;226;46mStackImplementation[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114minternal[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mclass[0m[38;2;248;248;242m [0m[4;38;2;102;217;239mStack[0m[38;2;248;248;242m<[0m[3;38;2;166;226;46mT[0m[38;2;248;248;242m>[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mprivate[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;255;255;255m_top[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mprivate[0m[38;2;248;248;242m [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;255;255;255mCapacity[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m4[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mprivate[0m[38;2;248;248;242m [0m[38;2;249;38;114mreadonly[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mT[0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;255;255;255m_stack[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114mnew[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mT[0m[38;2;248;248;242m[[0m[38;2;255;255;255mCapacity[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[38;2;166;226;46mStack[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_top[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mprivate[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbool[0m[38;2;248;248;242m [0m[38;2;166;226;46mIsEmpty[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;255;255;255m_top[0m[38;2;248;248;242m [0m[38;2;249;38;114m<[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mprivate[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbool[0m[38;2;248;248;242m [0m[38;2;166;226;46mIsFull[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;255;255;255m_top[0m[38;2;248;248;242m [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;255;255;255mCapacity[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mPeek[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mSystem[0m[38;2;248;248;242m.[0m[38;2;255;255;255mConsole[0m[38;2;248;248;242m.[0m[38;2;248;248;242mWriteLine[0m[38;2;248;248;242m([0m[38;2;249;38;114m![0m[38;2;248;248;242mIsEmpty[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;230;219;116m$"[0m[38;2;230;219;116mThe topmost element is: [0m[38;2;248;248;242m{[0m[38;2;255;255;255m_stack[0m[38;2;248;248;242m[[0m[38;2;255;255;255m_top[0m[38;2;248;248;242m][0m[38;2;248;248;242m}[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mThe stack is empty.[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mT[0m[38;2;248;248;242m [0m[38;2;166;226;46mPop[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;249;38;114m![0m[38;2;248;248;242mIsEmpty[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;255;255;255m_stack[0m[38;2;248;248;242m[[0m[38;2;255;255;255m_top[0m[38;2;249;38;114m-[0m[38;2;249;38;114m-[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;249;38;114mdefault[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mPush[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mT[0m[38;2;248;248;242m [0m[3;38;2;253;151;31melement[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114m![0m[38;2;248;248;242mIsFull[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_stack[0m[38;2;248;248;242m[[0m[38;2;249;38;114m+[0m[38;2;249;38;114m+[0m[38;2;255;255;255m_top[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255melement[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mSystem[0m[38;2;248;248;242m.[0m[38;2;255;255;255mConsole[0m[38;2;248;248;242m.[0m[38;2;248;248;242mWriteLine[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mCannot push - the stack is full.[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mpublic[0m[38;2;248;248;242m [0m[38;2;249;38;114moverride[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mstring[0m[38;2;248;248;242m [0m[38;2;166;226;46mToString[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mIsEmpty[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mThe stack is empty.[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mvar[0m[38;2;248;248;242m [0m[38;2;255;255;255mdepiction[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mvar[0m[38;2;248;248;242m [0m[38;2;255;255;255mindex[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;255;255;255mindex[0m[38;2;248;248;242m [0m[38;2;249;38;114m<[0m[38;2;248;248;242m [0m[38;2;255;255;255m_top[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;255;255;255mindex[0m[38;2;249;38;114m+[0m[38;2;249;38;114m+[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mdepiction[0m[38;2;248;248;242m [0m[38;2;249;38;114m+=[0m[38;2;248;248;242m [0m[38;2;255;255;255m_stack[0m[38;2;248;248;242m[[0m[38;2;255;255;255mindex[0m[38;2;248;248;242m][0m[38;2;248;248;242m.[0m[38;2;248;248;242mToString[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m' '[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mdepiction[0m[38;2;248;248;242m [0m[38;2;249;38;114m+=[0m[38;2;248;248;242m [0m[38;2;255;255;255m_stack[0m[38;2;248;248;242m[[0m[38;2;255;255;255m_top[0m[38;2;248;248;242m][0m[38;2;248;248;242m.[0m[38;2;248;248;242mToString[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;230;219;116m$"[0m[38;2;230;219;116mStack: [[0m[38;2;248;248;242m{[0m[38;2;255;255;255mdepiction[0m[38;2;248;248;242m}[0m[38;2;230;219;116m][0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116mstdio.h[0m[38;2;230;219;116m>[0m
|
||||||
|
[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116mstdlib.h[0m[38;2;230;219;116m>[0m
|
||||||
|
[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116mstdbool.h[0m[38;2;230;219;116m>[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mtest_function[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;249;38;114m#define[0m[38;2;190;132;255m [0m[38;2;166;226;46mTEST[0m
|
||||||
|
[38;2;249;38;114m#ifdef[0m[38;2;190;132;255m TEST[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mprintf[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mTEST is defined[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;249;38;114m#endif[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m [0m[38;2;166;226;46mNode[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m val[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m [0m[38;2;166;226;46mNode[0m[38;2;248;248;242m *next[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[3;38;2;253;151;31margc[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mchar[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;249;38;114m*[0m[3;38;2;253;151;31margv[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m This C program was written to help bat[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*[0m[38;2;117;113;94m with its syntax highlighting tests[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*/[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m Calling test function[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mtest_function[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m Node [0m[38;2;249;38;114m*[0m[38;2;248;248;242mhead [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mNULL[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m head [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m Node [0m[38;2;249;38;114m*[0m[38;2;248;248;242m)[0m[38;2;102;217;239mmalloc[0m[38;2;248;248;242m([0m[38;2;249;38;114msizeof[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m Node [0m[38;2;249;38;114m*[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m head[0m[38;2;248;248;242m->[0m[38;2;248;248;242mval [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mhead[0m[38;2;248;248;242m->[0m[38;2;248;248;242mval [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m head[0m[38;2;248;248;242m->[0m[38;2;248;248;242mval [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m10[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m head[0m[38;2;248;248;242m->[0m[38;2;248;248;242mval [0m[38;2;249;38;114m=[0m[38;2;248;248;242m argc[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m t [0m[38;2;249;38;114m=[0m[38;2;248;248;242m head[0m[38;2;248;248;242m->[0m[38;2;248;248;242mval[0m[38;2;248;248;242m,[0m[38;2;248;248;242m count [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mfree[0m[38;2;248;248;242m([0m[38;2;248;248;242mhead[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhile[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mt[0m[38;2;249;38;114m--[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m count[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m t[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m count[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;249;38;114m++[0m[38;2;248;248;242mi[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m--[0m[38;2;248;248;242mcount[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114mwhile[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255mfalse[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239menum[0m[38;2;248;248;242m [0m[38;2;166;226;46mchars[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m M[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m I[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m T[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m H[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m L[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mchar[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242mstring [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mstring[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239mprintf[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mtrue is #define true [0m[38;2;190;132;255m%d[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m This is a file for testing syntax highlighting.[0m
|
||||||
|
[38;2;102;217;239mcmake_minimum_required[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mVERSION[0m[38;2;248;248;242m [0m[38;2;248;248;242m3.13[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;102;217;239mproject[0m[38;2;248;248;242m([0m[38;2;248;248;242mhello-bat[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mVERSION[0m[38;2;248;248;242m [0m[38;2;248;248;242m0.0.1[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mLANGUAGES[0m[38;2;248;248;242m [0m[38;2;248;248;242mC[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239mset[0m[38;2;248;248;242m([0m[38;2;255;255;255mSOURCE_DIR[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mCMAKE_CURRENT_SOURCE_DIR[0m[38;2;230;219;116m}[0m[38;2;230;219;116m/src/[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;102;217;239mfile[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mGLOB_RECURSE[0m[38;2;248;248;242m [0m[38;2;248;248;242mSOURCES[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mSOURCE_DIR[0m[38;2;230;219;116m}[0m[38;2;230;219;116m/*.c[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239madd_executable[0m[38;2;248;248;242m([0m[38;2;248;248;242mhello-bat[0m[38;2;248;248;242m [0m[38;2;248;248;242mSOURCES[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239mfind_package[0m[38;2;248;248;242m([0m[38;2;248;248;242massimp[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mCONFIG[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;102;217;239mtarget_link_libraries[0m[38;2;248;248;242m([0m[38;2;248;248;242mhello-bat[0m[38;2;248;248;242m [0m[38;2;248;248;242massimp[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;102;217;239moption[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mENABLE_TESTS[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;248;248;242mOFF[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mif[0m[38;2;248;248;242m([0m[38;2;248;248;242mENABLE_TESTS[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239madd_subdirectory[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;255;255;255m$[0m[38;2;230;219;116m{[0m[38;2;255;255;255mCMAKE_CURRENT_SOURCE_DIR[0m[38;2;230;219;116m}[0m[38;2;230;219;116m/tests/[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mendif[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94mScrolling[0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;249;38;114mhtml[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mscroll-behavior[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239msmooth[0m[38;2;255;255;255m;[0m[38;2;248;248;242m [0m[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94mHeader text[0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;166;226;46m.[0m[38;2;166;226;46mjumbotron[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mbackground-image[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mlinear-gradient[0m[38;2;255;255;255m([0m[38;2;190;132;255m90[0m[38;2;249;38;114mdeg[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m849EB5[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m30394A[0m[38;2;255;255;255m)[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mpadding-bottom[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m20[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mpadding-top[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m20[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mtext-shadow[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114mpx[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;249;38;114mpx[0m[38;2;248;248;242m [0m[38;2;190;132;255m4[0m[38;2;249;38;114mpx[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m000000[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46m.[0m[38;2;166;226;46mcontainer[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mmargin-top[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m-25[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94mBackground related[0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;249;38;114mbody[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mbackground[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m161616[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94mText related CSS[0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;249;38;114mh4[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m70[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mFFFFFF[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mh3[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255me5e5e5[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mp[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m17[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mDEDEDE[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mp2 [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m24[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mDEDEDE[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mdate [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-style[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mitalic[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m17[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mDEDEDE[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mjobtitle [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m17[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-weight[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mDEDEDE[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mjobtilenolink [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m17[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-weight[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mDEDEDE[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mli[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mfont-family[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mNews Cycle[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;102;217;239mserif[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255mDEDEDE[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114ma[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4A8ECC[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mp[0m[38;2;248;248;242m [0m[38;2;249;38;114ma[0m[38;2;166;226;46m:[0m[38;2;166;226;46mvisited[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4A8ECC[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46m.[0m[38;2;166;226;46mhref[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4A8ECC[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114ma[0m[38;2;166;226;46m:[0m[38;2;166;226;46mvisited[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4A8ECC[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mp[0m[38;2;248;248;242m [0m[38;2;249;38;114ma[0m[38;2;166;226;46m:[0m[38;2;166;226;46mhover[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4FB1F4[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114ma[0m[38;2;166;226;46m:[0m[38;2;166;226;46mhover[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4FB1F4[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mjobtitle[0m[38;2;166;226;46m:[0m[38;2;166;226;46mhover[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m4FB1F4[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94mSection[0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;249;38;114msection[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mbackground-color[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m1B1B1B[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mpadding[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m20[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mmargin[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m-5[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mmargin-bottom[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m30[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mbox-shadow[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114mpx[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;249;38;114mpx[0m[38;2;248;248;242m [0m[38;2;190;132;255m4[0m[38;2;249;38;114mpx[0m[38;2;248;248;242m [0m[38;2;102;217;239mrgba[0m[38;2;255;255;255m([0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;190;132;255m.[0m[38;2;190;132;255m3[0m[38;2;255;255;255m)[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94mIcon related[0m[38;2;117;113;94m*/[0m
|
||||||
|
[38;2;166;226;46m.[0m[38;2;166;226;46micon[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mposition[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mrelative[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mtop[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mright[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m5[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m
|
||||||
|
[38;2;255;255;255m}[0m
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[3;38;2;102;217;239mfirst[0m[38;2;249;38;114m,[0m[3;38;2;102;217;239mlast[0m[38;2;249;38;114m,[0m[3;38;2;102;217;239maddress[0m[38;2;249;38;114m,[0m[3;38;2;102;217;239mcity[0m[38;2;249;38;114m,[0m[3;38;2;102;217;239mzip[0m
|
||||||
|
[3;38;2;102;217;239mJohn[0m[38;2;249;38;114m,[0m[3;38;2;102;217;239mDoe[0m[38;2;249;38;114m,[0m[38;2;190;132;255m120[0m[38;2;248;248;242m [0m[3;38;2;102;217;239many[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mst.[0m[38;2;249;38;114m,[0m[38;2;230;219;116m"[0m[3;38;2;102;217;239mAnytown[0m[38;2;249;38;114m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mWW[0m[38;2;230;219;116m"[0m[38;2;249;38;114m,[0m[38;2;190;132;255m08123[0m
|
||||||
|
[3;38;2;102;217;239ma[0m[38;2;249;38;114m,[0m[3;38;2;102;217;239mb[0m
|
||||||
|
[38;2;190;132;255m1[0m[38;2;249;38;114m,[0m[38;2;230;219;116m"[0m[3;38;2;102;217;239mha[0m[38;2;248;248;242m [0m
|
||||||
|
[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m[3;38;2;102;217;239mha[0m[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m
|
||||||
|
[3;38;2;102;217;239mha[0m[38;2;230;219;116m"[0m[38;2;249;38;114m,[0m[38;2;190;132;255m120[0m[38;2;248;248;242m [0m[3;38;2;102;217;239many[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mst.[0m[38;2;249;38;114m,[0m[38;2;230;219;116m"[0m[3;38;2;102;217;239mAnytown[0m[38;2;249;38;114m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mWW[0m[38;2;230;219;116m"[0m[38;2;249;38;114m,[0m[38;2;190;132;255m08123[0m
|
||||||
|
[38;2;190;132;255m3[0m[38;2;249;38;114m,[0m[38;2;190;132;255m4[0m[38;2;249;38;114m,[0m[38;2;190;132;255m120[0m[38;2;248;248;242m [0m[3;38;2;102;217;239many[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mst.[0m[38;2;249;38;114m,[0m[38;2;230;219;116m"[0m[3;38;2;102;217;239mAnytown[0m[38;2;249;38;114m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mWW[0m[38;2;230;219;116m"[0m[38;2;249;38;114m,[0m[38;2;190;132;255m08123[0m
|
||||||
|
Can't render this file because it contains an unexpected character in line 2 and column 276.
|
@@ -0,0 +1,58 @@
|
|||||||
|
[38;2;248;248;242m([0m[38;2;248;248;242mns[0m[38;2;248;248;242m clojure-sample.core[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255m:[0m[38;2;190;132;255mgen-class[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mrequire[0m[38;2;248;248;242m [0m[38;2;249;38;114m'[0m[38;2;248;248;242m[[0m[38;2;248;248;242mclj-time.core [0m[38;2;190;132;255m:[0m[38;2;190;132;255mas[0m[38;2;248;248;242m t[0m[38;2;248;248;242m][0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mrequire[0m[38;2;248;248;242m [0m[38;2;249;38;114m'[0m[38;2;248;248;242m[[0m[38;2;248;248;242mclj-time.format [0m[38;2;190;132;255m:[0m[38;2;190;132;255mas[0m[38;2;248;248;242m f[0m[38;2;248;248;242m][0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m Product record[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mdefrecord[0m[38;2;248;248;242m [0m[38;2;166;226;46mProduct[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242mid name available price[0m[38;2;248;248;242m][0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m Positional constructor[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mproduct1[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m->Product[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m1[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mT-Shirt 1[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m [0m[38;2;190;132;255m15[0m[38;2;190;132;255m.[0m[38;2;190;132;255m00[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m Map constructor[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mproduct2[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mmap->Product[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;190;132;255m:[0m[38;2;190;132;255mid[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m2[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mname[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mT-Shirt 2[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mavailable[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mprice[0m[38;2;248;248;242m [0m[38;2;190;132;255m20[0m[38;2;190;132;255m.[0m[38;2;190;132;255m00[0m[38;2;248;248;242m}[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m Nested[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mproduct3[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;190;132;255m:[0m[38;2;190;132;255mid[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m1[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mname[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mProduct 1[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mavailable[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255msellers[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242m{[0m[38;2;190;132;255m:[0m[38;2;190;132;255mid[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m1[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mname[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mSeller 1[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mstock[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m}[0m[38;2;117;113;94m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;190;132;255m:[0m[38;2;190;132;255mid[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mname[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mSeller 2[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mstock[0m[38;2;248;248;242m [0m[38;2;190;132;255m5[0m[38;2;248;248;242m}[0m[38;2;248;248;242m][0m[38;2;248;248;242m}[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m Set[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mcategories[0m[38;2;248;248;242m [0m[38;2;248;248;242m#{[0m[38;2;230;219;116m"[0m[38;2;230;219;116mshirts[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mshoes[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mbelts[0m[38;2;230;219;116m"[0m[38;2;248;248;242m}[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m List[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mwishlist[0m[38;2;248;248;242m [0m[38;2;249;38;114m'[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m;;[0m[38;2;117;113;94m Recursion[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdefn[0m[38;2;248;248;242m [0m[38;2;166;226;46mfactorial[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242mvalue[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mcond[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m<=[0m[38;2;248;248;242m value [0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m*[0m[38;2;248;248;242m value [0m[38;2;248;248;242m([0m[38;2;248;248;242mfactorial[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m-[0m[38;2;248;248;242m value [0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mbasic-formatter[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mf/formatter[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mYYYY-MM-dd hh:mm:ss[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdefn[0m[38;2;248;248;242m [0m[38;2;166;226;46mnow[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mf/unparse[0m[38;2;248;248;242m basic-formatter [0m[38;2;248;248;242m([0m[38;2;248;248;242mt/now[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdefn[0m[38;2;248;248;242m [0m[38;2;166;226;46mlog[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mnow[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mNo message[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m[[0m[38;2;248;248;242mmessage[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mnow[0m[38;2;248;248;242m)[0m[38;2;248;248;242m message[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114mdefn[0m[38;2;248;248;242m [0m[38;2;166;226;46m-main[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242m& args[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255m:[0m[38;2;190;132;255mid[0m[38;2;248;248;242m product1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255m:[0m[38;2;190;132;255mname[0m[38;2;248;248;242m product2[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255m:[0m[38;2;190;132;255mname[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mget[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255m:[0m[38;2;190;132;255msellers[0m[38;2;248;248;242m product3[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mfirst[0m[38;2;248;248;242m categories[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m wishlist[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mprintln[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mfactorial[0m[38;2;248;248;242m [0m[38;2;190;132;255m5[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mlog[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mlog[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mMessage[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116mbits/stdc++.h[0m[38;2;230;219;116m>[0m[38;2;190;132;255m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m includes most of the useful libraries[0m
|
||||||
|
[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mmainwindow.h[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114musing[0m[38;2;248;248;242m [0m[38;2;249;38;114mnamespace[0m[38;2;248;248;242m std[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94m This C program was submitted to help bat[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*[0m[38;2;117;113;94m with its syntax highlighting tests[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*/[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mbool[0m[38;2;248;248;242m [0m[38;2;166;226;46mtest_function[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mx[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[3;38;2;253;151;31my[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mx [0m[38;2;249;38;114m==[0m[38;2;248;248;242m y [0m[38;2;249;38;114m||[0m[38;2;248;248;242m x [0m[38;2;249;38;114m+[0m[38;2;248;248;242m y [0m[38;2;249;38;114m==[0m[38;2;248;248;242m x [0m[38;2;249;38;114m*[0m[38;2;248;248;242m y[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mMainWindow[0m[38;2;248;248;242m::[0m[38;2;166;226;46mMainWindow[0m[38;2;248;248;242m([0m[38;2;248;248;242mQWidget [0m[38;2;249;38;114m*[0m[3;38;2;253;151;31mparent[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;248;248;242mQMainWindow[0m[38;2;248;248;242m([0m[38;2;248;248;242mparent[0m[38;2;248;248;242m)[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242mui[0m[38;2;248;248;242m([0m[38;2;249;38;114mnew[0m[38;2;248;248;242m Ui[0m[38;2;248;248;242m::[0m[38;2;248;248;242mMainWindow[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m ui[0m[38;2;248;248;242m->[0m[38;2;248;248;242msetupUi[0m[38;2;248;248;242m([0m[38;2;255;255;255mthis[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mresize[0m[38;2;248;248;242m([0m[38;2;190;132;255m560[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m420[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m Image menu[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mconnect[0m[38;2;248;248;242m([0m[38;2;248;248;242mui[0m[38;2;248;248;242m->[0m[38;2;255;255;255mactionOpen[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242mQAction[0m[38;2;248;248;242m::[0m[38;2;248;248;242mtriggered[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255mthis[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242mMainWindow[0m[38;2;248;248;242m::[0m[38;2;248;248;242mopen[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m MainWindow[0m[38;2;248;248;242m::[0m[38;2;249;38;114m~[0m[38;2;248;248;242mMainWindow[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdelete[0m[38;2;248;248;242m ui[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m y [0m[38;2;249;38;114m=[0m[38;2;248;248;242m ui[0m[38;2;248;248;242m->[0m[38;2;255;255;255mgraphicsView[0m[38;2;248;248;242m->[0m[38;2;248;248;242msize[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242mheight[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m image[0m[38;2;248;248;242m.[0m[38;2;248;248;242mheight[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m x [0m[38;2;249;38;114m=[0m[38;2;248;248;242m ui[0m[38;2;248;248;242m->[0m[38;2;255;255;255mgraphicsView[0m[38;2;248;248;242m->[0m[38;2;248;248;242msize[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242mwidth[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m image[0m[38;2;248;248;242m.[0m[38;2;248;248;242mwidth[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;248;248;242mMainWindow[0m[38;2;248;248;242m::[0m[38;2;248;248;242mshowImage[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m Reset scale[0m
|
||||||
|
[38;2;248;248;242m ui[0m[38;2;248;248;242m->[0m[38;2;255;255;255mgraphicsView[0m[38;2;248;248;242m->[0m[38;2;248;248;242mresetMatrix[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mstatusBar[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m->[0m[38;2;248;248;242mshowMessage[0m[38;2;248;248;242m([0m[38;2;248;248;242mQString[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m%1 [0m[38;2;190;132;255m%2x[0m[38;2;190;132;255m%3p[0m[38;2;230;219;116mx %4 kB[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242marg[0m[38;2;248;248;242m([0m[38;2;248;248;242mfile[0m[38;2;248;248;242m.[0m[38;2;248;248;242mfileName[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242marg[0m[38;2;248;248;242m([0m[38;2;248;248;242mimage[0m[38;2;248;248;242m.[0m[38;2;248;248;242mwidth[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242marg[0m[38;2;248;248;242m([0m[38;2;248;248;242mimage[0m[38;2;248;248;242m.[0m[38;2;248;248;242mheight[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242marg[0m[38;2;248;248;242m([0m[38;2;248;248;242mQFile[0m[38;2;248;248;242m([0m[38;2;248;248;242mcurrentFile[0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;248;248;242msize[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;190;132;255m1000[0m[38;2;190;132;255m.[0m[38;2;190;132;255m0[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m tc[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m cin [0m[38;2;249;38;114m>>[0m[38;2;248;248;242m tc[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhile[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mtc[0m[38;2;249;38;114m--[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m for each test case[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m cin [0m[38;2;249;38;114m>>[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m take n[0m
|
||||||
|
[38;2;248;248;242m vector[0m[38;2;248;248;242m<[0m[38;2;248;248;242mpair[0m[38;2;248;248;242m<[0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m,[0m[38;2;248;248;242m string[0m[38;2;248;248;242m>[0m[38;2;248;248;242m>[0m[38;2;248;248;242m v[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m a[0m[38;2;248;248;242m[[0m[38;2;248;248;242mn[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m b[0m[38;2;248;248;242m[[0m[38;2;248;248;242mn[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m cin [0m[38;2;249;38;114m>>[0m[38;2;248;248;242m a[0m[38;2;248;248;242m[[0m[38;2;248;248;242mi[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m take arrays[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m cin [0m[38;2;249;38;114m>>[0m[38;2;248;248;242m b[0m[38;2;248;248;242m[[0m[38;2;248;248;242mi[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m priority_queue[0m[38;2;248;248;242m<[0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m>[0m[38;2;248;248;242m pq[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m inbuilt data structure - max heap (available in the bits/stdc++)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m pq[0m[38;2;248;248;242m.[0m[38;2;248;248;242mpush[0m[38;2;248;248;242m([0m[38;2;248;248;242ma[0m[38;2;248;248;242m[[0m[38;2;248;248;242mi[0m[38;2;248;248;242m][0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m push elements into heap[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m for each element in B[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m top_ele [0m[38;2;249;38;114m=[0m[38;2;248;248;242m pq[0m[38;2;248;248;242m.[0m[38;2;248;248;242mtop[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m max element in heap[0m
|
||||||
|
[38;2;248;248;242m pq[0m[38;2;248;248;242m.[0m[38;2;248;248;242mpop[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m deletion[0m
|
||||||
|
[38;2;248;248;242m pq[0m[38;2;248;248;242m.[0m[38;2;248;248;242mpush[0m[38;2;248;248;242m([0m[38;2;248;248;242mtop_ele [0m[38;2;249;38;114m^[0m[38;2;248;248;242m b[0m[38;2;248;248;242m[[0m[38;2;248;248;242mi[0m[38;2;248;248;242m][0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m push after operation[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m n [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m>=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m--[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m restore A in ascending order[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m a[0m[38;2;248;248;242m[[0m[38;2;248;248;242mi[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m pq[0m[38;2;248;248;242m.[0m[38;2;248;248;242mtop[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m pq[0m[38;2;248;248;242m.[0m[38;2;248;248;242mpop[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m n[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m cout [0m[38;2;249;38;114m<<[0m[38;2;248;248;242m a[0m[38;2;248;248;242m[[0m[38;2;248;248;242mi[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m<<[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m [0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m print A[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m cout [0m[38;2;249;38;114m<<[0m[38;2;248;248;242m endl[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
[38;2;248;248;242mprocessor : 0[0m
|
||||||
|
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||||
|
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||||
|
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||||
|
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||||
|
[38;2;248;248;242mCPU architecture: 7[0m
|
||||||
|
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||||
|
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||||
|
[38;2;248;248;242mCPU revision : 3[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mprocessor : 1[0m
|
||||||
|
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||||
|
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||||
|
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||||
|
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||||
|
[38;2;248;248;242mCPU architecture: 7[0m
|
||||||
|
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||||
|
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||||
|
[38;2;248;248;242mCPU revision : 3[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mprocessor : 2[0m
|
||||||
|
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||||
|
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||||
|
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||||
|
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||||
|
[38;2;248;248;242mCPU architecture: 7[0m
|
||||||
|
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||||
|
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||||
|
[38;2;248;248;242mCPU revision : 3[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mprocessor : 3[0m
|
||||||
|
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||||
|
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||||
|
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||||
|
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||||
|
[38;2;248;248;242mCPU architecture: 7[0m
|
||||||
|
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||||
|
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||||
|
[38;2;248;248;242mCPU revision : 3[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mHardware : BCM2711[0m
|
||||||
|
[38;2;248;248;242mRevision : b03111[0m
|
||||||
|
[38;2;248;248;242mSerial : 1000000095fd9fc5[0m
|
||||||
|
[38;2;248;248;242mModel : Raspberry Pi 4 Model B Rev 1.1[0m
|
||||||
|
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m An example file to test Crystal syntax highlighting in bat[0m
|
||||||
|
[38;2;248;248;242mmy_var [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mNil[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mnil[0m
|
||||||
|
[38;2;248;248;242mmy_var_also [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m42[0m
|
||||||
|
[38;2;248;248;242mmy_other_var [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m4.0[0m
|
||||||
|
[38;2;248;248;242manother_float [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m4.0_f32[0m
|
||||||
|
[38;2;248;248;242manother_float_2 [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m4e10[0m
|
||||||
|
[38;2;248;248;242manother_float_3 [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;190;132;255m0.5[0m
|
||||||
|
[38;2;248;248;242mbig_one [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m1_000_000.111_111e-4[0m
|
||||||
|
[38;2;248;248;242mternary [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114m>[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;190;132;255m4[0m
|
||||||
|
[38;2;248;248;242mmy_symbol [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mThisOne?[0m
|
||||||
|
[38;2;248;248;242mmy_other_symbol [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mNo_That_One![0m
|
||||||
|
[38;2;248;248;242mplus [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255m+[0m
|
||||||
|
[38;2;248;248;242mminus [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255m-[0m
|
||||||
|
[38;2;248;248;242mmy_string [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mString[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mthis string right here, with an interpolated value of [0m[38;2;230;219;116m#{[0m[38;2;230;219;116mmy_var_also[0m[38;2;230;219;116m}[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242mmy_array [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mArray[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m3[0m[38;2;248;248;242m,[0m[38;2;190;132;255m4[0m[38;2;248;248;242m][0m
|
||||||
|
[38;2;248;248;242mmy_tuple [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mTuple[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;190;132;255m3[0m[38;2;248;248;242m,[0m[38;2;190;132;255m4[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242mmy_named_tuple [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mNamedTuple[0m[38;2;248;248;242m([0m[38;2;190;132;255mone[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mtwo[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;230;219;116m"[0m[38;2;230;219;116mone[0m[38;2;230;219;116m"[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mtwo[0m[38;2;230;219;116m"[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242mmy_hash [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mHash[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mString[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;230;219;116m"[0m[38;2;230;219;116mone[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mtwo[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242mmy_proc [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mProc[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;249;38;114m>[0m[38;2;248;248;242m([0m[38;2;248;248;242mx [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mInt32[0m[38;2;248;248;242m)[0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;248;248;242mx [0m[38;2;249;38;114m*[0m[38;2;248;248;242m x[0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242mmy_other_proc [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mProc[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mString[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;249;38;114m>[0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mWow, neat![0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242mputs my_string[0m
|
||||||
|
[38;2;248;248;242mputs[0m[38;2;248;248;242m([0m[38;2;248;248;242mmy_string[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114menum[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;166;226;46mRed[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;166;226;46mGreen[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;166;226;46mBlue[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mclass[0m[38;2;248;248;242m [0m[38;2;166;226;46mGreeter[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m@[0m[38;2;255;255;255minstance_field[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m[38;2;248;248;242m:[0m[38;2;248;248;242m:[0m[3;38;2;166;226;46mRed[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m@@[0m[38;2;255;255;255mclass_field[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m[38;2;248;248;242m:[0m[38;2;248;248;242m:[0m[3;38;2;166;226;46mGreen[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46minitialize[0m[38;2;248;248;242m([0m[3;38;2;255;255;255m@[0m[3;38;2;255;255;255mname[0m[3;38;2;253;151;31m [0m[3;38;2;249;38;114m=[0m[3;38;2;253;151;31m [0m[3;38;2;230;219;116m"[0m[3;38;2;230;219;116mworld[0m[3;38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mgreet[0m[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m puts [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello, [0m[38;2;230;219;116m#{[0m[38;2;255;255;255m@[0m[38;2;255;255;255mname[0m[38;2;230;219;116m}[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mrender_greeting[0m[38;2;248;248;242m [0m[3;38;2;253;151;31m:[0m[3;38;2;253;151;31m [0m[3;38;2;166;226;46mString[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello, [0m[38;2;230;219;116m#{[0m[38;2;255;255;255m@[0m[38;2;255;255;255mname[0m[38;2;230;219;116m}[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mwith_greeting[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114myield[0m[38;2;248;248;242m render_greeting[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mis_color_default?[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m@[0m[38;2;255;255;255minstance_field[0m[38;2;248;248;242m [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;255;255;255m@@[0m[38;2;255;255;255mclass_field[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mself.greet_static[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mname [0m[3;38;2;253;151;31m:[0m[3;38;2;253;151;31m [0m[3;38;2;166;226;46mString[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mUnit[0m
|
||||||
|
[38;2;248;248;242m puts [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello, [0m[38;2;230;219;116m#{[0m[38;2;230;219;116mname[0m[38;2;230;219;116m}[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mgreeter [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mGreeter[0m[38;2;248;248;242m.[0m[38;2;249;38;114mnew[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mbat[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242mgreeter[0m[38;2;248;248;242m.[0m[38;2;248;248;242mwith_greeting [0m[38;2;249;38;114mdo [0m[38;2;248;248;242m|[0m[38;2;255;255;255mgreeting[0m[38;2;248;248;242m|[0m
|
||||||
|
[38;2;248;248;242m puts greeting[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mputs [0m[38;2;230;219;116m<<-EOF[0m
|
||||||
|
[38;2;230;219;116m this is a heredoc and it has a value in it of [0m[38;2;230;219;116m#{[0m[38;2;230;219;116mgreeter[0m[38;2;230;219;116m.[0m[38;2;230;219;116mrender_greeting[0m[38;2;230;219;116m}[0m[38;2;230;219;116m![0m
|
||||||
|
[38;2;230;219;116mEOF[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m This is a command:[0m
|
||||||
|
[38;2;230;219;116m`[0m[38;2;230;219;116mecho yay![0m[38;2;230;219;116m`[0m
|
||||||
|
[38;2;255;255;255m$[0m[38;2;255;255;255m?[0m[38;2;248;248;242m.[0m[38;2;248;248;242msuccess?[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mmy_color [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m[38;2;248;248;242m:[0m[38;2;248;248;242m:[0m[3;38;2;166;226;46mRed[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mputs [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcase[0m[38;2;248;248;242m my_color[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m[38;2;248;248;242m:[0m[38;2;248;248;242m:[0m[3;38;2;166;226;46mRed[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m.[0m[38;2;248;248;242mred?[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mRed[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m[38;2;248;248;242m:[0m[38;2;248;248;242m:[0m[3;38;2;166;226;46mGreen[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m.[0m[38;2;248;248;242mgreen?[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mGreen[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mColors[0m[38;2;248;248;242m:[0m[38;2;248;248;242m:[0m[3;38;2;166;226;46mBlue[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m.[0m[38;2;248;248;242mblue?[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mBlue[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mI dunno, man. Chartreuse? Maroon?[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mclass[0m[38;2;248;248;242m [0m[38;2;166;226;46mMyGenericClass[0m[38;2;166;226;46m([0m[3;38;2;166;226;46mT[0m[38;2;166;226;46m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46minitialize[0m[38;2;248;248;242m([0m[3;38;2;255;255;255m@[0m[3;38;2;255;255;255mwrapped_value[0m[3;38;2;253;151;31m [0m[3;38;2;253;151;31m:[0m[3;38;2;253;151;31m [0m[3;38;2;166;226;46mT[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mget[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;255;255;255m@[0m[38;2;255;255;255mwrapped_value[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mdo_stuff_with_range[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mr [0m[3;38;2;253;151;31m:[0m[3;38;2;253;151;31m [0m[3;38;2;166;226;46mRange[0m[3;38;2;253;151;31m([0m[3;38;2;166;226;46mInt[0m[3;38;2;249;38;114m|[0m[3;38;2;166;226;46mString[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m r[0m[38;2;248;248;242m.[0m[38;2;248;248;242mempty?[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;249;38;114munless[0m[38;2;248;248;242m [0m[38;2;249;38;114m![0m[38;2;248;248;242m([0m[38;2;248;248;242mr[0m[38;2;248;248;242m.[0m[38;2;248;248;242mempty?[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m r[0m[38;2;248;248;242m.[0m[38;2;248;248;242meach [0m[38;2;249;38;114mdo [0m[38;2;248;248;242m|[0m[38;2;255;255;255mitem[0m[38;2;248;248;242m|[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;246;170;17m/[0m[38;2;246;170;17me[0m[38;2;246;170;17m/[0m[38;2;248;248;242m.[0m[38;2;248;248;242mmatch[0m[38;2;248;248;242m([0m[38;2;248;248;242mitem[0m[38;2;248;248;242m.[0m[38;2;248;248;242mto_s[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m puts [0m[38;2;230;219;116m"[0m[38;2;230;219;116m#{[0m[38;2;230;219;116mitem[0m[38;2;230;219;116m}[0m[38;2;230;219;116m contains the letter e![0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melsif[0m[38;2;248;248;242m item[0m[38;2;248;248;242m.[0m[38;2;248;248;242mto_s[0m[38;2;248;248;242m.[0m[38;2;248;248;242mempty?[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mbreak[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mnext[0m[38;2;248;248;242m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m this is unnecessary, but whatever[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mmacro[0m[38;2;248;248;242m print_range[0m[38;2;248;248;242m([0m[38;2;248;248;242mrange[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m i [0m[38;2;249;38;114min[0m[38;2;248;248;242m range [0m[38;2;249;38;114m%}[0m
|
||||||
|
[38;2;248;248;242m puts [0m[38;2;249;38;114m{{[0m[38;2;248;248;242mi[0m[38;2;248;248;242m.[0m[38;2;248;248;242mid[0m[38;2;249;38;114m}}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m [0m[38;2;249;38;114m%}[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mprint_range[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m.[0m[38;2;248;248;242m.[0m[38;2;190;132;255m3[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242mprint_range[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m.[0m[38;2;248;248;242m.[0m[38;2;248;248;242m.[0m[38;2;190;132;255m3[0m[38;2;248;248;242m)[0m
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m selective import[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255mstdio[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mwriteln[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255mwritefln[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m non-selective import[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255malgorithm[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m[38;2;117;113;94m a multiline comment[0m
|
||||||
|
[38;2;117;113;94m*[0m
|
||||||
|
[38;2;117;113;94m*[0m[38;2;117;113;94m this function is safe because it doesn't use pointer arithmetic[0m
|
||||||
|
[38;2;117;113;94m*/[0m
|
||||||
|
[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;166;226;46mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;249;38;114msafe[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m assert1on[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114massert[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114m!=[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m now we can safely return our answer [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m42[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m function call with string literal[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello World![0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an int array declaration[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an immutable double[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mimmutable[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255mpi[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;190;132;255m.[0m[38;2;190;132;255m14[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a mutable double[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mpi[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a pointer[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;255;255;255mdp1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;255;255;255md1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another pointer to the same thingy[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mauto[0m[38;2;248;248;242m [0m[38;2;255;255;255ma1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;255;255;255md1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a constant bool[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbool[0m[38;2;248;248;242m [0m[38;2;255;255;255mb1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;255;255;255mb1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another function call [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mwritefln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114m![0m[38;2;255;255;255mb1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mthis seems wrong[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mI'm giving up, this is too crazy for me[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
[38;2;117;113;94m/* array sorting alogorithm */[0m
|
||||||
|
[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;248;248;242mpartition[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m list, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m low, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m high)[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m (list [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m[38;2;248;248;242m [0m[38;2;249;38;114m|[0m[38;2;249;38;114m|[0m[38;2;248;248;242m list.length [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m) [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m pivot [0m[38;2;249;38;114m=[0m[38;2;248;248;242m list[high][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m low [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;248;248;242mswap[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m list, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m j)[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m temp [0m[38;2;249;38;114m=[0m[38;2;248;248;242m list[i][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m list[i] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m list[j][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m list[j] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m temp[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m j [0m[38;2;249;38;114m=[0m[38;2;248;248;242m low[0m[38;2;248;248;242m;[0m[38;2;248;248;242m j [0m[38;2;249;38;114m<[0m[38;2;248;248;242m high[0m[38;2;248;248;242m;[0m[38;2;248;248;242m j[0m[38;2;249;38;114m++[0m[38;2;248;248;242m) {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m (list[j] [0m[38;2;249;38;114m<=[0m[38;2;248;248;242m pivot) {[0m
|
||||||
|
[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m swap(list, i, j)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m swap(list, i [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m, high)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m i [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;248;248;242mquickSort[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m list, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m low, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m high)[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m (low [0m[38;2;249;38;114m<[0m[38;2;248;248;242m high) {[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m pi [0m[38;2;249;38;114m=[0m[38;2;248;248;242m partition(list, low, high)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m quickSort(list, low, pi [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m quickSort(list, pi [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m, high)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;248;248;242mmerge[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m list, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m leftIndex, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m middleIndex, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m rightIndex)[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m leftSize [0m[38;2;249;38;114m=[0m[38;2;248;248;242m middleIndex [0m[38;2;249;38;114m-[0m[38;2;248;248;242m leftIndex [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m rightSize [0m[38;2;249;38;114m=[0m[38;2;248;248;242m rightIndex [0m[38;2;249;38;114m-[0m[38;2;248;248;242m middleIndex[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m leftList [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114mnew[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m(leftSize)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m rightList [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114mnew[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m(rightSize)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m leftSize[0m[38;2;248;248;242m;[0m[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m) leftList[i] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m list[leftIndex [0m[38;2;249;38;114m+[0m[38;2;248;248;242m i][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ([0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m j [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m[38;2;248;248;242m j [0m[38;2;249;38;114m<[0m[38;2;248;248;242m rightSize[0m[38;2;248;248;242m;[0m[38;2;248;248;242m j[0m[38;2;249;38;114m++[0m[38;2;248;248;242m) rightList[j] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m list[middleIndex [0m[38;2;249;38;114m+[0m[38;2;248;248;242m j [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m i [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m, j [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m k [0m[38;2;249;38;114m=[0m[38;2;248;248;242m leftIndex[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhile[0m[38;2;248;248;242m (i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m leftSize [0m[38;2;249;38;114m&[0m[38;2;249;38;114m&[0m[38;2;248;248;242m j [0m[38;2;249;38;114m<[0m[38;2;248;248;242m rightSize) {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m (leftList[i] [0m[38;2;249;38;114m<=[0m[38;2;248;248;242m rightList[j]) {[0m
|
||||||
|
[38;2;248;248;242m list[k] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m leftList[i][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m } [0m[38;2;249;38;114melse[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m list[k] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m rightList[j][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m j[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m k[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhile[0m[38;2;248;248;242m (i [0m[38;2;249;38;114m<[0m[38;2;248;248;242m leftSize) {[0m
|
||||||
|
[38;2;248;248;242m list[k] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m leftList[i][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m i[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m k[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mwhile[0m[38;2;248;248;242m (j [0m[38;2;249;38;114m<[0m[38;2;248;248;242m rightSize) {[0m
|
||||||
|
[38;2;248;248;242m list[k] [0m[38;2;249;38;114m=[0m[38;2;248;248;242m rightList[j][0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m j[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m k[0m[38;2;249;38;114m++[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;248;248;242mmergeSort[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mList[0m[38;2;248;248;242m list, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m leftIndex, [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m rightIndex)[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m (leftIndex [0m[38;2;249;38;114m<[0m[38;2;248;248;242m rightIndex) {[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m middleIndex [0m[38;2;249;38;114m=[0m[38;2;248;248;242m (rightIndex [0m[38;2;249;38;114m+[0m[38;2;248;248;242m leftIndex) [0m[38;2;249;38;114m~[0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m mergeSort(list, leftIndex, middleIndex)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m mergeSort(list, middleIndex [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m, rightIndex)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m merge(list, leftIndex, middleIndex, rightIndex)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/* variables */[0m
|
||||||
|
[3;38;2;102;217;239mvar[0m[38;2;248;248;242m name [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m'Voyager I'[0m[38;2;248;248;242m;[0m
|
||||||
|
[3;38;2;102;217;239mvar[0m[38;2;248;248;242m year [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m1977[0m[38;2;248;248;242m;[0m
|
||||||
|
[3;38;2;102;217;239mvar[0m[38;2;248;248;242m antennaDiameter [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m3.7[0m[38;2;248;248;242m;[0m
|
||||||
|
[3;38;2;102;217;239mvar[0m[38;2;248;248;242m flybyObjects [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [[0m[38;2;230;219;116m'Jupiter'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m'Saturn'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m'Uranus'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m'Neptune'[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m
|
||||||
|
[3;38;2;102;217;239mvar[0m[38;2;248;248;242m image [0m[38;2;249;38;114m=[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m'tags'[0m[38;2;248;248;242m: [[0m[38;2;230;219;116m'saturn'[0m[38;2;248;248;242m],[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;230;219;116m'url'[0m[38;2;248;248;242m: [0m[38;2;230;219;116m'//path/to/saturn.jpg'[0m
|
||||||
|
[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*classes */[0m
|
||||||
|
[38;2;249;38;114mclass[0m[38;2;248;248;242m [0m[38;2;248;248;242mSpacecraft[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mString[0m[38;2;248;248;242m name[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m DateTime launchDate[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m Spacecraft([0m[38;2;255;255;255mthis[0m[38;2;248;248;242m.name, [0m[38;2;255;255;255mthis[0m[38;2;248;248;242m.launchDate) {}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m Named constructor that forwards to the default one.[0m
|
||||||
|
[38;2;248;248;242m Spacecraft.unlaunched([0m[3;38;2;102;217;239mString[0m[38;2;248;248;242m name)[0m[38;2;249;38;114m : [0m[38;2;255;255;255mthis[0m[38;2;248;248;242m(name, [0m[38;2;190;132;255mnull[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;249;38;114mget[0m[38;2;248;248;242m [0m[38;2;248;248;242mlaunchYear[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;249;38;114m>[0m[38;2;248;248;242m launchDate?.year[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;248;248;242mdescribe[0m[38;2;248;248;242m()[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m print([0m[38;2;230;219;116m'Spacecraft: [0m[38;2;249;38;114m$[0m[3;38;2;253;151;31mname[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m (launchDate [0m[38;2;249;38;114m!=[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m[38;2;248;248;242m) {[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m years [0m[38;2;249;38;114m=[0m[38;2;248;248;242m DateTime.now().difference(launchDate).inDays [0m[38;2;249;38;114m~[0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;190;132;255m365[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m print([0m[38;2;230;219;116m'Launched: [0m[38;2;249;38;114m$[0m[3;38;2;253;151;31mlaunchYear[0m[38;2;230;219;116m ([0m[38;2;249;38;114m$[0m[3;38;2;253;151;31myears[0m[38;2;230;219;116m years ago)'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m } [0m[38;2;249;38;114melse[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m print([0m[38;2;230;219;116m'Unlaunched'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/* Mixins */[0m
|
||||||
|
[38;2;249;38;114mclass[0m[38;2;248;248;242m [0m[38;2;248;248;242mPilotedCraft[0m[38;2;248;248;242m [0m[38;2;249;38;114mextends[0m[38;2;248;248;242m [0m[38;2;248;248;242mSpacecraft[0m[38;2;248;248;242m [0m[38;2;249;38;114mwith[0m[38;2;248;248;242m [0m[38;2;248;248;242mPiloted[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m ···[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/* Interfaces and abstract classes */[0m
|
||||||
|
[38;2;249;38;114mclass[0m[38;2;248;248;242m [0m[38;2;248;248;242mMockSpaceship[0m[38;2;248;248;242m [0m[38;2;249;38;114mimplements[0m[38;2;248;248;242m [0m[38;2;248;248;242mSpacecraft[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m ···[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/* async */[0m
|
||||||
|
[38;2;248;248;242mFuture[0m[38;2;249;38;114m<[0m[3;38;2;102;217;239mvoid[0m[38;2;249;38;114m>[0m[38;2;248;248;242m printWithDelay([0m[3;38;2;102;217;239mString[0m[38;2;248;248;242m message) {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m Future.delayed([0m[38;2;249;38;114mconst[0m[38;2;248;248;242m Duration(seconds: [0m[38;2;190;132;255m2[0m[38;2;248;248;242m)).then((_) {[0m
|
||||||
|
[38;2;248;248;242m print(message)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m })[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242mStream[0m[38;2;249;38;114m<[0m[3;38;2;102;217;239mString[0m[38;2;249;38;114m>[0m[38;2;248;248;242m report(Spacecraft craft, Iterable[0m[38;2;249;38;114m<[0m[3;38;2;102;217;239mString[0m[38;2;249;38;114m>[0m[38;2;248;248;242m objects) [0m[38;2;249;38;114masync[0m[38;2;249;38;114m*[0m[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ([0m[3;38;2;102;217;239mvar[0m[38;2;248;248;242m object [0m[38;2;249;38;114min[0m[38;2;248;248;242m objects) {[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mawait[0m[38;2;248;248;242m Future.delayed([0m[38;2;249;38;114mconst[0m[38;2;248;248;242m Duration(seconds: [0m[38;2;190;132;255m2[0m[38;2;248;248;242m))[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114myield[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;249;38;114m$[0m[38;2;249;38;114m{[0m[38;2;230;219;116mcraft.name[0m[38;2;249;38;114m}[0m[38;2;230;219;116m flies by [0m[38;2;249;38;114m$[0m[3;38;2;253;151;31mobject[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,353 @@
|
|||||||
|
[38;2;248;248;242mdiff --git a/CHANGELOG.md b/CHANGELOG.md[0m
|
||||||
|
[38;2;248;248;242mindex ced88213..973eba9a 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/CHANGELOG.md[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/CHANGELOG.md[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-2,6 +2,11[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m ## Features[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m- Add a new `--diff` option that can be used to only show lines surrounding[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m Git changes, i.e. added, removed or modified lines. The amount of additional[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m context can be controlled with `--diff-context=N`. See #23 and #940[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;248;248;242m ## Bugfixes[0m
|
||||||
|
[38;2;248;248;242m ## Other[0m
|
||||||
|
[38;2;248;248;242m ## `bat` as a library[0m
|
||||||
|
[38;2;248;248;242mdiff --git a/src/bin/bat/app.rs b/src/bin/bat/app.rs[0m
|
||||||
|
[38;2;248;248;242mindex e5221455..f0f519ea 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/src/bin/bat/app.rs[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/src/bin/bat/app.rs[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-15,7 +15,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46muse console::Term;[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m use bat::{[0m
|
||||||
|
[38;2;248;248;242m assets::HighlightingAssets,[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m config::Config,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m config::{Config, VisibleLines},[0m
|
||||||
|
[38;2;248;248;242m error::*,[0m
|
||||||
|
[38;2;248;248;242m input::Input,[0m
|
||||||
|
[38;2;248;248;242m line_range::{HighlightedLineRanges, LineRange, LineRanges},[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-196,13 +196,23[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl App {[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m })[0m
|
||||||
|
[38;2;248;248;242m .unwrap_or_else(|| String::from(HighlightingAssets::default_theme())),[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m line_ranges: self[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m .matches[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m .values_of("line-range")[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m .map(|vs| vs.map(LineRange::from).collect())[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m .transpose()?[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m .map(LineRanges::from)[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m .unwrap_or_default(),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m visible_lines: if self.matches.is_present("diff") {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m VisibleLines::DiffContext([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m self.matches[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .value_of("diff-context")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .and_then(|t| t.parse().ok())[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .unwrap_or(2),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m )[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m } else {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m VisibleLines::Ranges([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m self.matches[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .values_of("line-range")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .map(|vs| vs.map(LineRange::from).collect())[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .transpose()?[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .map(LineRanges::from)[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .unwrap_or_default(),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m )[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m },[0m
|
||||||
|
[38;2;248;248;242m style_components,[0m
|
||||||
|
[38;2;248;248;242m syntax_mapping,[0m
|
||||||
|
[38;2;248;248;242m pager: self.matches.value_of("pager"),[0m
|
||||||
|
[38;2;248;248;242mdiff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs[0m
|
||||||
|
[38;2;248;248;242mindex c7344991..85edefde 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/src/bin/bat/clap_app.rs[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/src/bin/bat/clap_app.rs[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-105,6 +105,34[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mpub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {[0m
|
||||||
|
[38;2;248;248;242m data to bat from STDIN when bat does not otherwise know \[0m
|
||||||
|
[38;2;248;248;242m the filename."),[0m
|
||||||
|
[38;2;248;248;242m )[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .arg([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m Arg::with_name("diff")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .long("diff")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .help("Only show lines that have been added/removed/modified.")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .long_help([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m "Only show lines that have been added/removed/modified with respect \[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m to the Git index. Use --diff-context=N to control how much context you want to see.",[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m ),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m )[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .arg([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m Arg::with_name("diff-context")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .long("diff-context")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .overrides_with("diff-context")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .takes_value(true)[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .value_name("N")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .validator([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m |n| {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m n.parse::<usize>()[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .map_err(|_| "must be a number")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .map(|_| ()) // Convert to Result<(), &str>[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .map_err(|e| e.to_string())[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }, // Convert to Result<(), String>[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m )[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .hidden_short_help(true)[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .long_help([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m "Include N lines of context around added/removed/modified lines when using '--diff'.",[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m ),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m )[0m
|
||||||
|
[38;2;248;248;242m .arg([0m
|
||||||
|
[38;2;248;248;242m Arg::with_name("tabs")[0m
|
||||||
|
[38;2;248;248;242m .long("tabs")[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-339,6 +367,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mpub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {[0m
|
||||||
|
[38;2;248;248;242m .takes_value(true)[0m
|
||||||
|
[38;2;248;248;242m .number_of_values(1)[0m
|
||||||
|
[38;2;248;248;242m .value_name("N:M")[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .conflicts_with("diff")[0m
|
||||||
|
[38;2;248;248;242m .help("Only print the lines from N to M.")[0m
|
||||||
|
[38;2;248;248;242m .long_help([0m
|
||||||
|
[38;2;248;248;242m "Only print the specified range of lines for each file. \[0m
|
||||||
|
[38;2;248;248;242mdiff --git a/src/config.rs b/src/config.rs[0m
|
||||||
|
[38;2;248;248;242mindex d5df9910..3c24b77f 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/src/config.rs[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/src/config.rs[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-5,6 +5,32[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46muse crate::style::StyleComponents;[0m
|
||||||
|
[38;2;248;248;242m use crate::syntax_mapping::SyntaxMapping;[0m
|
||||||
|
[38;2;248;248;242m use crate::wrapping::WrappingMode;[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m#[derive(Debug, Clone)][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46mpub enum VisibleLines {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m /// Show all lines which are included in the line ranges[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m Ranges(LineRanges),[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m /// Only show lines surrounding added/deleted/modified lines[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m DiffContext(usize),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m}[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46mimpl VisibleLines {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m pub fn diff_context(&self) -> bool {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m match self {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m Self::Ranges(_) => false,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m Self::DiffContext(_) => true,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m}[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46mimpl Default for VisibleLines {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m fn default() -> Self {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m VisibleLines::Ranges(LineRanges::default())[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m}[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;248;248;242m #[derive(Debug, Clone, Default)][0m
|
||||||
|
[38;2;248;248;242m pub struct Config<'a> {[0m
|
||||||
|
[38;2;248;248;242m /// The explicitly configured language, if any[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-39,8 +65,8[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mpub struct Config<'a> {[0m
|
||||||
|
[38;2;248;248;242m #[cfg(feature = "paging")][0m
|
||||||
|
[38;2;248;248;242m pub paging_mode: PagingMode,[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m /// Specifies the lines that should be printed[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m pub line_ranges: LineRanges,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m /// Specifies which lines should be printed[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m pub visible_lines: VisibleLines,[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m /// The syntax highlighting theme[0m
|
||||||
|
[38;2;248;248;242m pub theme: String,[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-62,10 +88,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mpub struct Config<'a> {[0m
|
||||||
|
[38;2;248;248;242m fn default_config_should_include_all_lines() {[0m
|
||||||
|
[38;2;248;248;242m use crate::line_range::RangeCheckResult;[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m assert_eq!([0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m Config::default().line_ranges.check(17),[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m RangeCheckResult::InRange[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m );[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m assert_eq!(LineRanges::default().check(17), RangeCheckResult::InRange);[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m #[test][0m
|
||||||
|
[38;2;248;248;242mdiff --git a/src/controller.rs b/src/controller.rs[0m
|
||||||
|
[38;2;248;248;242mindex 09c6ec2a..f636d5fd 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/src/controller.rs[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/src/controller.rs[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-1,9 +1,13[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m
|
||||||
|
[38;2;248;248;242m use std::io::{self, Write};[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m use crate::assets::HighlightingAssets;[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114muse crate::config::Config;[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46muse crate::config::{Config, VisibleLines};[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m#[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46muse crate::diff::{get_git_diff, LineChanges};[0m
|
||||||
|
[38;2;248;248;242m use crate::error::*;[0m
|
||||||
|
[38;2;248;248;242m use crate::input::{Input, InputReader, OpenedInput};[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m#[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46muse crate::line_range::LineRange;[0m
|
||||||
|
[38;2;248;248;242m use crate::line_range::{LineRanges, RangeCheckResult};[0m
|
||||||
|
[38;2;248;248;242m use crate::output::OutputType;[0m
|
||||||
|
[38;2;248;248;242m #[cfg(feature = "paging")][0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-68,6 +72,32[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'b> Controller<'b> {[0m
|
||||||
|
[38;2;248;248;242m no_errors = false;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m Ok(mut opened_input) => {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m let line_changes = if self.config.visible_lines.diff_context()[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m || (!self.config.loop_through && self.config.style_components.changes())[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m if let crate::input::OpenedInputKind::OrdinaryFile(ref path) =[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m opened_input.kind[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m let diff = get_git_diff(path);[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m if self.config.visible_lines.diff_context()[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m && diff[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .as_ref()[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .map(|changes| changes.is_empty())[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m .unwrap_or(false)[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m continue;[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m diff[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m } else {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m None[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m } else {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m None[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m };[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;248;248;242m let mut printer: Box<dyn Printer> = if self.config.loop_through {[0m
|
||||||
|
[38;2;248;248;242m Box::new(SimplePrinter::new())[0m
|
||||||
|
[38;2;248;248;242m } else {[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-75,10 +105,18[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'b> Controller<'b> {[0m
|
||||||
|
[38;2;248;248;242m &self.config,[0m
|
||||||
|
[38;2;248;248;242m &self.assets,[0m
|
||||||
|
[38;2;248;248;242m &mut opened_input,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m &line_changes,[0m
|
||||||
|
[38;2;248;248;242m ))[0m
|
||||||
|
[38;2;248;248;242m };[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m let result = self.print_file(&mut *printer, writer, &mut opened_input);[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m let result = self.print_file([0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m &mut *printer,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m writer,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m &mut opened_input,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m &line_changes,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m );[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m if let Err(error) = result {[0m
|
||||||
|
[38;2;248;248;242m handle_error(&error);[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-96,13 +134,31[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'b> Controller<'b> {[0m
|
||||||
|
[38;2;248;248;242m printer: &mut dyn Printer,[0m
|
||||||
|
[38;2;248;248;242m writer: &mut dyn Write,[0m
|
||||||
|
[38;2;248;248;242m input: &mut OpenedInput,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")] line_changes: &Option<LineChanges>,[0m
|
||||||
|
[38;2;248;248;242m ) -> Result<()> {[0m
|
||||||
|
[38;2;248;248;242m if !input.reader.first_line.is_empty() || self.config.style_components.header() {[0m
|
||||||
|
[38;2;248;248;242m printer.print_header(writer, input)?;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m if !input.reader.first_line.is_empty() {[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m self.print_file_ranges(printer, writer, &mut input.reader, &self.config.line_ranges)?;[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m let line_ranges = match self.config.visible_lines {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m VisibleLines::Ranges(ref line_ranges) => line_ranges.clone(),[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m VisibleLines::DiffContext(context) => {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m let mut line_ranges: Vec<LineRange> = vec![];[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m if let Some(line_changes) = line_changes {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m for line in line_changes.keys() {[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m let line = *line as usize;[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m line_ranges.push(LineRange::new(line - context, line + context));[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m LineRanges::from(line_ranges)[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m }[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m };[0m
|
||||||
|
[38;2;166;226;46m+[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m self.print_file_ranges(printer, writer, &mut input.reader, &line_ranges)?;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m printer.print_footer(writer, input)?;[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242mdiff --git a/src/pretty_printer.rs b/src/pretty_printer.rs[0m
|
||||||
|
[38;2;248;248;242mindex 0c78ea90..13bd5dbc 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/src/pretty_printer.rs[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/src/pretty_printer.rs[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-6,7 +6,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46muse syntect::parsing::SyntaxReference;[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m use crate::{[0m
|
||||||
|
[38;2;248;248;242m assets::HighlightingAssets,[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m config::Config,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m config::{Config, VisibleLines},[0m
|
||||||
|
[38;2;248;248;242m controller::Controller,[0m
|
||||||
|
[38;2;248;248;242m error::Result,[0m
|
||||||
|
[38;2;248;248;242m input::Input,[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-205,7 +205,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'a> PrettyPrinter<'a> {[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242m /// Specify the lines that should be printed (default: all)[0m
|
||||||
|
[38;2;248;248;242m pub fn line_ranges(&mut self, ranges: LineRanges) -> &mut Self {[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m self.config.line_ranges = ranges;[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m self.config.visible_lines = VisibleLines::Ranges(ranges);[0m
|
||||||
|
[38;2;248;248;242m self[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;248;248;242mdiff --git a/src/printer.rs b/src/printer.rs[0m
|
||||||
|
[38;2;248;248;242mindex 5eed437e..2b245cfd 100644[0m
|
||||||
|
[38;2;117;113;94m---[0m[38;2;117;113;94m a/src/printer.rs[0m
|
||||||
|
[38;2;117;113;94m+++[0m[38;2;117;113;94m b/src/printer.rs[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-24,7 +24,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46muse crate::config::Config;[0m
|
||||||
|
[38;2;248;248;242m use crate::decorations::LineChangesDecoration;[0m
|
||||||
|
[38;2;248;248;242m use crate::decorations::{Decoration, GridBorderDecoration, LineNumberDecoration};[0m
|
||||||
|
[38;2;248;248;242m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114muse crate::diff::{get_git_diff, LineChanges};[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46muse crate::diff::LineChanges;[0m
|
||||||
|
[38;2;248;248;242m use crate::error::*;[0m
|
||||||
|
[38;2;248;248;242m use crate::input::OpenedInput;[0m
|
||||||
|
[38;2;248;248;242m use crate::line_range::RangeCheckResult;[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-90,7 +90,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mpub(crate) struct InteractivePrinter<'a> {[0m
|
||||||
|
[38;2;248;248;242m ansi_prefix_sgr: String,[0m
|
||||||
|
[38;2;248;248;242m content_type: Option<ContentType>,[0m
|
||||||
|
[38;2;248;248;242m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m pub line_changes: Option<LineChanges>,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m pub line_changes: &'a Option<LineChanges>,[0m
|
||||||
|
[38;2;248;248;242m highlighter: Option<HighlightLines<'a>>,[0m
|
||||||
|
[38;2;248;248;242m syntax_set: &'a SyntaxSet,[0m
|
||||||
|
[38;2;248;248;242m background_color_highlight: Option<Color>,[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-101,6 +101,7[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'a> InteractivePrinter<'a> {[0m
|
||||||
|
[38;2;248;248;242m config: &'a Config,[0m
|
||||||
|
[38;2;248;248;242m assets: &'a HighlightingAssets,[0m
|
||||||
|
[38;2;248;248;242m input: &mut OpenedInput,[0m
|
||||||
|
[38;2;166;226;46m+[0m[38;2;166;226;46m #[cfg(feature = "git")] line_changes: &'a Option<LineChanges>,[0m
|
||||||
|
[38;2;248;248;242m ) -> Self {[0m
|
||||||
|
[38;2;248;248;242m let theme = assets.get_theme(&config.theme);[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-145,9 +146,6[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'a> InteractivePrinter<'a> {[0m
|
||||||
|
[38;2;248;248;242m panel_width = 0;[0m
|
||||||
|
[38;2;248;248;242m }[0m
|
||||||
|
[38;2;248;248;242m [0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m let mut line_changes = None;[0m
|
||||||
|
[38;2;249;38;114m-[0m
|
||||||
|
[38;2;248;248;242m let highlighter = if input[0m
|
||||||
|
[38;2;248;248;242m .reader[0m
|
||||||
|
[38;2;248;248;242m .content_type[0m
|
||||||
|
[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;59;192;240m-155,18 +153,6[0m[38;2;59;192;240m [0m[38;2;59;192;240m@@[0m[38;2;59;192;240m [0m[38;2;166;226;46mimpl<'a> InteractivePrinter<'a> {[0m
|
||||||
|
[38;2;248;248;242m {[0m
|
||||||
|
[38;2;248;248;242m None[0m
|
||||||
|
[38;2;248;248;242m } else {[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m // Get the Git modifications[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m #[cfg(feature = "git")][0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m {[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m use crate::input::OpenedInputKind;[0m
|
||||||
|
[38;2;249;38;114m-[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m if config.style_components.changes() {[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m if let OpenedInputKind::OrdinaryFile(ref path) = input.kind {[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m line_changes = get_git_diff(path);[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m }[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m }[0m
|
||||||
|
[38;2;249;38;114m-[0m[38;2;249;38;114m }[0m
|
||||||
|
[38;2;249;38;114m-[0m
|
||||||
|
[38;2;248;248;242m // Determine the type of syntax for highlighting[0m
|
||||||
|
[38;2;248;248;242m let syntax = assets.get_syntax(config.language, input, &config.syntax_mapping);[0m
|
||||||
|
[38;2;248;248;242m Some(HighlightLines::new(syntax, theme))[0m
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
[38;2;249;38;114mARG [0m[38;2;248;248;242marchitecture=amd64[0m
|
||||||
|
[38;2;249;38;114mFROM[0m[38;2;248;248;242m $architecture/centos:[0m[38;2;166;226;46m7[0m
|
||||||
|
[38;2;249;38;114mLABEL [0m[38;2;248;248;242mcom.example.version=[0m[38;2;230;219;116m"[0m[38;2;230;219;116m0.2.1-beta[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114mARG [0m[38;2;248;248;242marchitecture[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mENV [0m[38;2;248;248;242mINTERESTING_PATH /usr/bin/interesting-software[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mCOPY[0m[38;2;248;248;242m entrypoint.sh /usr/bin/entrypoint.sh[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mRUN [0m[38;2;248;248;242mif [ [0m[38;2;230;219;116m"[0m[38;2;230;219;116m$architecture[0m[38;2;230;219;116m"[0m[38;2;248;248;242m = [0m[38;2;230;219;116m"[0m[38;2;230;219;116mi386[0m[38;2;230;219;116m"[0m[38;2;248;248;242m ]; then echo [0m[38;2;230;219;116m"[0m[38;2;230;219;116mBuilding i386 docker image[0m[38;2;230;219;116m"[0m[38;2;248;248;242m && \[0m
|
||||||
|
[38;2;248;248;242m linux32 yum update -y && linux32 yum install -y mysql ; \[0m
|
||||||
|
[38;2;248;248;242m else yum update -y && yum install -y mysql[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mEXPOSE [0m[38;2;248;248;242m80/tcp[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mVOLUME [0m[38;2;248;248;242m[/var/lib/mysql/data][0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mENTRYPOINT [0m[38;2;248;248;242m[[0m[38;2;230;219;116m"[0m[38;2;230;219;116m/usr/bin/entrypoint.sh[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Keyword[0m
|
||||||
|
[38;2;249;38;114mexport[0m[38;2;248;248;242m [0m[38;2;255;255;255mTEST_KEYWORD[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mbar[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;249;38;114mexport[0m[38;2;248;248;242m [0m[38;2;255;255;255mTEST_KEYWORD[0m[38;2;249;38;114m=[0m[38;2;190;132;255m12345[0m
|
||||||
|
[38;2;249;38;114mexport[0m[38;2;248;248;242m [0m[38;2;255;255;255mTEST_KEYWORD[0m[38;2;249;38;114m=[0m[38;2;190;132;255mTRUE[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Variable[0m
|
||||||
|
[38;2;255;255;255mTEST_VARIABLE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m String interpolation[0m
|
||||||
|
[38;2;255;255;255mTEST_INTERPOLATION_VARIABLE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;255;255;255m$[0m[38;2;255;255;255mVAR1[0m[38;2;230;219;116m test test[0m[38;2;255;255;255m$[0m[38;2;255;255;255mVAR2test[0m[38;2;230;219;116m test[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mTEST_INTERPOLATION_SYNTAX_ONE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mtest test[0m[38;2;249;38;114m{[0m[38;2;255;255;255m$[0m[38;2;255;255;255mNVAR1[0m[38;2;249;38;114m}[0m[38;2;230;219;116mtest[0m[38;2;249;38;114m{[0m[38;2;255;255;255m$[0m[38;2;255;255;255mNVAR2[0m[38;2;249;38;114m}[0m[38;2;230;219;116mtest test[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mTEST_INTERPOLATION_SYNTAX_TWO[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mtest test[0m[38;2;249;38;114m${[0m[38;2;255;255;255mNVAR1[0m[38;2;249;38;114m}[0m[38;2;230;219;116mtest[0m[38;2;249;38;114m${[0m[38;2;255;255;255mNVAR2[0m[38;2;249;38;114m}[0m[38;2;230;219;116mtest test[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mTEST_INTERPOLATION_SYNTAX_ALL[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mtest[0m[38;2;255;255;255m$[0m[38;2;255;255;255mVAR1test[0m[38;2;230;219;116m test [0m[38;2;249;38;114m{[0m[38;2;255;255;255mVAR2[0m[38;2;249;38;114m}[0m[38;2;230;219;116mtest test[0m[38;2;249;38;114m${[0m[38;2;255;255;255mVAR3[0m[38;2;249;38;114m}[0m[38;2;230;219;116mtest[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Unquoted[0m
|
||||||
|
[38;2;255;255;255mTEST_UNQUOTED[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbar[0m
|
||||||
|
[38;2;255;255;255mTEST_UNQUOTED_NO_VALUE[0m[38;2;249;38;114m=[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m White spaced[0m
|
||||||
|
[38;2;255;255;255mTEST_WHITE_SPACE[0m[38;2;249;38;114m =[0m
|
||||||
|
[38;2;255;255;255mTEST_WHITE_SPACE_STRING[0m[38;2;249;38;114m =[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255mTEST_WHITE_SPACE_UNQUOTED[0m[38;2;249;38;114m =[0m[38;2;248;248;242m bar[0m
|
||||||
|
[38;2;255;255;255mTEST_WHITE_SPACE_UNQUOTED_BOOL[0m[38;2;249;38;114m =[0m[38;2;190;132;255m false[0m
|
||||||
|
[38;2;255;255;255mTEST_WHITE_SPACE_UNQUOTED_NUM[0m[38;2;249;38;114m =[0m[38;2;248;248;242m [0m[38;2;190;132;255m20[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m language constants[0m
|
||||||
|
[38;2;255;255;255mTEST_TRUE[0m[38;2;249;38;114m=[0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;255;255;255mTEST_FALSE[0m[38;2;249;38;114m=[0m[38;2;190;132;255mfalse[0m
|
||||||
|
[38;2;255;255;255mTEST_NULL[0m[38;2;249;38;114m=[0m[38;2;190;132;255mnull[0m
|
||||||
|
[38;2;255;255;255mTEST_TRUE_CAPITAL[0m[38;2;249;38;114m=[0m[38;2;190;132;255mTRUE[0m
|
||||||
|
[38;2;255;255;255mTEST_FALSE_CAPITAL[0m[38;2;249;38;114m=[0m[38;2;190;132;255mFALSE[0m
|
||||||
|
[38;2;255;255;255mTEST_NULL_CAPITAL[0m[38;2;249;38;114m=[0m[38;2;190;132;255mNULL[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Numerical values[0m
|
||||||
|
[38;2;255;255;255mTEST_NUM_DECIMAL[0m[38;2;249;38;114m=[0m[38;2;190;132;255m54[0m
|
||||||
|
[38;2;255;255;255mTEST_NUM_FLOAT[0m[38;2;249;38;114m=[0m[38;2;190;132;255m5.3[0m
|
||||||
|
[38;2;255;255;255mTEST_NUM[0m[38;2;249;38;114m=[0m[38;2;190;132;255m1e10[0m
|
||||||
|
[38;2;255;255;255mTEST_NUM_NEGATIVE[0m[38;2;249;38;114m=[0m[38;2;248;248;242m-[0m[38;2;190;132;255m42[0m
|
||||||
|
[38;2;255;255;255mTEST_NUM_OCTAL[0m[38;2;249;38;114m=[0m[38;2;190;132;255m057[0m
|
||||||
|
[38;2;255;255;255mTEST_NUM_HEX[0m[38;2;249;38;114m=[0m[38;2;190;132;255m0x1A[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Comments[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94mTEST_ONE=foobar[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m TEST_TWO='foobar'[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m TEST_THREE="foobar" # a comment on a commented row[0m
|
||||||
|
[38;2;255;255;255mTEST_FOUR[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mtest test test[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m this is a comment[0m
|
||||||
|
[38;2;255;255;255mTEST_FIVE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mcomment symbol # inside string[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m this is a comment[0m
|
||||||
|
[38;2;255;255;255mTEST_SIX[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mcomment symbol # and quotes [0m[38;2;190;132;255m\"[0m[38;2;230;219;116m [0m[38;2;190;132;255m\'[0m[38;2;230;219;116m inside quotes[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m " this is a comment[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Escape sequences[0m
|
||||||
|
[38;2;255;255;255mTEST_ESCAPE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mescaped characters [0m[38;2;190;132;255m\n[0m[38;2;230;219;116m [0m[38;2;190;132;255m\t[0m[38;2;230;219;116m [0m[38;2;190;132;255m\r[0m[38;2;230;219;116m [0m[38;2;190;132;255m\"[0m[38;2;230;219;116m [0m[38;2;190;132;255m\'[0m[38;2;230;219;116m [0m[38;2;190;132;255m\$[0m[38;2;230;219;116m or maybe a backslash [0m[38;2;190;132;255m\\[0m[38;2;230;219;116m...[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Double Quotes[0m
|
||||||
|
[38;2;255;255;255mTEST_DOUBLE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mLorem [0m[38;2;249;38;114m{[0m[38;2;255;255;255m$[0m[38;2;255;255;255mVAR1[0m[38;2;249;38;114m}[0m[38;2;230;219;116m [0m[38;2;249;38;114m${[0m[38;2;255;255;255mVAR2[0m[38;2;249;38;114m}[0m[38;2;230;219;116m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mVAR3[0m[38;2;230;219;116m ipsum dolor sit amet[0m[38;2;190;132;255m\n[0m[38;2;190;132;255m\r[0m[38;2;190;132;255m\t[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Single Quotes[0m
|
||||||
|
[38;2;255;255;255mTEST_SINGLE[0m[38;2;249;38;114m=[0m[38;2;230;219;116m'[0m[38;2;230;219;116mLorem {$VAR1} ${VAR2} $VAR3 ipsum dolor sit amet\n\r\t\\[0m[38;2;230;219;116m'[0m
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
[38;2;249;38;114mdefmodule[0m[38;2;248;248;242m [0m[4;38;2;102;217;239mCharlex[0m[38;2;248;248;242m.[0m[4;38;2;102;217;239mCommand[0m[38;2;248;248;242m [0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mcallback[0m[38;2;248;248;242m usage[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m :: [0m[38;2;248;248;242m[[0m[4;38;2;102;217;239mString[0m[38;2;248;248;242m.[0m[38;2;248;248;242mt[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m][0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mcallback[0m[38;2;248;248;242m description[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m :: [0m[4;38;2;102;217;239mString[0m[38;2;248;248;242m.[0m[38;2;248;248;242mt[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mcallback[0m[38;2;248;248;242m parse_args[0m[38;2;248;248;242m([0m[38;2;248;248;242margs :: [0m[4;38;2;102;217;239mString[0m[38;2;248;248;242m.[0m[38;2;248;248;242mt[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m :: any[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mcallback[0m[38;2;248;248;242m run[0m[38;2;248;248;242m([0m[38;2;248;248;242mcontext :: [0m[4;38;2;102;217;239mMap[0m[38;2;248;248;242m.[0m[38;2;248;248;242mt[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m,[0m[38;2;248;248;242m args :: [0m[38;2;248;248;242m[[0m[4;38;2;102;217;239mString[0m[38;2;248;248;242m.[0m[38;2;248;248;242mt[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m|[0m[38;2;248;248;242m any[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m :: [0m[4;38;2;102;217;239mString[0m[38;2;248;248;242m.[0m[38;2;248;248;242mt[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m|[0m[38;2;248;248;242m any[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255moptional_callbacks[0m[38;2;248;248;242m [0m[38;2;190;132;255musage[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdescription[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mparse_args[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdefmacro[0m[38;2;248;248;242m [0m[38;2;166;226;46m__using__[0m[38;2;248;248;242m([0m[38;2;248;248;242m_opts[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mquote[0m[38;2;248;248;242m [0m[38;2;249;38;114mdo[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mbehaviour[0m[38;2;248;248;242m [0m[38;2;249;38;114munquote[0m[38;2;248;248;242m([0m[38;2;255;255;255m__MODULE__[0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mimpl[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46musage[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdo:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mThis command is without usage, will add it soon[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mimpl[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mdescription[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdo:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mThis command is without description, will add it soon[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mimpl[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mrun[0m[38;2;248;248;242m([0m[38;2;248;248;242m_context[0m[38;2;248;248;242m,[0m[38;2;248;248;242m _args[0m[38;2;248;248;242m)[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdo:[0m[38;2;248;248;242m [0m[38;2;190;132;255m:[0m[38;2;190;132;255mok[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;255;255;255mimpl[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdef[0m[38;2;248;248;242m [0m[38;2;166;226;46mparse_args[0m[38;2;248;248;242m([0m[38;2;248;248;242margs[0m[38;2;248;248;242m)[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdo:[0m[38;2;248;248;242m args [0m[38;2;249;38;114m|>[0m[38;2;248;248;242m [0m[4;38;2;102;217;239mString[0m[38;2;248;248;242m.[0m[38;2;248;248;242msplit[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m|>[0m[38;2;248;248;242m [0m[4;38;2;102;217;239mKernel[0m[38;2;248;248;242m.[0m[38;2;248;248;242mtl[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mdefoverridable[0m[38;2;248;248;242m [0m[38;2;190;132;255mparse_args[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mdescription[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mrun[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255musage[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
@@ -0,0 +1,137 @@
|
|||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m elm install elm-explorations/linear-algebra[0m
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m elm install elm-explorations/webgl[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mBrowser[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mBrowser.Events[0m[38;2;248;248;242m [0m[38;2;249;38;114mas[0m[38;2;248;248;242m [0m[38;2;248;248;242mE[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mHtml[0m[38;2;248;248;242m [0m[38;2;249;38;114mexposing[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mHtml[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mHtml.Attributes[0m[38;2;248;248;242m [0m[38;2;249;38;114mexposing[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;166;226;46mwidth[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46mheight[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46mstyle[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mMath.Matrix4[0m[38;2;248;248;242m [0m[38;2;249;38;114mas[0m[38;2;248;248;242m [0m[38;2;248;248;242mMat4[0m[38;2;248;248;242m [0m[38;2;249;38;114mexposing[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mMat4[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mMath.Vector3[0m[38;2;248;248;242m [0m[38;2;249;38;114mas[0m[38;2;248;248;242m [0m[38;2;248;248;242mVec3[0m[38;2;248;248;242m [0m[38;2;249;38;114mexposing[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[3;38;2;102;217;239mVec3[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;166;226;46mvec3[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mWebGL[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m MAIN[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mmain [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mBrowser[0m[38;2;249;38;114m.[0m[38;2;248;248;242melement[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m{[0m[38;2;248;248;242m init [0m[38;2;249;38;114m=[0m[38;2;248;248;242m init[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m,[0m[38;2;248;248;242m view [0m[38;2;249;38;114m=[0m[38;2;248;248;242m view[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m,[0m[38;2;248;248;242m update [0m[38;2;249;38;114m=[0m[38;2;248;248;242m update[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m,[0m[38;2;248;248;242m subscriptions [0m[38;2;249;38;114m=[0m[38;2;248;248;242m subscriptions[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m}[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m MODEL[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mtype alias [0m[38;2;166;226;46mModel[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mFloat[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46minit[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;102;217;239m()[0m[38;2;248;248;242m [0m[38;2;249;38;114m->[0m[38;2;248;248;242m ([0m[3;38;2;102;217;239mModel[0m[38;2;248;248;242m, [0m[3;38;2;102;217;239mCmd[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mMsg[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;166;226;46minit [0m[38;2;190;132;255m()[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;102;217;239m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mCmd[0m[38;2;249;38;114m.[0m[38;2;248;248;242mnone [0m[38;2;249;38;114m)[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m UPDATE[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mtype [0m[38;2;166;226;46mMsg[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mTimeDelta[0m[38;2;248;248;242m [0m[38;2;190;132;255mFloat[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mupdate[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mMsg[0m[38;2;248;248;242m [0m[38;2;249;38;114m->[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mModel[0m[38;2;248;248;242m [0m[38;2;249;38;114m->[0m[38;2;248;248;242m ([0m[3;38;2;102;217;239mModel[0m[38;2;248;248;242m, [0m[3;38;2;102;217;239mCmd[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mMsg[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;166;226;46mupdate [0m[38;2;248;248;242mmsg currentTime [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcase [0m[38;2;248;248;242mmsg [0m[38;2;249;38;114mof[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mTimeDelta[0m[38;2;248;248;242m delta [0m[38;2;249;38;114m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242m delta [0m[38;2;249;38;114m+[0m[38;2;248;248;242m currentTime[0m[38;2;102;217;239m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mCmd[0m[38;2;249;38;114m.[0m[38;2;248;248;242mnone [0m[38;2;249;38;114m)[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m SUBSCRIPTIONS[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46msubscriptions[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mModel[0m[38;2;248;248;242m [0m[38;2;249;38;114m->[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mSub[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mMsg[0m
|
||||||
|
[38;2;166;226;46msubscriptions [0m[38;2;248;248;242m_ [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mE[0m[38;2;249;38;114m.[0m[38;2;248;248;242monAnimationFrameDelta [0m[38;2;190;132;255mTimeDelta[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m VIEW[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mview[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mModel[0m[38;2;248;248;242m [0m[38;2;249;38;114m->[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mHtml[0m[38;2;248;248;242m [0m[38;2;255;255;255mmsg[0m
|
||||||
|
[38;2;166;226;46mview [0m[38;2;248;248;242mt [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mWebGL[0m[38;2;249;38;114m.[0m[38;2;248;248;242mtoHtml[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m[[0m[38;2;248;248;242m width [0m[38;2;190;132;255m400[0m[38;2;102;217;239m,[0m[38;2;248;248;242m height [0m[38;2;190;132;255m400[0m[38;2;102;217;239m,[0m[38;2;248;248;242m style [0m[38;2;230;219;116m"[0m[38;2;230;219;116mdisplay[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mblock[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m][0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m[[0m[38;2;248;248;242m [0m[38;2;190;132;255mWebGL[0m[38;2;249;38;114m.[0m[38;2;248;248;242mentity vertexShader fragmentShader mesh [0m[38;2;102;217;239m{[0m[38;2;248;248;242m perspective [0m[38;2;249;38;114m=[0m[38;2;248;248;242m perspective [0m[38;2;249;38;114m([0m[38;2;248;248;242mt [0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;190;132;255m1000[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;102;217;239m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m][0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mperspective[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mFloat[0m[38;2;248;248;242m [0m[38;2;249;38;114m->[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mMat4[0m
|
||||||
|
[38;2;166;226;46mperspective [0m[38;2;248;248;242mt [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mMat4[0m[38;2;249;38;114m.[0m[38;2;248;248;242mmul[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;190;132;255mMat4[0m[38;2;249;38;114m.[0m[38;2;248;248;242mmakePerspective [0m[38;2;190;132;255m45[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m0.01[0m[38;2;248;248;242m [0m[38;2;190;132;255m100[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;190;132;255mMat4[0m[38;2;249;38;114m.[0m[38;2;248;248;242mmakeLookAt [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;249;38;114m([0m[38;2;190;132;255m4[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242m cos t[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;190;132;255m4[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242m sin t[0m[38;2;249;38;114m)[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m[38;2;249;38;114m)[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m MESH[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mtype alias [0m[38;2;166;226;46mVertex[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m{[0m[38;2;248;248;242m position [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mVec3[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m,[0m[38;2;248;248;242m color [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mVec3[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m}[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mmesh[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mWebGL[0m[38;2;248;248;242m.[0m[3;38;2;102;217;239mMesh[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mVertex[0m
|
||||||
|
[38;2;166;226;46mmesh [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mWebGL[0m[38;2;249;38;114m.[0m[38;2;248;248;242mtriangles[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m[[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242m [0m[38;2;190;132;255mVertex[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mVertex[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mVertex[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;249;38;114m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m([0m[38;2;248;248;242mvec3 [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m][0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;117;113;94m--[0m[38;2;117;113;94m SHADERS[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mtype alias [0m[38;2;166;226;46mUniforms[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m{[0m[38;2;248;248;242m perspective [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mMat4[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;102;217;239m}[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mvertexShader[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mWebGL[0m[38;2;248;248;242m.[0m[3;38;2;102;217;239mShader[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mVertex[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mUniforms[0m[38;2;248;248;242m { [0m[38;2;255;255;255mvcolor[0m[38;2;248;248;242m : [0m[3;38;2;102;217;239mVec3[0m[38;2;248;248;242m }[0m
|
||||||
|
[38;2;166;226;46mvertexShader [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m[[0m[38;2;102;217;239mglsl[0m[38;2;249;38;114m|[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114mattribute[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mvec3[0m[38;2;166;226;46m position[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114mattribute[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mvec3[0m[38;2;166;226;46m color[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114muniform[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mmat4[0m[38;2;166;226;46m perspective[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114mvarying[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mvec3[0m[38;2;166;226;46m vcolor[0m[38;2;166;226;46m;[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46m [0m[3;38;2;102;217;239mvoid[0m[38;2;166;226;46m [0m[38;2;166;226;46mmain[0m[38;2;166;226;46m [0m[38;2;166;226;46m([0m[38;2;166;226;46m)[0m[38;2;166;226;46m [0m[38;2;166;226;46m{[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;255;255;255mgl_Position[0m[38;2;166;226;46m [0m[38;2;249;38;114m=[0m[38;2;166;226;46m perspective [0m[38;2;249;38;114m*[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mvec4[0m[38;2;166;226;46m([0m[38;2;166;226;46mposition[0m[38;2;166;226;46m,[0m[38;2;166;226;46m [0m[38;2;190;132;255m1.0[0m[38;2;166;226;46m)[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m vcolor [0m[38;2;249;38;114m=[0m[38;2;166;226;46m color[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;166;226;46m}[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114m|][0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mfragmentShader[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mWebGL[0m[38;2;248;248;242m.[0m[3;38;2;102;217;239mShader[0m[38;2;248;248;242m {} [0m[3;38;2;102;217;239mUniforms[0m[38;2;248;248;242m { [0m[38;2;255;255;255mvcolor[0m[38;2;248;248;242m : [0m[3;38;2;102;217;239mVec3[0m[38;2;248;248;242m }[0m
|
||||||
|
[38;2;166;226;46mfragmentShader [0m[38;2;249;38;114m=[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114m[[0m[38;2;102;217;239mglsl[0m[38;2;249;38;114m|[0m
|
||||||
|
[38;2;166;226;46m precision mediump [0m[3;38;2;102;217;239mfloat[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114mvarying[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mvec3[0m[38;2;166;226;46m vcolor[0m[38;2;166;226;46m;[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46m [0m[3;38;2;102;217;239mvoid[0m[38;2;166;226;46m [0m[38;2;166;226;46mmain[0m[38;2;166;226;46m [0m[38;2;166;226;46m([0m[38;2;166;226;46m)[0m[38;2;166;226;46m [0m[38;2;166;226;46m{[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;255;255;255mgl_FragColor[0m[38;2;166;226;46m [0m[38;2;249;38;114m=[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mvec4[0m[38;2;166;226;46m([0m[38;2;166;226;46mvcolor[0m[38;2;166;226;46m,[0m[38;2;166;226;46m [0m[38;2;190;132;255m1.0[0m[38;2;166;226;46m)[0m[38;2;166;226;46m;[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;166;226;46m}[0m
|
||||||
|
[38;2;166;226;46m [0m[38;2;249;38;114m|][0m
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
[38;2;190;132;255m-[0m[38;2;249;38;114mmodule[0m[38;2;190;132;255m([0m[38;2;166;226;46mbat_erlang[0m[38;2;190;132;255m)[0m[38;2;190;132;255m.[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m-[0m[38;2;249;38;114mexport[0m[38;2;190;132;255m([0m[38;2;190;132;255m[[0m[38;2;190;132;255mmain[0m[38;2;190;132;255m/[0m[38;2;190;132;255m0[0m[38;2;190;132;255m][0m[38;2;190;132;255m)[0m[38;2;190;132;255m.[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m-[0m[38;2;249;38;114mrecord[0m[38;2;190;132;255m([0m[38;2;166;226;46mtest[0m[38;2;190;132;255m,[0m[38;2;190;132;255m [0m[38;2;190;132;255m{[0m
|
||||||
|
[38;2;190;132;255m [0m[38;2;166;226;46mname[0m[38;2;190;132;255m [0m[38;2;190;132;255m::[0m[38;2;190;132;255m [0m[3;38;2;166;226;46mlist[0m[38;2;190;132;255m([0m[38;2;190;132;255m)[0m[38;2;190;132;255m,[0m
|
||||||
|
[38;2;190;132;255m [0m[38;2;166;226;46mdata[0m[38;2;190;132;255m [0m[38;2;190;132;255m::[0m[38;2;190;132;255m [0m[3;38;2;166;226;46mbinary[0m[38;2;190;132;255m([0m[38;2;190;132;255m)[0m
|
||||||
|
[38;2;190;132;255m}[0m[38;2;190;132;255m)[0m[38;2;190;132;255m.[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m-[0m[38;2;249;38;114mdefine[0m[38;2;190;132;255m([0m[38;2;166;226;46mTESTMACRO[0m[38;2;190;132;255m,[0m[38;2;190;132;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mtestmacro[0m[38;2;230;219;116m"[0m[38;2;190;132;255m)[0m[38;2;190;132;255m.[0m
|
||||||
|
|
||||||
|
[38;2;190;132;255m-[0m[38;2;249;38;114mspec[0m[38;2;190;132;255m [0m[38;2;166;226;46mmain[0m[38;2;190;132;255m([0m[38;2;190;132;255m)[0m[38;2;190;132;255m [0m[38;2;190;132;255m->[0m[38;2;190;132;255m [0m[38;2;190;132;255mok[0m[38;2;190;132;255m.[0m
|
||||||
|
[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m%[0m[38;2;117;113;94m% Handling Lists and Numbers[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mList[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m4[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m$[0m[38;2;190;132;255m6[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2#[0m[38;2;190;132;255m00111[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_Sum[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242mlists[0m[38;2;248;248;242m:[0m[38;2;248;248;242msum[0m[38;2;248;248;242m([0m[38;2;255;255;255mList[0m[38;2;248;248;242m)[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242m([0m[38;2;255;255;255mN[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;255;255;255mN[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;255;255;255mN[0m[38;2;248;248;242m [0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;255;255;255mN[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;255;255;255mN[0m[38;2;248;248;242m [0m[38;2;249;38;114m||[0m[38;2;248;248;242m [0m[38;2;255;255;255mN[0m[38;2;248;248;242m [0m[38;2;249;38;114m<-[0m[38;2;248;248;242m [0m[38;2;255;255;255mList[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255mN[0m[38;2;248;248;242m [0m[38;2;249;38;114m>[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;255;255;255m_Head[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255m_SecondHead[0m[38;2;248;248;242m [0m[38;2;248;248;242m|[0m[38;2;248;248;242m [0m[38;2;255;255;255m_Tail[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mList[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255matom[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255mlist[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m<<[0m[38;2;230;219;116m"[0m[38;2;230;219;116mbinary[0m[38;2;230;219;116m"[0m[38;2;248;248;242m>>[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;190;132;255mtuple[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mtuple[0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m#{[0m[38;2;190;132;255mmap[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255mkey[0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m#[0m[38;2;255;255;255mtest[0m[38;2;248;248;242m{[0m[38;2;255;255;255mname[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mrecord[0m[38;2;230;219;116m"[0m[38;2;248;248;242m}[0m[38;2;248;248;242m][0m[38;2;248;248;242m,[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m%[0m[38;2;117;113;94m% Handling Binaries [0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mBinHelloWorld[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m<<[0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello World[0m[38;2;230;219;116m"[0m[38;2;248;248;242m>>[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m<<[0m[38;2;255;255;255mX[0m[38;2;248;248;242m [0m[38;2;249;38;114m||[0m[38;2;248;248;242m [0m[38;2;248;248;242m<<[0m[38;2;255;255;255mX[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1[0m[38;2;248;248;242m/[0m[3;38;2;102;217;239mbinary[0m[38;2;248;248;242m>>[0m[38;2;248;248;242m [0m[38;2;249;38;114m<=[0m[38;2;248;248;242m [0m[38;2;255;255;255mBinHelloWorld[0m[38;2;248;248;242m [0m[38;2;248;248;242m>>[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m<<[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m151[0m[38;2;248;248;242m>>[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m<<[0m[38;2;190;132;255m151[0m[38;2;248;248;242m:[0m[38;2;190;132;255m64[0m[38;2;248;248;242m/[0m[38;2;249;38;114msigned[0m[38;2;248;248;242m-[0m[3;38;2;102;217;239minteger[0m[38;2;248;248;242m>>[0m[38;2;248;248;242m,[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m%[0m[38;2;117;113;94m% Handling Boolean and Atoms[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m [0m[38;2;249;38;114mandalso[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m[38;2;248;248;242m [0m[38;2;249;38;114morelse[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m [0m[38;2;249;38;114m=:=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m[38;2;248;248;242m [0m[38;2;249;38;114m=/=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m'[0m[38;2;190;132;255mHELLO[0m[38;2;190;132;255m'[0m[38;2;248;248;242m [0m[38;2;249;38;114m/=[0m[38;2;248;248;242m [0m[38;2;190;132;255mhello[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mhello[0m[38;2;248;248;242m [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;190;132;255mworld[0m[38;2;248;248;242m,[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m%[0m[38;2;117;113;94m% Handling Maps and Records[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mTestMap[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m#{[0m[38;2;190;132;255ma[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mb[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mc[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m#{[0m[38;2;190;132;255ma[0m[38;2;248;248;242m [0m[38;2;248;248;242m:=[0m[38;2;248;248;242m [0m[38;2;255;255;255m_Value[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mc[0m[38;2;248;248;242m [0m[38;2;248;248;242m:=[0m[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mTestMap[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mTestMap[0m[38;2;248;248;242m#{[0m[38;2;190;132;255md[0m[38;2;248;248;242m [0m[38;2;248;248;242m=>[0m[38;2;248;248;242m [0m[38;2;190;132;255m4[0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mRecord[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m#[0m[38;2;255;255;255mtest[0m[38;2;248;248;242m{[0m[38;2;255;255;255mname[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m?[0m[38;2;190;132;255mTESTMACRO[0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mRecord[0m[38;2;248;248;242m#[0m[38;2;255;255;255mtest[0m[38;2;248;248;242m.[0m[38;2;255;255;255mname[0m[38;2;248;248;242m,[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m%[0m[38;2;117;113;94m% Conditionals[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mcase[0m[38;2;248;248;242m [0m[38;2;255;255;255mTestMap[0m[38;2;248;248;242m [0m[38;2;249;38;114mof[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m#{[0m[38;2;190;132;255mb[0m[38;2;248;248;242m [0m[38;2;248;248;242m:=[0m[38;2;248;248;242m [0m[38;2;255;255;255mB[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mB[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mok[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242merlang[0m[38;2;248;248;242m:[0m[38;2;102;217;239mis_map[0m[38;2;248;248;242m([0m[38;2;255;255;255mTestMap[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mmap[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mtest_function[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m,[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m%[0m[38;2;117;113;94m% Messaging[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mSelf[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242merlang[0m[38;2;248;248;242m:[0m[38;2;102;217;239mself[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mSelf[0m[38;2;248;248;242m [0m[38;2;249;38;114m![0m[38;2;248;248;242m [0m[38;2;190;132;255mhello_world[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreceive[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mhello_world[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mok[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255m_[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242mio[0m[38;2;248;248;242m:[0m[38;2;248;248;242mformat[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116munknown message[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mafter[0m[38;2;248;248;242m [0m[38;2;190;132;255m1000[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mtimeout[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m,[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mok[0m[38;2;248;248;242m.[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46mtest_function[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mN[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114mwhen[0m[38;2;248;248;242m [0m[38;2;248;248;242merlang[0m[38;2;248;248;242m:[0m[38;2;102;217;239mis_integer[0m[38;2;248;248;242m([0m[38;2;255;255;255mN[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m[38;2;248;248;242m [0m[38;2;190;132;255minteger[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;166;226;46mtest_function[0m[38;2;248;248;242m([0m[38;2;248;248;242m[[0m[38;2;255;255;255m_[0m[38;2;248;248;242m|[0m[38;2;255;255;255m_[0m[38;2;248;248;242m][0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m[38;2;248;248;242m [0m[38;2;190;132;255mlist[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;166;226;46mtest_function[0m[38;2;248;248;242m([0m[38;2;248;248;242m<<[0m[38;2;255;255;255m_[0m[38;2;248;248;242m/[0m[3;38;2;102;217;239mbinary[0m[38;2;248;248;242m>>[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m[38;2;248;248;242m [0m[38;2;190;132;255mbinary[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;166;226;46mtest_function[0m[38;2;248;248;242m([0m[38;2;255;255;255m_[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m->[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;190;132;255mundefined[0m[38;2;248;248;242m.[0m
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
[38;2;249;38;114mroot[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m0[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mroot[0m
|
||||||
|
[38;2;249;38;114msys[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m3[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mbin[0m
|
||||||
|
[38;2;249;38;114mmem[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m8[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mftp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m11[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mmail[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m12[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mlog[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m19[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msmmsp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m25[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mproc[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m26[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mpolkitd[0m
|
||||||
|
[38;2;249;38;114mgames[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m50[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mlock[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m54[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mnetwork[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m90[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mfloppy[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m94[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mscanner[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m96[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mpower[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m98[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114madm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m999[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mdaemon[0m
|
||||||
|
[38;2;249;38;114mwheel[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m998[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114mkmem[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m997[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mtty[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m5[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mutmp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m996[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114maudio[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m995[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mmpd,username[0m
|
||||||
|
[38;2;249;38;114mdisk[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m994[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114minput[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m993[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mkvm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m992[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mlp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m991[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114moptical[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m990[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114mrender[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m989[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mstorage[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m988[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114muucp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m987[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mvideo[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m986[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114musers[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m985[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msystemd-journal[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m984[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mrfkill[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m983[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mbin[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mdaemon[0m
|
||||||
|
[38;2;249;38;114mdaemon[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m2[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mbin[0m
|
||||||
|
[38;2;249;38;114mhttp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m33[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mnobody[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m65534[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mdbus[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m81[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msystemd-journal-remote[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m982[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msystemd-network[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m981[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msystemd-resolve[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m980[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msystemd-timesync[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m979[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114msystemd-coredump[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m978[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114muuidd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m68[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114musername[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1000[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mgit[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m977[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mavahi[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m976[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mcolord[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m975[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mpolkitd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m102[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mmpd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m45[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mrtkit[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m133[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mtransmission[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m169[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mwireshark[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m150[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114mlightdm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m974[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mgeoclue[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m973[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114musbmux[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m140[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mdhcpcd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m972[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mbrlapi[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m971[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mgdm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m120[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mlibvirt[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m970[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mflatpak[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m969[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mgluster[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m968[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mrpc[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m32[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mtor[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m43[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mrslsync[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m967[0m[38;2;248;248;242m:[0m
|
||||||
|
[38;2;249;38;114mdocker[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m966[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114msambashare[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1002[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m
|
||||||
|
[38;2;249;38;114mnamed[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m40[0m[38;2;248;248;242m:[0m
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
[38;2;255;255;255mset[0m[38;2;255;255;255m [0m[38;2;255;255;255mfish_greeting[0m[38;2;255;255;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mbegin[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m--[0m[3;38;2;253;151;31mlocal[0m[38;2;255;255;255m [0m[38;2;255;255;255mAUTOJUMP_PATH[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mXDG_CONFIG_HOME[0m[38;2;255;255;255m/fish/functions/autojump.fish[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255mtest[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mAUTOJUMP_PATH[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msource[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mAUTOJUMP_PATH[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255mfish_vi_key_bindings[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;249;38;114mfunction[0m[38;2;255;255;255m [0m[38;2;166;226;46mfish_prompt[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mbrblack[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m[[0m[38;2;230;219;116m"[0m[38;2;255;255;255m([0m[38;2;255;255;255mdate[0m[38;2;255;255;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m+%H:%M[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;230;219;116m"[0m[38;2;230;219;116m] [0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mblue[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;255;255;255mhostname[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;102;217;239m[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mPWD[0m[38;2;255;255;255m [0m[38;2;255;255;255m!=[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mHOME[0m[38;2;255;255;255m [0m[38;2;102;217;239m][0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mbrblack[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m:[0m[38;2;230;219;116m'[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255myellow[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;255;255;255mbasename[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mPWD[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;249;38;114mend[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mgreen[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mprintf[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m%s [0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;255;255;255m__fish_git_prompt[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mred[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m| [0m[38;2;230;219;116m'[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mnormal[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mfunction[0m[38;2;255;255;255m [0m[38;2;166;226;46mfish_greeting[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;255;255;255muname[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mro[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mawk[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m{print " [0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[1mOS: [0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0;32m"$0"[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m"}[0m[38;2;230;219;116m'[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;255;255;255muptime[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mp[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/^up //[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mawk[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m{print " [0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[1mUptime: [0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0;32m"$0"[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m"}[0m[38;2;230;219;116m'[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;255;255;255muname[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mn[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mawk[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m{print " [0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[1mHostname: [0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0;32m"$0"[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m"}[0m[38;2;230;219;116m'[0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m [0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[1mDisk usage:[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mne[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mdf[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31ml[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mh[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;255;255;255mgrep[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mE[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mdev/(xvda|sd|mapper)[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mawk[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m{printf "[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116mt%s[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116mt%4s / %4s %s[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116mn\n", $6, $3, $2, $5}[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/^\(.*\([8][5-9]\|[9][0-9]\)%.*\)$/[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0;31m\1[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/^\(.*\([7][5-9]\|[8][0-4]\)%.*\)$/[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0;33m\1[0m[38;2;190;132;255m\\[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mpaste[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31msd[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m'[0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m
|
||||||
|
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m [0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[1mNetwork:[0m[38;2;190;132;255m\\[0m[38;2;230;219;116me[0m[0m[38;2;230;219;116m"[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m http://tdt.rocks/linux_network_interface_naming.html[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mne[0m[38;2;255;255;255m [0m[38;2;255;255;255m([0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mip[0m[38;2;255;255;255m [0m[38;2;255;255;255maddr[0m[38;2;255;255;255m [0m[38;2;255;255;255mshow[0m[38;2;255;255;255m [0m[38;2;255;255;255mup[0m[38;2;255;255;255m [0m[38;2;255;255;255mscope[0m[38;2;255;255;255m [0m[38;2;255;255;255mglobal[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mgrep[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mE[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m: <|inet[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/^[[:digit:]]\+: //[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/: <.*//[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/.*inet[[:digit:]]* //[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31me[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/\/.*//[0m[38;2;230;219;116m'[0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mawk[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mBEGIN {i=""} /\.|:/ {print i" "$0"[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\n"; next} // {i = $0}[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msort[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mcolumn[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mt[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mR1[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m public addresses are underlined for visibility \[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/ \([^ ]\+\)$/ [0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[4m\1/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m private addresses are not \[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/m\(\(10\.\|172\.\(1[6-9]\|2[0-9]\|3[01]\)\|192\.168\.\).*\)/m[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[24m\1/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m unknown interfaces are cyan \[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/^\( *[^ ]\+\)/[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[36m\1/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m ethernet interfaces are normal \[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/\(\(en\|em\|eth\)[^ ]* .*\)/[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[39m\1/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m wireless interfaces are purple \[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/\(wl[^ ]* .*\)/[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[35m\1/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m wwan interfaces are yellow \[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/\(ww[^ ]* .*\).*/[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[33m\1/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/$/[0m[38;2;190;132;255m\\[0m[38;2;230;219;116m\e[0m/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;249;38;114m|[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255msed[0m[38;2;255;255;255m [0m[38;2;230;219;116m'[0m[38;2;230;219;116ms/^/\t/[0m[38;2;230;219;116m'[0m[38;2;255;255;255m [0m[38;2;190;132;255m\[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255m)[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mecho[0m
|
||||||
|
[38;2;255;255;255m [0m[38;2;255;255;255mset_color[0m[38;2;255;255;255m [0m[38;2;255;255;255mnormal[0m
|
||||||
|
[38;2;249;38;114mend[0m
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
[38;2;249;38;114m#version[0m[38;2;190;132;255m 330 [0m[38;2;166;226;46mcore[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114m#ifdef[0m[38;2;190;132;255m TEST[0m
|
||||||
|
[38;2;249;38;114mlayout[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mlocation [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114min[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvec4[0m[38;2;248;248;242m vertex[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;249;38;114m#else[0m
|
||||||
|
[38;2;249;38;114mlayout[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mlocation [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m6[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114min[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvec4[0m[38;2;248;248;242m vertex[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;249;38;114m#endif[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114mout[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvec2[0m[38;2;248;248;242m p_textureVertex[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m/*[0m
|
||||||
|
[38;2;117;113;94m * This stores offsets[0m
|
||||||
|
[38;2;117;113;94m [0m[38;2;117;113;94m*/[0m
|
||||||
|
[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m [0m[38;2;166;226;46mData[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m offsetX[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m offsetY[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114muniform[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mmat4[0m[38;2;248;248;242m projectionMatrix[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;249;38;114muniform[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbool[0m[38;2;248;248;242m test[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;249;38;114muniform[0m[38;2;248;248;242m Data data[0m[38;2;248;248;242m;[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;166;226;46mcalc[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mtest[0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m1.0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m0.0[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
|
|
||||||
|
[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m
|
||||||
|
[38;2;248;248;242m{[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m This GLSL code serves the purpose of bat syntax highlighting tests[0m
|
||||||
|
[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m x [0m[38;2;249;38;114m=[0m[38;2;248;248;242m data[0m[38;2;248;248;242m.[0m[38;2;255;255;255moffsetX[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;248;248;242mcalc[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m [0m[38;2;255;255;255mgl_Position[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m projectionMatrix [0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvec4[0m[38;2;248;248;242m([0m[38;2;248;248;242mvertex[0m[38;2;248;248;242m.[0m[38;2;255;255;255mxy[0m[38;2;248;248;242m,[0m[38;2;248;248;242m data[0m[38;2;248;248;242m.[0m[38;2;255;255;255moffsetX[0m[38;2;248;248;242m,[0m[38;2;248;248;242m data[0m[38;2;248;248;242m.[0m[38;2;255;255;255moffsetY[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m p_textureVertex [0m[38;2;249;38;114m=[0m[38;2;248;248;242m vertex[0m[38;2;248;248;242m.[0m[38;2;255;255;255mzw[0m[38;2;248;248;242m;[0m
|
||||||
|
[38;2;248;248;242m}[0m
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[38;2;117;113;94m#[0m
|
||||||
|
[38;2;117;113;94m#[0m[38;2;117;113;94m Comment[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242m[[0m[38;2;166;226;46mattr[0m[38;2;248;248;242m][0m[38;2;255;255;255mbinary[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mdiff[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mmerge[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mtext[0m
|
||||||
|
|
||||||
|
[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m=[0m[38;2;230;219;116mauto[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mc[0m[38;2;248;248;242m [0m[38;2;255;255;255mdiff[0m[38;2;248;248;242m=[0m[38;2;230;219;116mc[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mcc[0m[38;2;248;248;242m [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;255;255;255mdiff[0m[38;2;248;248;242m=[0m[38;2;230;219;116mcpp[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mo[0m[38;2;248;248;242m [0m[38;2;255;255;255mbinary[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mbat[0m[38;2;248;248;242m [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;255;255;255meol[0m[38;2;248;248;242m=[0m[38;2;230;219;116mcrlf[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mlock[0m[38;2;248;248;242m [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mdiff[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;249;38;114m*[0m[38;2;166;226;46mignore[0m[38;2;248;248;242m [0m[38;2;255;255;255mtext[0m
|
||||||
|
[38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mpatch[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mtext[0m
|
||||||
|
|
||||||
|
[38;2;166;226;46m.[0m[38;2;166;226;46mgitattributes[0m[38;2;248;248;242m [0m[38;2;255;255;255mlinguist-language[0m[38;2;248;248;242m=[0m[38;2;230;219;116mgitattributes[0m
|
||||||
|
[38;2;166;226;46m.[0m[38;2;166;226;46mgitkeep[0m[38;2;248;248;242m [0m[38;2;255;255;255mexport-ignore[0m
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user