def test_noskipws():
    grammar = """
    Rule:
        'entity' name=ID /\s*/ call=Rule2;
    Rule2[noskipws]:
        'first' 'second';
    """
    metamodel = metamodel_from_str(grammar)

    # Rule2 disables ws skipping so this will not parse.
    with pytest.raises(TextXSyntaxError):
        metamodel.model_from_str("entity Person first second")

    # This will parse.
    metamodel.model_from_str("entity Person firstsecond")
Test 'noskipws' rule modifier.
dataset/ETHPy150Open igordejanovic/textX/tests/functional/test_rule_modifiers.py/test_noskipws