Skip to content

&&... makes check throw an error #9

Description

@stdout-se

Using latest commit from master (fc93e9a) and Matlab 2017b:

check with throw an error when checking lines that ends with compact statements, e.g. &&... or ||....

Steps to reproduce:

  • Create a new file testDots.m and paste the following:
function third = testDots()
    % TESTDOTS tests dots immediately following something else
    first = true;
    second = false;
    
    third = first &&...
        second;
end
  • Run check testDots.m
  • The following output is produced:
>> check testDots.m
Error using tokenize_code (line 123)
unknown operator '&&...'

Error in check (line 47)
    tokens = tokenize_code(source_code);

Expected behaviour:

  • A warning that there should be a space between && and ...

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions