-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
363195d
commit 0d17f2d
Showing
6 changed files
with
248 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root=true | ||
|
||
[*] | ||
tab_width = 4 | ||
|
||
[*.g4] | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Recipe from: https://help.github.com/articles/dealing-with-line-endings/#platform-all | ||
|
||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.abnf text | ||
*.agc text | ||
*.asn text | ||
*.b text | ||
*.bas text | ||
*.bnf text | ||
*.c text | ||
*.cl text | ||
*.cpp text | ||
*.cs text | ||
*.css text | ||
*.csv text | ||
*.dgs text | ||
*.dot text | ||
*.erl text | ||
*.errors text | ||
*.faa text | ||
*.ffn text | ||
*.fna text | ||
*.g text | ||
*.g4 text | ||
*.g42 text | ||
*.gff text | ||
*.gml text | ||
*.go text | ||
*.gradle text | ||
*.h text | ||
*.html text | ||
*.ics text | ||
*.idl text | ||
*.iri text | ||
*.java text | ||
*.js text | ||
*.json text | ||
*.kt text | ||
*.lua text | ||
*.m text | ||
*.map text | ||
*.md text | ||
*.mo text | ||
*.mps text | ||
*.ora text | ||
*.pas text | ||
*.pc text | ||
*.pgn text | ||
*.php text | ||
*.pkb text | ||
*.pks text | ||
*.properties text | ||
*.proto text | ||
*.py text | ||
*.rb text | ||
*.s text | ||
*.sh text | ||
*.smt2 text | ||
*.sno text | ||
*.sql text | ||
*.st text | ||
*.style text | ||
*.swift text | ||
*.tree text | ||
*.ttl text | ||
*.txt text | ||
*.upnp text | ||
*.vb text | ||
*.vhd text | ||
*.x text | ||
*.xml text | ||
*.yml text | ||
access_log text | ||
|
||
# Declare files that will always have LF line endings on checkout. | ||
# Unicode input files end with *.txt, but should not be converted on Windows | ||
/unicode/graphemes/examples/*.txt eol=lf | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
# Currently the /vb6/**/*.cls and *.frm file need this, otherwise the grammar fails. | ||
*.cls text eol=crlf | ||
*.frm text eol=crlf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.pdf binary | ||
*.png binary | ||
|
||
|
||
**/examples/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> | ||
<id>grammars</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${project.basedir}</directory> | ||
<includes> | ||
<include>**/*.g4</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
command -v mvn >/dev/null 2>&1 || { echo >&2 "I require maven to test the grammars but it's not installed. Aborting."; exit 1; } | ||
mvn test $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters