gregnis

Results 17 comments of gregnis

I was looking at your change at https://github.com/jeremy-jameson/enry/commit/b7a5521727fd042bd095c7fea1fd7de65e91578d since I also need to detect by text. I ended up testing your build on Windows, and it's almost working for my...

It appear to work correctly if I remove \s from ``` setting: $ => seq( alias(/[^;#=\s\[]+/, $.setting_name), '=', alias(/.+/, $.setting_value), choice('\n','\r\n'), ), ``` like this: ``` setting: $ => seq(...

> what are real world examples of this? You can sees examples at https://en.wikipedia.org/wiki/INI_file: ``` [fruit.Date] taste = novel Trademark Issues="truly unlikely" ```

You may ask whether it's legal, and I couldn't find any information on this. All I know is that I have them in my INI files, and that Windows GetPrivateProfileString()...

> `'# Of Diffs'` implies quote-parsing. What does Windows GetPrivateProfileString() do with the following? > > ``` > [Misc] > Show '# Of Diffs column message=1 > Show # Of...

Let me update this. I was able to use CLI to parse this simple INI file. Here's what I got: ``` (document [0, 0] - [8, 0] (ERROR [0, 0]...

Here's a mystery for me: when I parse the same file in my local playground, I get: ``` document [0, 0] - [9, 0] section [0, 0] - [3, 0]...

I think I know what's going on. The grammar doesn't handle CR/LF line endings, only LF. That's why the playground works but the parse command does not, for files with...

I don't have a setup to do this, perhaps you can use the code I provided to create a PR (assuming it's good).

Could be the same issue I'm having. I did the same thing I'd done for other grammars: ``` git clone https://github.com/DerekStride/tree-sitter-sql cd tree-sitter-sql ..\tree-sitter generate ..\tree-sitter build ..\tree-sitter build --wasm...