Skip to content

Instantly share code, notes, and snippets.

View samaaron's full-sized avatar

Sam Aaron samaaron

View GitHub Profile
λ make
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
ez_setup.py:95: trailing whitespace
pygments/__init__.py:21: line too long
pygments/formatters/img.py:114: "not found in registry'"
pygments/lexers/agile.py:1213: trailing whitespace
pygments/lexers/compiled.py:944: line too long
pygments/lexers/compiled.py:946: line too long
∴ /Users/sam/Downloads/Pygments-1.0
λ make
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
pygments/__init__.py:21: line too long
pygments/formatters/img.py:114: "not found in registry'"
pygments/lexers/compiled.py:944: line too long
pygments/lexers/compiled.py:946: line too long
pygments/lexers/compiled.py:948: line too long
match = '(?x)
(
\.\.\. | # "..."
\.\. | # ".."
=> | # "=>"
=>> | # "=>>"
#
\+\+ # "++"
)';
{ scopeName = 'source.ioke';
firstLineMatch = '^#!/.*\bioke\b';
fileTypes = ( 'ik' );
foldingStartMarker = '(method|do|macro|fn|fnx|describe|it)\((?![^)]*+\))';
foldingStopMarker = '^\s*+\)';
patterns = (
{ name = 'constant.object.mimic.ioke';
begin = '[[:alnum:]!?_:-]+(?=[[:space:]]*=.*mimic.*($|\.))';
end = '(?=\.)|$';
patterns = (
operator_symbols = {
patterns = (
{ name = 'entity.operator.symbols.ioke';
match = '[^.=*&|>!<%#@/\\+?$~^-](\.\.\.|===|\*\*>|&&>|\|\|>|\->>|\+>>|!>>|<>>>|&>>|%>>|#>>|@>>|/>>|\*>>|\?>>|\|>>|\^>>|~>>|\$>>|<<=|>>=|<=>|<\->|=~|!~|=>|\+\+|\-\-|<=|>=|==|!=|&&|\.\.|\+=|\-=|\*=|\/=|%=|&=|\^=|\|=|<\-|\+>|!>|<>|&>|%>|#>|@>|\/>|\*>|\?>|\|>|\^>|~>|\$>|<\->|\->|<<|>>|\?\||\?&|\|\||>|<|\*|\/|%|\+|\-|&|\^|\||=|\$)[^.=*&|>!<%#@/\\+?$~^-]';
},
);
};
iik> f = "test"
+> "test"
iik> Regexp from(f)
+> #/test/
require 'rubygems'
require 'active_support'
class John
end
j_c = John.class_eval do
def hi
'hi'
{ name = 'entity.name.function.ioke';
match = '((?<![[:alnum:]!?_:])|(?<![[:alnum:]!?_:]!))(fn|fnx|method|macro|lecro|syntax|dmacro|dlecro|dlecrox|dsyntax)(?![[:alnum:]!?_:])';
}, //matches method
{ name = 'variable.assignment.ioke';
match = '[[:alnum:]_:][[:alnum:]!?_:]*(?=[[:space:]]*[+*/-]?=[^=].*($|\.))';
}, // matches patternMinAndMax
{ name = 'meta.function.definition.ioke';
begin = '(?<=[[:space:]][[:alnum:]_:][[:alnum:]!?_:]*[[:space:]]*=[[:space:]]*(fn|fnx|method|macro|lecro|syntax|dmacro|dlecro|dlecrox|dsyntax))';
end = '\(';
patterns = (
{ name = 'entity.name.function.ioke';
match = '(fn|fnx|method|macro|lecro|syntax|dmacro|dlecro|dlecrox|dsyntax)';
},
);
},
{ name = 'meta.function.definition.method.ioke';
begin = '(?<=[[:space:]][^=]*=[[:space:]]*)(?=method)';
end = '\(';
patterns = (
{ include = '$self'; },
);
},