diff options
author | Nikita Zlobin <cook60020tmp@mail.ru> | 2023-08-21 16:23:41 +0500 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2023-08-21 18:54:21 +0200 |
commit | c6f3cfb7d7c711f0a59fb364af4f74d9996c57e2 (patch) | |
tree | c0d9638173b08a1fd2536247d75079f587829c3a /doc | |
parent | 664f1b929706f39bb402e09e2284c9de50b205af (diff) |
Support single quotes for strings as in CSS
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rofi-theme.5 | 15 | ||||
-rw-r--r-- | doc/rofi-theme.5.markdown | 15 |
2 files changed, 16 insertions, 14 deletions
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5 index 6c4139ad..eb4c3fa0 100644 --- a/doc/rofi-theme.5 +++ b/doc/rofi-theme.5 @@ -565,13 +565,13 @@ Some of these types are a combination of other types. .SS String .RS .IP \(bu 2 -Format: \fB\fC"[:print:]+"\fR +Format: \fB\fC(["'])[:print:]+\\1\fR .RE .PP -A string is always surrounded by double quotes (\fB\fC"\fR). Between the quotes there -can be any printable character. +Strings are always surrounded by double (\fB\fC"\fR) or single (\fB\fC\&'\fR, apostrophe) quotes. Between +the quotes there can be any printable character. .PP For example: @@ -592,15 +592,16 @@ The string must be valid UTF-8, special characters can be escaped: .RS .nf -text { - content: "Line one\\n\\tIndented line two"; -} +text { content: "Line one\\n\\tIndented line two 'Quoted text'"; } +text { content: 'Line one\\n\\tIndented line two "Quoted text"'; } +text { content: "Line one\\n\\tIndented line two \\"Quoted text\\""; } .fi .RE .PP -The following special characters can be escaped: \fB\fC\\b\fR, \fB\fC\\f\fR, \fB\fC\\n\fR, \fB\fC\\r\fR, \fB\fC\\t\fR, \fB\fC\\v\fR, \fB\fC\\\fR and \fB\fC"\fR\&. +The following special characters can be escaped: \fB\fC\\b\fR, \fB\fC\\f\fR, \fB\fC\\n\fR, \fB\fC\\r\fR, \fB\fC\\t\fR, \fB\fC\\v\fR, \fB\fC\\\fR, +\fB\fC"\fR and \fB\fC\&'\fR (double quotes inside single-quotes or in reverse don't need escape). .SS Integer .RS diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown index 188e4394..ea60a4c5 100644 --- a/doc/rofi-theme.5.markdown +++ b/doc/rofi-theme.5.markdown @@ -379,10 +379,10 @@ Some of these types are a combination of other types. ### String -- Format: `"[:print:]+"` +- Format: `(["'])[:print:]+\1` -A string is always surrounded by double quotes (`"`). Between the quotes there -can be any printable character. +Strings are always surrounded by double (`"`) or single (`'`, apostrophe) quotes. Between +the quotes there can be any printable character. For example: @@ -393,12 +393,13 @@ font: "Awasome 12"; The string must be valid UTF-8, special characters can be escaped: ```css -text { - content: "Line one\n\tIndented line two"; -} +text { content: "Line one\n\tIndented line two 'Quoted text'"; } +text { content: 'Line one\n\tIndented line two "Quoted text"'; } +text { content: "Line one\n\tIndented line two \"Quoted text\""; } ``` -The following special characters can be escaped: `\b`, `\f`, `\n`, `\r`, `\t`, `\v`, `\` and `"`. +The following special characters can be escaped: `\b`, `\f`, `\n`, `\r`, `\t`, `\v`, `\`, +`"` and `'` (double quotes inside single-quotes or in reverse don't need escape). ### Integer |