Skip to content

Commit

Permalink
Merge pull request #12 from mighty-pirate/master
Browse files Browse the repository at this point in the history
Allow C to be linted
  • Loading branch information
braver authored Feb 8, 2018
2 parents af8a543 + 768aeae commit cab75e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ SublimeLinter-cpplint

[![Build Status](https://travis-ci.org/SublimeLinter/SublimeLinter-cpplint.svg?branch=master)](https://travis-ci.org/SublimeLinter/SublimeLinter-cpplint)

This linter plugin for SublimeLinter provides an interface to [cpplint](https://pypi.python.org/pypi/cpplint). It will be used with files that have the “C++” syntax.
This linter plugin for SublimeLinter provides an interface to [cpplint](https://pypi.python.org/pypi/cpplint). It will be used with files that have the "C" or “C++” syntax.

## Installation
SublimeLinter must be installed in order to use this plugin.
SublimeLinter must be installed in order to use this plugin.

Please use [Package Control](https://packagecontrol.io) to install the linter plugin.

Expand Down
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class Cpplint(Linter):
"""Provides an interface to cpplint."""

syntax = 'c++'
syntax = ('c++', 'c')
cmd = ('cpplint', '*', '@')
regex = r'^.+:(?P<line>\d+):\s+(?P<message>.+)'
tempfile_suffix = '-'
Expand Down

0 comments on commit cab75e8

Please sign in to comment.