Skip to content

Commit

Permalink
feat(subrip): Add subrip.nanorc
Browse files Browse the repository at this point in the history
Originally proposed in scopatz#380
  • Loading branch information
vaporup authored and Efreak committed Sep 28, 2023
1 parent 6c2a4ad commit 648b4c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions subrip.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
syntax "subrip" "\.srt$"

# Subtitle number
color yellow "^[0-9]+$"

# Timecode
color green "^[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3} --> [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}"

# Tags
color cyan "<[[:alpha:]/!?][^>]*>"

0 comments on commit 648b4c0

Please sign in to comment.