2013-09-18 16:42:10 +08:00
|
|
|
package edit
|
2013-09-12 23:23:50 +08:00
|
|
|
|
|
|
|
import (
|
2014-01-29 18:37:07 +08:00
|
|
|
"github.com/xiaq/elvish/parse"
|
2013-09-12 23:23:50 +08:00
|
|
|
)
|
|
|
|
|
2013-12-27 09:37:50 +08:00
|
|
|
var (
|
2014-01-16 09:24:14 +08:00
|
|
|
attrForPrompt = ""
|
|
|
|
attrForRprompt = "7"
|
|
|
|
attrForCompleted = ";4"
|
|
|
|
attrForMode = "1;7;33"
|
|
|
|
attrForTip = ""
|
2014-03-08 16:25:37 +08:00
|
|
|
attrForCurrentCompletion = ";7"
|
2014-02-09 19:53:21 +08:00
|
|
|
attrForCompletedHistory = "4"
|
2014-03-08 15:52:51 +08:00
|
|
|
attrForSelectedFile = ";7"
|
2013-12-27 09:37:50 +08:00
|
|
|
)
|
2013-12-24 19:01:01 +08:00
|
|
|
|
2013-09-12 23:23:50 +08:00
|
|
|
var attrForType = map[parse.ItemType]string{
|
2014-03-17 11:23:32 +08:00
|
|
|
parse.ItemSpace: "36", // only applies to comments
|
|
|
|
parse.ItemSingleQuoted: "33",
|
|
|
|
parse.ItemDoubleQuoted: "33",
|
|
|
|
parse.ItemRedirLeader: "32",
|
|
|
|
parse.ItemStatusRedirLeader: "32",
|
|
|
|
parse.ItemPipe: "32",
|
|
|
|
parse.ItemError: "31",
|
2014-03-17 17:06:21 +08:00
|
|
|
parse.ItemQuestionLParen: "34;1",
|
2014-03-17 11:23:32 +08:00
|
|
|
parse.ItemLParen: "34;1",
|
|
|
|
parse.ItemRParen: "34;1",
|
|
|
|
parse.ItemLBracket: "34;1",
|
|
|
|
parse.ItemRBracket: "34;1",
|
|
|
|
parse.ItemLBrace: "34;1",
|
|
|
|
parse.ItemRBrace: "34;1",
|
|
|
|
parse.ItemAmpersand: "1",
|
|
|
|
parse.ItemDollar: "35",
|
2013-09-12 23:23:50 +08:00
|
|
|
}
|