Closed tancnle closed 1 year ago
This ensures the table is pushed up to the root stack and not picked up as a value in the basic mix-in. I have also added a few more examples from the official doc for testing.
Fixes https://github.com/rouge-ruby/rouge/issues/1719
Create a file containing the problematic text (named example.toml)
example.toml
link-libraries = ["mylibmylib"]
Run ./bin/rougify debug example.toml
./bin/rougify debug example.toml
Inspect the output
👋🏼 @mrexodia could you kindly confirm if this address the reported issue? 🙏🏼
Looks good!
This ensures the table is pushed up to the root stack and not picked up as a value in the basic mix-in. I have also added a few more examples from the official doc for testing.
Fixes https://github.com/rouge-ruby/rouge/issues/1719
📓 Troubleshooting notes
Create a file containing the problematic text (named
example.toml
)Run
./bin/rougify debug example.toml
Inspect the output
👉🏼 Before
``` lexer: toml stack: [:root] stream: "link-libraries = [\"m" // snipped lexer: toml stack: [:root, :value] stream: "[\"mylibmylib\"]\n" trying: #👉🏼 After
``` lexer: tom stack: [:root] stream: "link-libraries = [\"m" // snipped lexer: toml stack: [:root, :value] stream: " [\"mylibmylib\"]\n" trying: #