Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: greater and less should be treated as operators #217

Merged
merged 2 commits into from
Nov 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions panc/src/main/scripts/panlint/panlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
import re
import argparse
from glob import glob
from colorama import Fore, Style, init as colorama_init
from sys import stdout, exit as sys_exit
from inspect import getmembers, ismethod
from prettytable import PrettyTable
from colorama import Fore, Style, init as colorama_init


RS_COMMENT = r'(?:#|@{.*?})'

Expand All @@ -35,7 +36,7 @@
RE_COMMENT = re.compile(RS_COMMENT)
RE_COMMENT_LINE = re.compile(r'^\s*' + RS_COMMENT + '.*$')
RE_ANNOTATION = re.compile(r'@\w*{.*?}', re.S)
RE_OPERATOR = re.compile(r'([>=<!?]=|[+*=/-])')
RE_OPERATOR = re.compile(r'([>=<!?]=|[<>+*=/-])')
RE_HEREDOC = re.compile(r'<<(\w+);\s*$.*?\1$', re.S | re.M)

# Find usage and inclusion of components
Expand Down