Skip to content

continuation lines with preprocessor #1

Description

@rogue-spectre

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions