diff --git a/pom.xml b/pom.xml
index 7dc19ba..6e1829c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,8 +22,8 @@
scm:git:git@github.com:vieiro/toml-java.git
scm:git:git@github.com:vieiro/toml-java.git
https://github.com/vieiro/toml-java
- HEAD
-
+ HEAD
+
Github
@@ -59,7 +59,7 @@
maven-gpg-plugin
- 3.1.0
+ 3.2.8
sign-artifacts
@@ -80,9 +80,8 @@
UTF-8
- 8
- 8
4.13.1
+ 11
@@ -96,37 +95,37 @@
org.junit.jupiter
junit-jupiter-engine
- 5.10.0
+ 5.14.1
test
org.junit.jupiter
junit-jupiter-params
- 5.10.0
+ 5.14.1
test
ognl
ognl
- 3.4.2
+ 3.4.9
test
com.google.code.gson
gson
- 2.10.1
+ 2.13.2
test
com.flipkart.zjsonpatch
zjsonpatch
- 0.4.14
+ 0.4.16
test
com.fasterxml.jackson.datatype
jackson-datatype-jsr310
- 2.14.0
+ 2.20.1
test
@@ -147,7 +146,7 @@
maven-deploy-plugin
- 3.1.1
+ 3.1.4
default-deploy
@@ -160,7 +159,7 @@
maven-release-plugin
- 3.0.1
+ 3.2.0
deploy
-Dgpg.passphrase=${gpg.passphrase}
@@ -181,7 +180,7 @@
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.13
+ 1.7.0
true
ossrh
@@ -191,14 +190,14 @@
maven-compiler-plugin
- 3.11.0
+ 3.14.1
-Xlint:unchecked
maven-surefire-plugin
- 3.1.2
+ 3.5.4
org.antlr
@@ -218,7 +217,7 @@
maven-source-plugin
- 3.3.0
+ 3.4.0
@@ -232,7 +231,7 @@
maven-javadoc-plugin
- 3.6.0
+ 3.12.0
attach-javadocs
diff --git a/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrLexer.g4 b/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrLexer.g4
index fec1982..63f2103 100644
--- a/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrLexer.g4
+++ b/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrLexer.g4
@@ -138,6 +138,8 @@ UNEXPECTED_VALUE_DATA: . -> type(INVALID_VALUE), popMode;
mode INLINE_TABLE_MODE;
INLINE_TABLE_WS : WS -> skip ;
+INLINE_TABLE_NL : NL -> type(NL) ;
+INLINE_TABLE_COMMENT : COMMENT -> type(COMMENT) ;
INLINE_TABLE_KEY_DOT : DOT -> type(DOT) ;
INLINE_TABLE_COMMA : COMMA -> type(COMMA) ;
R_BRACE : '}' -> popMode ;
diff --git a/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrParser.g4 b/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrParser.g4
index 0e58d4a..f87a1d6 100644
--- a/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrParser.g4
+++ b/src/main/antlr4/net/vieiro/toml/antlr4/TOMLAntlrParser.g4
@@ -52,13 +52,11 @@ bool_ : BOOLEAN ;
date_time : OFFSET_DATE_TIME | LOCAL_DATE_TIME | LOCAL_DATE | LOCAL_TIME ;
-inline_table :
- L_BRACE key EQUALS inline_value (COMMA key EQUALS inline_value)*? R_BRACE
- | L_BRACE R_BRACE;
+inline_table :
+ L_BRACE comment_or_nl key EQUALS inline_value comment_or_nl (COMMA comment_or_nl key EQUALS inline_value comment_or_nl)* (COMMA comment_or_nl)? R_BRACE
+ | L_BRACE comment_or_nl R_BRACE;
-inner_array: L_BRACKET inline_value? (COMMA inline_value)*? COMMA*? R_BRACKET;
-
-inline_value: string | integer | floating_point | bool_ | date_time | inner_array | inline_table;
+inline_value: string | integer | floating_point | bool_ | date_time | array_ | inline_table;
array_ : L_BRACKET array_values? comment_or_nl R_BRACKET ;
diff --git a/src/main/java/net/vieiro/toml/TOMLVisitor.java b/src/main/java/net/vieiro/toml/TOMLVisitor.java
index 5842153..d86fe6e 100644
--- a/src/main/java/net/vieiro/toml/TOMLVisitor.java
+++ b/src/main/java/net/vieiro/toml/TOMLVisitor.java
@@ -358,15 +358,6 @@ public Object visitInline_table(TOMLAntlrParser.Inline_tableContext ctx) {
return Collections.unmodifiableMap(inlineTable);
}
- @Override
- public Object visitInner_array(TOMLAntlrParser.Inner_arrayContext ctx) {
- if (ctx.inline_value() != null) {
- List