Skip to content

Commit

Permalink
Merge pull request #14 from ehuss/time-case
Browse files Browse the repository at this point in the history
Fix time case sensitivity.
  • Loading branch information
ehuss authored Aug 28, 2019
2 parents 4e74b2b + 69c47bb commit f18fdc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TOML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ variables:
# time-numoffset = ( "+" / "-" ) time-hour ":" time-minute
time_numoffset: '[+-] {{time_hour}} : {{time_minute}}'
# time-offset = "Z" / time-numoffset
time_offset: '(?: Z | {{time_numoffset}} )'
time_offset: '(?: [zZ] | {{time_numoffset}} )'
# partial-time = time-hour ":" time-minute ":" time-second [time-secfrac]
partial_time: '{{time_hour}} : {{time_minute}} : {{time_second}} (?: {{time_secfrac}} )?'
# full-date = date-fullyear "-" date-month "-" date-mday
full_date: '{{date_fullyear}} - {{date_month}} - {{date_mday}}'
# full-time = partial-time time-offset
full_time: '{{partial_time}} {{time_offset}}'
# offset-date-time = full-date T|%20 full-time
offset_date_time: '{{full_date}} [T ] {{full_time}}'
offset_date_time: '{{full_date}} [tT ] {{full_time}}'
# local-date-time = full-date T|%20 partial-time
local_date_time: '{{full_date}} [T ] {{partial_time}}'
local_date_time: '{{full_date}} [tT ] {{partial_time}}'
# local-date = full-date
local_date: '{{full_date}}'
# local-time = partial-time
Expand Down
2 changes: 2 additions & 0 deletions syntax_test_toml.toml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ ldt1s = 1979-05-27 07:32:00
# ^^^^^^^^^^^^^^^^^^^ constant.other.datetime
ldt2s = 1979-05-27 00:32:00.999999
# ^^^^^^^^^^^^^^^^^^^^^^^^^^ constant.other.datetime
lowercase = 1997-09-09t09:09:09z
# ^^^^^^^^^^^^^^^^^^^^ constant.other.datetime

#-----------------------------------------------------------------------------
# Invalid Date-Time
Expand Down

0 comments on commit f18fdc8

Please sign in to comment.