Skip to content

Commit 1513001

Browse files
committed
Переезд на оригинальный antlr 4.13.1
Нарушена обратная совместимость
2 parents 9147679 + c9c7731 commit 1513001

File tree

9 files changed

+20
-21
lines changed

9 files changed

+20
-21
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "daily"
12+
groups:
13+
freefair:
14+
patterns:
15+
- "io.freefair.*"
1216
- package-ecosystem: "github-actions"
1317
directory: "/"
1418
schedule:
1519
interval: "daily"
16-

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
cp -R temp/site/. public/dev/en
124124
125125
- name: Deploy
126-
uses: peaceiris/actions-gh-pages@v3.9.3
126+
uses: peaceiris/actions-gh-pages@v4.0.0
127127
with:
128128
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
129129
publish_branch: gh-pages

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ gen/
7070
/.idea/misc.xml
7171
*.tokens
7272
/.idea/inspectionProfiles/Project_Default.xml
73+
/.idea/material_theme_project_new.xml

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# BSL Parser
22

3-
[![Build Status](https://travis-ci.org/1c-syntax/bsl-parser.svg?branch=master)](https://travis-ci.org/1c-syntax/bsl-parser)
4-
[![JitPack](https://jitpack.io/v/1c-syntax/bsl-parser.svg)](https://jitpack.io/#1c-syntax/bsl-parser)
53
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=1c-syntax_bsl-parser&metric=alert_status)](https://sonarcloud.io/dashboard?id=1c-syntax_bsl-parser)
64
[![Maintainability](https://sonarcloud.io/api/project_badges/measure?project=1c-syntax_bsl-parser&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=1c-syntax_bsl-parser)
75
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=1c-syntax_bsl-parser&metric=coverage)](https://sonarcloud.io/dashboard?id=1c-syntax_bsl-parser)

build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ plugins {
88
`java-library`
99
antlr
1010
signing
11-
id("org.sonarqube") version "4.4.1.3373"
11+
id("org.sonarqube") version "5.0.0.4638"
1212
id("org.cadixdev.licenser") version "0.6.1"
1313
id("me.qoomon.git-versioning") version "6.4.3"
14-
id("io.freefair.javadoc-links") version "8.4"
15-
id("io.freefair.javadoc-utf-8") version "8.4"
16-
id("com.github.ben-manes.versions") version "0.50.0"
14+
id("io.freefair.javadoc-links") version "8.6"
15+
id("io.freefair.javadoc-utf-8") version "8.6"
16+
id("com.github.ben-manes.versions") version "0.51.0"
1717
id("me.champeau.gradle.jmh") version "0.5.3"
18-
id("io.freefair.maven-central.validate-poms") version "8.4"
19-
id("ru.vyarus.pom") version "2.2.2"
18+
id("io.freefair.maven-central.validate-poms") version "8.6"
19+
id("ru.vyarus.pom") version "3.0.0"
2020
id("io.codearte.nexus-staging") version "0.30.0"
2121
}
2222

@@ -45,15 +45,15 @@ gitVersioning.apply {
4545
val isSnapshot = gitVersioning.gitVersionDetails.refType != GitRefType.TAG
4646

4747
dependencies {
48-
antlr("com.tunnelvisionlabs", "antlr4", "4.9.0")
48+
antlr("org.antlr", "antlr4", "4.13.1")
4949

50-
implementation("io.github.1c-syntax", "bsl-parser-core", "0.1.0")
50+
implementation("io.github.1c-syntax", "bsl-parser-core", "0.2.0")
5151

5252
// stat analysis
5353
compileOnly("com.google.code.findbugs", "jsr305", "3.0.2")
5454

5555
// testing
56-
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.1.1")
56+
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.2.0")
5757
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.10.1")
5858
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.10.1")
5959
testImplementation("org.junit.jupiter", "junit-jupiter-params", "5.10.1")

src/main/antlr/BSLLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ channels {
2929
@members {
3030
public BSLLexer(CharStream input, boolean crAwareCostructor) {
3131
super(input);
32-
_interp = new CRAwareLexerATNSimulator(this, _ATN);
33-
validateInputStream(_ATN, input);
32+
_interp = new CRAwareLexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
3433
}
3534
}
3635

src/main/antlr/BSLMethodDescriptionLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ lexer grammar BSLMethodDescriptionLexer;
2727
@members {
2828
public BSLMethodDescriptionLexer(CharStream input, boolean crAwareCostructor) {
2929
super(input);
30-
_interp = new CRAwareLexerATNSimulator(this, _ATN);
31-
validateInputStream(_ATN, input);
30+
_interp = new CRAwareLexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
3231
}
3332
}
3433

src/main/antlr/SDBLLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ lexer grammar SDBLLexer;
2727
@members {
2828
public SDBLLexer(CharStream input, boolean crAwareCostructor) {
2929
super(input);
30-
_interp = new CRAwareLexerATNSimulator(this, _ATN);
31-
validateInputStream(_ATN, input);
30+
_interp = new CRAwareLexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
3231
}
3332
}
3433

src/test/java/com/github/_1c_syntax/bsl/parser/description/BSLDescriptionReaderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ void parseVariableDescription2() {
432432

433433
@Test
434434
void parseVariableDescription3() {
435-
var exampleString = "// Описание переменной\n// Устарела. см. НоваяПеременная";
435+
var exampleString = "// Устарела. см. НоваяПеременная\n// Описание переменной";
436436
var tokens = getTokensFromString(exampleString);
437437
var variableDescription = BSLDescriptionReader.parseVariableDescription(tokens);
438438

@@ -445,7 +445,7 @@ void parseVariableDescription3() {
445445
assertThat(variableDescription.getLink()).isEmpty();
446446

447447
assertThat(
448-
Objects.equals(variableDescription.getSimpleRange(), create(1, 32)))
448+
Objects.equals(variableDescription.getSimpleRange(), create(1, 22)))
449449
.isTrue();
450450
}
451451

0 commit comments

Comments
 (0)