vhdl-style-guide/vsg/check/is_single_space_after.py

26 lines
548 B
Python

'''
This module contains functions for rules to perform their checks.
'''
from vsg.check import are_there_spaces_after
def is_single_space_after(self, sString, oLine, iLineNumber):
'''
Checks if a single space is after the string given.
The string is considered a whole word.
Allowances are made for end of line and semicolons.
Parameters:
self: (rule object)
sString: (string)
oLine: (line object)
iLineNumber: (integer)
'''
are_there_spaces_after(self, sString, oLine, iLineNumber, 1)