replace usage of the deprecated 'e' face attribute with the new 'F' one

and update set-face docstring
This commit is contained in:
Ruslan Prokopchuk 2018-10-26 15:29:21 +11:00
parent 3b40ab82f4
commit b65a6493aa
3 changed files with 11 additions and 9 deletions

View File

@ -83,7 +83,7 @@ define-command -hidden init-javascript-filetype -params 1 %~
add-highlighter "shared/%arg{1}/jsx/tag/base/" regex </?([\w-$]+) 1:keyword
add-highlighter "shared/%arg{1}/jsx/tag/base/" regex (</?|/?>) 0:meta
add-highlighter "shared/%arg{1}/jsx/tag/expr/" fill default,default+e
add-highlighter "shared/%arg{1}/jsx/tag/expr/" fill default,default+F
add-highlighter "shared/%arg{1}/jsx/tag/expr/" ref %arg{1}
# Keywords are collected at

View File

@ -28,14 +28,14 @@ define-command racer-complete -docstring "Complete the current selection with ra
sub(/^pub /, "", menu)
gsub(/\|/, "\\|", menu)
if (type == "Function") {
sub(word, "{default+e}" word "{default+d}", menu)
sub(word, "{default+F}" word "{default+d}", menu)
gsub(/^fn /, " fn ", menu) # The extra spaces are there to vertically align
# the type of element on the menu to make it easy
# to read
menu = "{default+d}" menu
} else if (type == "Enum") {
menu = substr(menu, 0, length(menu) - 2)
sub(word, "{default+e}" word "{default+d}", menu)
sub(word, "{default+F}" word "{default+d}", menu)
gsub(/^enum /, " enum ", menu) # The extra spaces are there to vertically align
# the type of element on the menu to make it easy
# to read
@ -47,24 +47,24 @@ define-command racer-complete -docstring "Complete the current selection with ra
menu = substr(menu, length(menu) - 29, 30) # ... trimming it, so the completion menu
# doesn''t get distorted if it''s too long
}
menu = " mod {default+e}" word "{default+d} .." menu # The extra spaces are there to vertically align
menu = " mod {default+F}" word "{default+d} .." menu # The extra spaces are there to vertically align
# the type of element on the menu to make it easy
# to read
} else if (type == "Trait") {
sub(word, "{default+e}" word "{default+d}", menu)
sub(word, "{default+F}" word "{default+d}", menu)
gsub(/^trait /, " trait ", menu) # The extra spaces are there to vertically align
# the type of element on the menu to make it easy
# to read
} else if (type == "Type") {
sub(word, "{default+e}" word "{default+d}", menu)
sub(word, "{default+F}" word "{default+d}", menu)
gsub(/^type /, " type ", menu) # The extra spaces are there to vertically align
# the type of element on the menu to make it easy
# to read
} else if (type == "Struct") {
sub(word, "{default+e}" word "{default+d}", menu) # Struct doesn''t have extra spaces because it''s
sub(word, "{default+F}" word "{default+d}", menu) # Struct doesn''t have extra spaces because it''s
# the longest keyword
} else {
menu = "{default+e}" word "{default+d} " menu
menu = "{default+F}" word "{default+d} " menu
}
candidate = word "|" desc "|" menu
gsub(/:/, "\\:", candidate)

View File

@ -2100,7 +2100,9 @@ const CommandDesc set_face_cmd = {
"colors are either a color name, or rgb:###### values.\n"
"attributes is a combination of:\n"
" u: underline, i: italic, b: bold, r: reverse,\n"
" B: blink, d: dim, e: exclusive\n"
" B: blink, d: dim,\n"
" f: final foreground, g: final background,\n"
" a: final attributes, F: same as +fga\n"
"facespec can as well just be the name of another face",
ParameterDesc{{}, ParameterDesc::Flags::None, 3, 3},
CommandFlags::None,