commit
63340911d5
6 changed files with 45 additions and 9 deletions
|
|
@ -16,6 +16,12 @@
|
|||
#include <boost/asio/io_service.hpp>
|
||||
#include "boost/asio/io_service.hpp"
|
||||
|
||||
#include \
|
||||
\
|
||||
"iostream" \
|
||||
"string" \
|
||||
<vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main ()
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ get_repo() {
|
|||
fi
|
||||
}
|
||||
|
||||
echo ${#x[@]}
|
||||
|
||||
if repo=`get_repo $@`; then
|
||||
branch=`git symbolic-ref HEAD 2>/dev/null`
|
||||
echo "http://github.com/$repo/pull/new/${branch##refs/heads/}"
|
||||
|
|
|
|||
|
|
@ -52,6 +52,25 @@
|
|||
["constant.other"," \"boost/asio/io_service.hpp\""]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"directive",
|
||||
["keyword","#include"],
|
||||
["constant.other.multiline"," \\"]
|
||||
],[
|
||||
"directive",
|
||||
["constant.other.multiline"," \\"]
|
||||
],[
|
||||
"directive",
|
||||
["constant.other.multiline"," \"iostream\" \\"]
|
||||
],[
|
||||
"directive",
|
||||
["constant.other.multiline"," \"string\" \\"]
|
||||
],[
|
||||
"start",
|
||||
["constant.other"," <vector>"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "]
|
||||
],[
|
||||
"start",
|
||||
["keyword.control","using"],
|
||||
|
|
|
|||
|
|
@ -269,6 +269,18 @@
|
|||
["paren.rparen","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["support.function.builtin","echo"],
|
||||
["text"," $"],
|
||||
["paren.lparen","{"],
|
||||
["text","#"],
|
||||
["identifier","x"],
|
||||
["paren.lparen","["],
|
||||
["text","@"],
|
||||
["paren.rparen","]}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword","if"],
|
||||
|
|
|
|||
|
|
@ -145,6 +145,10 @@ var c_cppHighlightRules = function() {
|
|||
token : "constant.other.multiline",
|
||||
regex : /\\/
|
||||
},
|
||||
{
|
||||
token : "constant.other.multiline",
|
||||
regex : /.*\\/
|
||||
},
|
||||
{
|
||||
token : "constant.other",
|
||||
regex : "\\s*<.+?>",
|
||||
|
|
@ -160,10 +164,6 @@ var c_cppHighlightRules = function() {
|
|||
regex : "\\s*['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']",
|
||||
next : "start"
|
||||
},
|
||||
{
|
||||
token : "constant.other.multiline",
|
||||
regex : /.*\\/
|
||||
},
|
||||
// "\" implies multiline, while "/" implies comment
|
||||
{
|
||||
token : "constant.other",
|
||||
|
|
|
|||
|
|
@ -78,8 +78,8 @@ var ShHighlightRules = function() {
|
|||
|
||||
this.$rules = {
|
||||
"start" : [ {
|
||||
token : "comment",
|
||||
regex : "#.*$"
|
||||
token : ["text", "comment"],
|
||||
regex : /(^|\s)(#.*)$/
|
||||
}, {
|
||||
token : "string", // " string
|
||||
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
||||
|
|
@ -116,9 +116,6 @@ var ShHighlightRules = function() {
|
|||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : "[\\]\\)\\}]"
|
||||
}, {
|
||||
token : "text",
|
||||
regex : "\\s+"
|
||||
} ]
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue