Skip to content

Instantly share code, notes, and snippets.

macro_rules! sequence {
( { $($f:ident : $parser:expr;)* } => $output:expr ) => {
move |i| {
$(
let (i,$f) = $parser (i)?;
)*
Ok((i, $output))
}
};
}

Keybase proof

I hereby claim:

  • I am peckpeck on github.
  • I am peckpeck (https://keybase.io/peckpeck) on keybase.
  • I have a public key ASBSEb7G1VhA6rwek9Qc5iurRxbVkMsbcRmhg-wvhIZSWwo

To claim this, I am signing this object:

#!/usr/bin/python
# coding: utf8
DEBUG=False
MAX_DAYS = 7
GITHUB_URL = "https://api.github.com"
GITHUB_TOKEN = "XXX"
#####################################################################################
# Copyright 2011-2013 Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#####################################################################################
# Copyright 2011 Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
"comment": "Grammar that match cfengine code syntax",
"fileTypes": ["cf", "cf3"],
"scopeName": "source.cfengine",
# Main file : only comment, body and bundle
"patterns": [{
"begin": "\\(",
"end": "\\)",
"patterns": [{
"include": "#variable"
"comment": "Grammar that match cfengine code syntax",
"fileTypes": ["cf", "cf3"],
"scopeName": "source.cfengine",
# Main file : only comment, body and bundle
"patterns": [{
"begin": "(?=')",
"end": ";",
"patterns": [{
"begin": "'",
"comment": "Grammar that match cfengine code syntax",
"fileTypes": ["cf", "cf3"],
"scopeName": "source.cfengine",
# Main file : only comment, body and bundle
"patterns": [{
"include": "#comment"
}, {
"include": "#body"
}, {
{
"comment": "list comprehension / generator comprehension scope.",
"fileTypes": [ "cf", "cf3" ],
"scopeName": "source.cfengine",
"patterns": [
{ "name": "comment.line.number-sign.cfengine",
"match": "#.*"
},
{ "match": "\\$\\(.*?\\)|\\${.*?}",
"name": "variable.other"