mirror of https://github.com/Wilfred/difftastic/
Merge commit 'b338fa9f4807b9e0336cd4dde04948a8c324a4cf'
commit
4eaba59c5e
@ -1,3 +1,6 @@
|
||||
[submodule "examples/bash-it"]
|
||||
path = examples/bash-it
|
||||
url = https://github.com/Bash-it/bash-it.git
|
||||
[submodule "examples/bash"]
|
||||
path = examples/bash
|
||||
url = https://git.savannah.gnu.org/git/bash.git
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
language: node_js
|
||||
|
||||
sudo: false
|
||||
|
||||
node_js:
|
||||
- node
|
||||
|
||||
os:
|
||||
- linux
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
env: COMPILER=clang++
|
||||
osx_image: xcode9.2
|
||||
compiler: clang
|
||||
- os: linux
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^v.*$/
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: npm run pre-build && npm run pre-build:upload -u ${PREBUILD_UPLOAD}
|
||||
skip_cleanup: true
|
||||
on:
|
||||
all_branches: true
|
||||
tags: true
|
||||
|
||||
env:
|
||||
global:
|
||||
secure: jAdfI37gohXm5VvR5h2AoWVwUMS9hUPxZIP4VR2iOkTSZLaaZczvL04IRNv3bQY6WUYxcVB6xoKbOPMKE1cHvXM8L2W6G1InPxU14P6fKd2MGWxH6PWmCoXHWFQ1AzWkYsMgMokHT2vs4iZ2bLHE9uV3RVuAISO/APsw7AxEpEijljvPkL+Se0nTnCfTbw4ObGxEMRW7TnjKa2W7K8m4QbbGd+r9CzCxBakjdIePQx81IUAAIGwphkY/avNJeUvR1XLnAM38K9Yj0ioSfeV6/QshK/28DLmvilq9sV4LDLVlhgP6h1FB4HW3PEVvYWnWBKa9cUdIAIncya2ibvu2cRHYVbud4Ho6lMCk/QUuiPYLCfnOfa4byVj3DInOY1yCpu+YnqjVOUHV5wQLEvnArLCuJa7dlJSmYquzVr5NkOz9gMmFAyuznL3YdJYY98QH/5GO5FwE8jXiYMoQ+hW52gUB6vZaJqYJu+IwyEhVXj8SVyV3Z77fFmJpdo0FX8R4Mm/3ucVXfWAXifFQbosRM4czVJ3RNTn2Xwf5Vp0ayih4huhwB9reByNPnYJABNUQpiAS3ZRsd+fcmMstkHZOk9EpSq33kubqcN+kub3sGNOJTt9243FOd6BghNNjhC2lqTWZsefyJUuL3Xm5YjJrJWfyif6RPnJZHinn3jfn464=
|
||||
@ -0,0 +1,39 @@
|
||||
// swift-tools-version:5.3
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "TreeSitterBash",
|
||||
products: [
|
||||
.library(name: "TreeSitterBash", targets: ["TreeSitterBash"]),
|
||||
],
|
||||
dependencies: [],
|
||||
targets: [
|
||||
.target(name: "TreeSitterBash",
|
||||
path: ".",
|
||||
exclude: [
|
||||
"binding.gyp",
|
||||
"bindings",
|
||||
"Cargo.toml",
|
||||
"corpus",
|
||||
"grammar.js",
|
||||
"LICENSE",
|
||||
"Makefile",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"script",
|
||||
".travis.yml",
|
||||
"appveyor.yaml",
|
||||
"src/grammar.json",
|
||||
"src/node-types.json",
|
||||
],
|
||||
sources: [
|
||||
"src/parser.c",
|
||||
"src/scanner.cc",
|
||||
],
|
||||
resources: [
|
||||
.copy("queries")
|
||||
],
|
||||
publicHeadersPath: "bindings/swift",
|
||||
cSettings: [.headerSearchPath("src")])
|
||||
]
|
||||
)
|
||||
@ -0,0 +1,16 @@
|
||||
#ifndef TREE_SITTER_BASH_H_
|
||||
#define TREE_SITTER_BASH_H_
|
||||
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern TSLanguage *tree_sitter_bash();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_BASH_H_
|
||||
@ -1,35 +0,0 @@
|
||||
# See https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion-Flags
|
||||
=============================
|
||||
Parameter Expansion Flags
|
||||
=============================
|
||||
echo ${(v)V}
|
||||
echo ${(s.:.)V}
|
||||
echo ${(@)V}
|
||||
echo ${()V}
|
||||
|
||||
---
|
||||
|
||||
(program
|
||||
(command (command_name (word)) (expansion (expansion_flags) (variable_name)))
|
||||
(command (command_name (word)) (expansion (expansion_flags) (variable_name)))
|
||||
(command (command_name (word)) (expansion (expansion_flags) (variable_name)))
|
||||
(command (command_name (word)) (expansion (expansion_flags) (variable_name))))
|
||||
|
||||
=============================
|
||||
Parameter Expansion Flags Quotes
|
||||
=============================
|
||||
echo "${(v_sldkfj_sdklfj)V}"
|
||||
|
||||
---
|
||||
|
||||
(program
|
||||
(command (command_name (word)) (string (expansion (expansion_flags) (variable_name)))))
|
||||
=============================
|
||||
Parameter Expansion Invalid Flags
|
||||
=============================
|
||||
echo "${(())V}"
|
||||
|
||||
---
|
||||
|
||||
(program
|
||||
(command (command_name (word)) (string (expansion (ERROR) (expansion_flags) (ERROR (word))))))
|
||||
@ -0,0 +1 @@
|
||||
Subproject commit a99d905216cc0aac5de0c3050f4afc54e21c6bc5
|
||||
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
shopt -s globstar
|
||||
|
||||
known_failures="$(cat script/known-failures.txt)"
|
||||
|
||||
tree-sitter parse -q -t \
|
||||
examples/bash-it/**/*.bash \
|
||||
examples/bash-it/**/*.sh \
|
||||
examples/bash/tests/*.tests \
|
||||
examples/*.sh \
|
||||
$(for failure in $known_failures; do echo "!${failure}"; done)
|
||||
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
known_failures="$(cat script/known-failures.txt)"
|
||||
|
||||
tree-sitter parse -q -t \
|
||||
examples/**/*.bash \
|
||||
examples/**/*.sh \
|
||||
$(for failure in $known_failures; do echo "!${failure}"; done)
|
||||
@ -1,7 +1,10 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
shopt -s globstar
|
||||
|
||||
tree-sitter parse -q -t \
|
||||
examples/**/*.sh \
|
||||
examples/**/*.bash \
|
||||
examples/bash-it/**/*.bash \
|
||||
examples/bash-it/**/*.sh \
|
||||
examples/bash/tests/*.tests \
|
||||
examples/*.sh \
|
||||
| egrep 'ERROR|MISSING' \
|
||||
| tee >(cut -d' ' -f1 | sort > script/known-failures.txt)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue