From 648b4c0fd4c929b8f994786649199e5f7157814d Mon Sep 17 00:00:00 2001 From: Sven Wick Date: Thu, 26 Aug 2021 21:45:51 +0200 Subject: [PATCH] feat(subrip): Add subrip.nanorc Originally proposed in https://github.com/scopatz/nanorc/pull/380 --- subrip.nanorc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 subrip.nanorc diff --git a/subrip.nanorc b/subrip.nanorc new file mode 100644 index 00000000..15c26f34 --- /dev/null +++ b/subrip.nanorc @@ -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:]/!?][^>]*>"