ksh的语法高亮显示

时间:2017-02-04 19:07:51

标签: visual-studio-code vscode-settings

语法突出显示不适用于ksh。它适用于sh和bash就好了。知道如何使这个工作或将来得到支持吗?

1 个答案:

答案 0 :(得分:3)

您可以将@store与以下结尾的class MyHashSet def initialize @store = {} end def insert(el) @store[el] = true end def include?(el) return true if @store[el] false end def delete(el) if @store[el] @store.delete(el) return true else return false end end def to_a @store.keys end def union(set2) joined_set = self.class.new self.to_a.each { |key| joined_set.insert(key) } set2.to_a.each { |key| joined_set.insert(key) } joined_set end end 文件关联起来:

这会将以下内容添加到您的Shell Script

.ksh