-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial version of INI file parser #1858
base: main
Are you sure you want to change the base?
Conversation
* - the file is accepted by the [ini4j library](https://ini4j.sourceforge.net/) | ||
*/ | ||
class IniFilesLanguage : Language<IniFilesFrontend>() { | ||
override val fileExtensions = listOf("ini") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
".conf" extension, too
*/ | ||
class IniFilesLanguage : Language<IniFilesFrontend>() { | ||
override val fileExtensions = listOf("ini") | ||
override val namespaceDelimiter: String = "" // no such thing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path separator .
} | ||
|
||
override fun locationOf(astNode: Any): PhysicalLocation? { | ||
return null // currently, the line number / column cannot be accessed given an Ini object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return entire file first line number to last line number
it.registerLanguage<IniFilesLanguage>() | ||
} | ||
assertIs<TranslationUnitDeclaration>(tu) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add namespace test
Initial version of an INI file parser.