diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/ReStructuredText.xshd b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/ReStructuredText.xshd new file mode 100644 index 0000000..a6db694 --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/ReStructuredText.xshd @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + ^.+\r?\n[=\-`:'\"~^_*+#<>]{4,}\s*$ + + + + ^[=\-`:'\"~^_*+#<>]{4,}\s*\r?\n.+\r?\n[=\-`:'\"~^_*+#<>]{4,}\s*$ + + + + \*\*[^\s*].*?[^\s*]\*\* + + + + \*[^\s*].*?[^\s*]\* + + + + ``.*?`` + + + + ^\.\.\s+\w+::.*$ + + + + :\w+:`[^`]*` + + + + `[^`]+\s+<[^>]+>`_ + + + + \w+_ + + + + ^\.\.\s.*$ + + + + ^::\s*$ + ^(?!\s) + + + + ^[ \t]+\S + ^(?![ \t]) + + + + ^[ \t]+ + ^(?![ \t]) + + + \ No newline at end of file diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/ReStructuredText.xshd b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/ReStructuredText.xshd new file mode 100644 index 0000000..a133d39 --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/ReStructuredText.xshd @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + ^.+\r?\n[=\-`:'\"~^_*+#<>]{4,}\s*$ + + + + ^[=\-`:'\"~^_*+#<>]{4,}\s*\r?\n.+\r?\n[=\-`:'\"~^_*+#<>]{4,}\s*$ + + + + \*\*[^\s*].*?[^\s*]\*\* + + + + \*[^\s*].*?[^\s*]\* + + + + ``.*?`` + + + + ^\.\.\s+\w+::.*$ + + + + :\w+:`[^`]*` + + + + `[^`]+\s+<[^>]+>`_ + + + + \w+_ + + + + ^\.\.\s.*$ + + + + ^::\s*$ + ^(?!\s) + + + + ^[ \t]+\S + ^(?![ \t]) + + + + ^[ \t]+ + ^(?![ \t]) + + + \ No newline at end of file