Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston Liu authored and Winston Liu committed Mar 25, 2019
1 parent 32de558 commit 8a38a1c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions grammars/toml.cson
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@
'name': 'constant.language.boolean.false.toml'
}
{
# Offset date-time, local date-time, local date
# https://github.com/toml-lang/toml#offset-date-time
# https://github.com/toml-lang/toml#local-date-time
# https://github.com/toml-lang/toml#local-date
'match': '''(?x)
\\d{4}-\\d{2}-\\d{2} # YYYY-MM-DD
(?:
Expand All @@ -208,11 +212,16 @@
'''
'name': 'constant.numeric.date.toml'
'captures':
'1': 'name': 'keyword.other.time.toml'
'2': 'name': 'keyword.other.offset.toml'
'3': 'name': 'keyword.other.offset.toml'
'1':
'name': 'keyword.other.time.toml'
'2':
'name': 'keyword.other.offset.toml'
'3':
'name': 'keyword.other.offset.toml'
}
{
# Local time
# https://github.com/toml-lang/toml#local-time
'match': '\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?'
'name': 'constant.numeric.date.toml'
}
Expand Down

0 comments on commit 8a38a1c

Please sign in to comment.