Skip to content

Commit b842758

Browse files
committed
Add 'vendored_parsers/tree-sitter-d/' from commit 'fb028c8f14f4188286c2eef143f105def6fbf24f'
git-subtree-dir: vendored_parsers/tree-sitter-d git-subtree-mainline: 093cfea git-subtree-split: fb028c8
2 parents 093cfea + fb028c8 commit b842758

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+714511
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
BasedOnStyle: WebKit
2+
UseTab: ForIndentation
3+
IndentWidth: 8
4+
ColumnLimit: 79
5+
AlignConsecutiveAssignments: true
6+
AlignConsecutiveDeclarations: true
7+
AlignTrailingComments: true
8+
AlignEscapedNewlines: Left
9+
PointerAlignment: Right
10+
DerivePointerAlignment: false
11+
ForEachMacros: ['NNI_LIST_FOREACH']
12+
AlwaysBreakAfterReturnType: TopLevelDefinitions
13+
SpaceAfterCStyleCast: true
14+
AllowShortFunctionsOnASingleLine: Inline
15+
BreakBeforeBinaryOperators: None
16+
TabWidth: 8
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{json,toml,yml,gyp}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.js]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.rs]
18+
indent_style = space
19+
indent_size = 4
20+
21+
[*.{c,cc,h}]
22+
indent_style = space
23+
indent_size = 4
24+
25+
[*.{py,pyi}]
26+
indent_style = space
27+
indent_size = 4
28+
29+
[*.swift]
30+
indent_style = space
31+
indent_size = 4
32+
33+
[*.go]
34+
indent_style = tab
35+
indent_size = 8
36+
37+
[Makefile]
38+
indent_style = tab
39+
indent_size = 8
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/src/parser.c linguist-generated
2+
/src/*.json linguist-generated
3+
/src/tree_sitter/* linguist-vendored
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: [gdamore]
4+
tidelift: cargo/tree-sitter-d
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior. If this is a grammar bug, please include a sample of grammar acceptable to DMD but rejected by this grammar. For queries or highlighting issues, samples are also helpful.
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
20+
**Additional context**
21+
Add any other context about the problem here.
22+
Your OS, and tree-sitter version, and if you're using this in the context of another project (such as an editor that is making use of the grammar), that is useful
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build/test
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
jobs:
7+
test:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: true
11+
matrix:
12+
os: [macos-latest, ubuntu-latest, windows-latest]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: latest
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
- run: npm install
22+
- run: npm test
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
samples
2+
log.html
3+
output
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
We welcome additional contributions from the community!
2+
If you're thinking of contributing, here's what you should know.
3+
4+
1. First check to make sure if an issue for the problem you're addressing,
5+
or feature you're adding, has already been filed. If not, file one here:
6+
7+
https://github.com/gdamore/tree-sitter-d/issues
8+
9+
Please indicate in the description of the issue that you're working on
10+
the issue, so we don't duplicate effort.
11+
12+
2. By submitting code to the project, you are asserting that the work is
13+
either your own, or that you are authorized to submit it to this project.
14+
Further, you are asserting that the project may continue to use, modify,
15+
and redistribute your contribution under the terms in the LICENSE.txt file.
16+
17+
3. We maintain an "always release ready" stance for the master branch. That
18+
is, at any point in time the tree should be in a state that a release
19+
could be cut, and bisect should never find a point where an issue is
20+
incompletely fixed or addressed.
21+
22+
4. Your code must pass the CI checks. You can test your grammar
23+
using "tree-sitter test", and it must be clean.
24+
25+
5. If you add content to the grammar.js, please make sure to run
26+
the "npm format" script. You will need "prettifier" to be
27+
installed.
28+
29+
6. If you change the scanner.c file, please observe the formatting.
30+
You can format the code automatically using clang-format, and a
31+
`.clang-format` file is provided for this purpose.
32+
33+
7. Every issue must be fixed by at most one git commit, which shall normally
34+
be identified in the first line of the commit message using the syntax
35+
36+
"fixes #<issue#> <exact issue synopsis>"
37+
38+
You can have multiple such lines if your commit addresses multiple issues,
39+
but this is normally discouraged.
40+
41+
8. No merge commits. Rebase if you need to.
42+
43+
9. Additional text may follow the above line(s), separated from them by an
44+
empty line. Normally this is not necessary, since the information should
45+
be in the bug tracking system. Look at the git log to see examples.
46+
47+
10. Submit a GitHub pull request. Ideally just one bug per PR if possible,
48+
and based upon the latest commit in the GitHub master branch.
49+
50+
11. We may rebase your changes, including squashing multiple commits,
51+
or ask you to do so, if you have not followed the procedure above, or
52+
if other changes have been made to the tree since you committed.
53+
54+
12. If you wish to add a copyright notice, please do so after any
55+
existing one and follow the existing style, and do not add new terms.
56+
(For example, do not add "All rights reserved.")
57+
58+
Thank you for your contributions!

0 commit comments

Comments
 (0)