453 |
453 |
454 def isCommentStyle(self, style): |
454 def isCommentStyle(self, style): |
455 """ |
455 """ |
456 Public method to check, if a style is a comment style. |
456 Public method to check, if a style is a comment style. |
457 |
457 |
|
458 @param style style to check (integer) |
458 @return flag indicating a comment style (boolean) |
459 @return flag indicating a comment style (boolean) |
459 """ |
460 """ |
460 return style in [PYGMENTS_COMMENT] |
461 return style in [PYGMENTS_COMMENT] |
461 |
462 |
462 def isStringStyle(self, style): |
463 def isStringStyle(self, style): |
463 """ |
464 """ |
464 Public method to check, if a style is a string style. |
465 Public method to check, if a style is a string style. |
465 |
466 |
|
467 @param style style to check (integer) |
466 @return flag indicating a string style (boolean) |
468 @return flag indicating a string style (boolean) |
467 """ |
469 """ |
468 return style in [PYGMENTS_STRING, PYGMENTS_DOCSTRING, PYGMENTS_OTHER, |
470 return style in [PYGMENTS_STRING, PYGMENTS_DOCSTRING, PYGMENTS_OTHER, |
469 PYGMENTS_HEADING, PYGMENTS_SUBHEADING, PYGMENTS_EMPHASIZE, |
471 PYGMENTS_HEADING, PYGMENTS_SUBHEADING, PYGMENTS_EMPHASIZE, |
470 PYGMENTS_STRONG] |
472 PYGMENTS_STRONG] |