From 8da200c14e472621c015fccdade86a99e2ee204b Mon Sep 17 00:00:00 2001 From: acevest Date: Wed, 2 Sep 2015 11:21:07 +0800 Subject: [PATCH] add ruby in cs --- tools/comm/cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/comm/cs b/tools/comm/cs index c1b8fdb..3cbb05f 100755 --- a/tools/comm/cs +++ b/tools/comm/cs @@ -31,7 +31,8 @@ my %s = ("c" => {CSTYLE}, "cpp" => {CSTYLE}, "h" => {CSTYLE}, "pl" => {env=>"#!/usr/bin/env perl\n", SSTYLE}, - "py" => {env=>"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n", SSTYLE} + "py" => {env=>"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n", SSTYLE}, + "rb" => {env=>"#!/usr/bin/env ruby -w\n", SSTYLE} ); my $default_index = "default"; @@ -87,6 +88,7 @@ foreach my $file (@ARGV) { $f = "H_" . uc($f) . "__"; $as .= "\n#pragma once\n"; } elsif($index eq "py") { + } elsif($index eq "rb") { } elsif($index eq "pl") { $as .= "use strict;"; } -- 2.44.0