Skip to content

Commit

Permalink
changed the lexer a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
lileicc committed Dec 19, 2012
1 parent 3cb2e31 commit b1cb036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/lexer.py
Expand Up @@ -6,8 +6,8 @@ class BlogLexer(RegexLexer):
aliases = ['blog']
filenames = ['*.blog']
operators = ['=','~',':']
keywords = ['extern','import','fixed','func','distinct','random','origin','param','type']
types = ['Int','Real','Boolean','NaturalNum','List','Map','TabularCPD','Categorical','Distribution','Gaussian','type0','type1','type2','typename']
keywords = ['extern','import','fixed','distinct','random','origin','param','type', 'forall', 'exists']
types = ['Integer','Real','Boolean','NaturalNum','List','Map','TabularCPD','Categorical','Distribution','Gaussian']

def gen_regex(ops):
return "|".join(ops)
Expand Down

0 comments on commit b1cb036

Please sign in to comment.