-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add Kotlin language #59
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: byte | ||
integer-min: '-128' | ||
integer-max: '127' | ||
integer-signed: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: double | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use double_c.yaml |
||
integer-min: 'uncertain' | ||
integer-max: 'uncertain' | ||
integer-signed: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: float | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use float_c.yaml |
||
integer-min: 'uncertain' | ||
integer-max: 'uncertain' | ||
integer-signed: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use int.yaml |
||
integer-min: '-2147483648' | ||
integer-max: '2147483647' | ||
integer-signed: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: long | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use long2E63.yaml |
||
integer-min: '-9223372036854775808' | ||
integer-max: '9223372036854775807' | ||
integer-signed: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: short | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use short.yaml |
||
integer-min: '-32768' | ||
integer-max: '32767' | ||
integer-signed: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use c_char.yaml. |
||
start: "'" | ||
end: "'" | ||
escape: \ | ||
length: 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
identifier: Kotlin | ||
wikidata: Q3816639 | ||
grammar_file: https://github.com/antlr/grammars-v4/tree/master/kotlin | ||
extensions: | ||
- kt | ||
- ktm | ||
- kts | ||
delimiters: | ||
# comment delimiters | ||
- double_slash | ||
- multiline_slash_star | ||
# string delimiters | ||
- kotlin_char | ||
- double_quote_slash_escape | ||
- curly_braces | ||
kiy4h marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- square_braces | ||
- round_braces | ||
datatypes: | ||
- bool_title_case | ||
- byte_kotlin | ||
- short_kotlin | ||
- int_kotlin | ||
- long_kotlin | ||
- float_kotlin | ||
- double_kotlin | ||
keywords: | ||
- abstract | ||
- actual | ||
- annotation | ||
- as | ||
- break | ||
- by | ||
- catch | ||
- class | ||
- companion | ||
- const | ||
- constructor | ||
- continue | ||
- crossinline | ||
- data | ||
- delegate | ||
- do | ||
- dynamic | ||
- else | ||
- enum | ||
- expect | ||
- external | ||
- field | ||
- file | ||
- final | ||
- finally | ||
- for | ||
- fun | ||
- get | ||
- if | ||
- import | ||
- in | ||
- infix | ||
- init | ||
- inline | ||
- inner | ||
- interface | ||
- internal | ||
- is | ||
- it | ||
- lateinit | ||
- noinline | ||
- null | ||
- object | ||
- open | ||
- operator | ||
- out | ||
- override | ||
- package | ||
- param | ||
- private | ||
- property | ||
- protected | ||
- public | ||
- receiveris | ||
- reified | ||
- return | ||
- sealed | ||
- set | ||
- setparam | ||
- super | ||
- suspend | ||
- tailrec | ||
- this | ||
- throw | ||
- try | ||
- typealias | ||
- val | ||
- var | ||
- vararg | ||
- when | ||
- where | ||
- while |
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.
Use byte.yaml