Skip to content

Commit f083ee2

Browse files
Reformat to coding standard.
1 parent 21cf572 commit f083ee2

File tree

16 files changed

+64
-63
lines changed

16 files changed

+64
-63
lines changed

ada/ada2012/AdaParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ attribute_designator
432432
;
433433

434434
range_attribute_reference
435-
// : prefix '\'' range_attribute_designator
435+
// : prefix '\'' range_attribute_designator
436436
: name '\'' range_attribute_designator
437437
;
438438

asm/ptx/ptx-isa-1.0/PTXLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ LEU : '.leu';
192192
GTU : '.gtu';
193193
GEU : '.geu';
194194
NUM : '.num';
195-
NAN_ : '.nan';
195+
NAN_ : '.nan';
196196
HI : '.hi';
197197
LO : '.lo';
198198
WIDE : '.wide';

java/java/JavaParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,8 @@ methodCall
597597
;
598598

599599
expression
600-
// Expression order in accordance with https://introcs.cs.princeton.edu/java/11precedence/
601-
// Level 16, Primary, array and member access
600+
// Expression order in accordance with https://introcs.cs.princeton.edu/java/11precedence/
601+
// Level 16, Primary, array and member access
602602
: primary
603603
| expression '[' expression ']'
604604
| expression bop = '.' (

javascript/javascript/JavaScriptParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ singleExpression
404404
;
405405

406406
initializer
407-
// TODO: must be `= AssignmentExpression` and we have such label alredy but it doesn't respect the specification.
408-
// See https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#prod-Initializer
407+
// TODO: must be `= AssignmentExpression` and we have such label alredy but it doesn't respect the specification.
408+
// See https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#prod-Initializer
409409
: '=' singleExpression
410410
;
411411

python/python/PythonParser.g4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ finally_clause
9494
;
9595

9696
with_item
97-
// NB compile.c makes sure that the default except clause is last
97+
// NB compile.c makes sure that the default except clause is last
9898
: test (AS expr)?
9999
;
100100

@@ -187,7 +187,7 @@ star_expr
187187
;
188188

189189
assign_part
190-
// if left expression in assign is bool literal, it's mean that is Python 2 here
190+
// if left expression in assign is bool literal, it's mean that is Python 2 here
191191
: ASSIGN (testlist_star_expr (ASSIGN testlist_star_expr)* (ASSIGN yield_expr)? | yield_expr)
192192
| {this.CheckVersion(3)}? COLON test (ASSIGN testlist)? {this.SetVersion(3);} // annassign Python3 rule
193193
| op = (
@@ -376,8 +376,8 @@ arguments
376376
;
377377

378378
arglist
379-
// The reason that keywords are test nodes instead of name is that using name
380-
// results in an ambiguity. ast.c makes sure it's a name.
379+
// The reason that keywords are test nodes instead of name is that using name
380+
// results in an ambiguity. ast.c makes sure it's a name.
381381
: argument (COMMA argument)* COMMA?
382382
;
383383

sql/derby/DerbyLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,4 @@ fragment FullWidthLetter options {
428428
| '\ua000' ..'\ud7ff'
429429
| '\uf900' ..'\ufaff'
430430
| '\uff00' ..'\ufff0'
431-
; // | '\u20000'..'\u2FA1F'
431+
; // | '\u20000'..'\u2FA1F'

sql/hive/v4/HiveParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ setOperator
10311031
;
10321032

10331033
queryStatementExpression
1034-
/* Would be nice to do this as a gated semantic perdicate
1034+
/* Would be nice to do this as a gated semantic perdicate
10351035
But the predicate gets pushed as a lookahead decision.
10361036
Calling rule doesnot know about topLevel
10371037
*/

sql/plsql/PlSqlLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,8 +2468,7 @@ PROMPT_MESSAGE: 'PRO' {this.IsNewlineAtPos(-4)}? 'MPT'? (' ' ~('\r' | '\n')*)? N
24682468

24692469
// TODO: should starts with newline
24702470
START_CMD
2471-
//: 'STA' 'RT'? SPACE ~('\r' | '\n')* NEWLINE_EOF
2472-
: // https://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12002.htm
2471+
: // https://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12002.htm
24732472
'@' '@'?
24742473
; // https://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12003.htm
24752474

sql/plsql/PlSqlParser.g4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,8 @@ create_analytic_view
11831183
;
11841184

11851185
classification_clause
1186-
// : (CAPTION c=quoted_string)? (DESCRIPTION d=quoted_string)? classification_item*
1187-
// to handle - 'rule contains a closure with at least one alternative that can match an empty string'
1186+
// : (CAPTION c=quoted_string)? (DESCRIPTION d=quoted_string)? classification_item*
1187+
// to handle - 'rule contains a closure with at least one alternative that can match an empty string'
11881188
: (caption_clause description_clause? | caption_clause? description_clause) classification_item*
11891189
| caption_clause? description_clause? classification_item+
11901190
;
@@ -4014,7 +4014,7 @@ alter_synonym
40144014
;
40154015

40164016
create_synonym
4017-
// Synonym's schema cannot be specified for public synonyms
4017+
// Synonym's schema cannot be specified for public synonyms
40184018
: CREATE (OR REPLACE)? PUBLIC SYNONYM synonym_name FOR (schema_name PERIOD)? schema_object_name (
40194019
AT_SIGN link_name
40204020
)?

sql/postgresql/PostgreSQLLexer.g4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,8 @@ fragment IdentifierStartChar options {
14291429
| // letters which require multiple UTF-16 code units
14301430
[\uD800-\uDBFF] [\uDC00-\uDFFF] {
14311431
CheckIfUtf32Letter()
1432-
}?;
1432+
}?
1433+
;
14331434

14341435
fragment IdentifierChar: StrictIdentifierChar | '$';
14351436

@@ -1628,7 +1629,8 @@ fragment EscapeStringText options {
16281629
~ [xuU]
16291630
)
16301631
| ~ ['\\]
1631-
)*;
1632+
)*
1633+
;
16321634
16331635
InvalidEscapeStringConstant: InvalidEscapeStringText '\'' -> mode (AfterEscapeStringConstantMode);
16341636

0 commit comments

Comments
 (0)