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

continuation lines with preprocessor #1

Open
rogue-spectre opened this issue Nov 24, 2012 · 0 comments
Open

continuation lines with preprocessor #1

rogue-spectre opened this issue Nov 24, 2012 · 0 comments

Comments

@rogue-spectre
Copy link

hi,

Just few lines to take into account preprocessor commands…

re_line_preprocess_to_be_continued = re.compile('.*\\\\$')

...

if  not self.is_line_preprocess_to_be_continued(prev_line):
                line,prev_line = self.fix_line_continuation(line,prev_line)
                source[prev_line_index] = prev_line

...

@staticmethod
def is_line_preprocess_to_be_continued(line):
    if Fixed2Free.re_line_preprocess_to_be_continued.match(line):
        return True
    return False

Nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant