Alan Hamlett
1984fe4228
tests for c and cpp dependency detection. change api of TokenParser class.
2015-09-26 13:04:35 -07:00
Alan Hamlett
68436b5700
don't require tests for non-utf8 filesystem encoding
2015-09-08 14:07:14 -07:00
Alan Hamlett
5808a1d77c
test vim modeline detection
2015-09-06 20:46:57 -07:00
Alan Hamlett
0c42ae8a70
force return value from zip to be a list in py3
2015-09-06 20:19:22 -07:00
Alan Hamlett
4c8919f9ac
test C and C++ detection when editing header files
2015-09-06 20:06:36 -07:00
Alan Hamlett
92948386fa
new --entitytype command line arg to replace --notfile
2015-08-29 16:16:14 -07:00
Alan Hamlett
43c461a7cc
try opening files with filesystem encoding when opening with utf-8 causes UnicodeDecodeError
2015-08-23 18:49:34 -07:00
Alan Hamlett
ccb0b11ffb
only use lexer if one was found
2015-08-10 20:10:09 -07:00
Alan Hamlett
2da75aa119
use C++ for header file language if directory contains C++ files
2015-08-10 18:17:50 -07:00
Alan Hamlett
6e9e8a9ce2
move language rules to server, detect header files
...
- move language translations to api server
- move extension rules to api server
- detect correct header file language based on presence of .cpp or .c
files named the same as the .h file
2015-08-10 11:33:39 -07:00
Alan Hamlett
61b9989641
catch exceptions from pygments.modeline.get_filetype_from_buffer
2015-07-02 12:37:24 -07:00
Alan Hamlett
8c0c43e58a
clean up lexer guessing
2015-06-15 18:55:47 -07:00
Alan Hamlett
6591c4e5e9
limit language detection to known file extensions, unless file contents has a vim modeline
2015-06-15 18:26:10 -07:00
Alan Hamlett
368fecfcf1
auxiliary extension map for when no language can be found, not to overwrite detected language
2015-06-12 17:25:04 -07:00
Alan Hamlett
36f6bb9a21
use most accurate language from modeline lexer and filename lexer Pygments guessing functions
2015-06-11 14:11:10 -07:00
Alan Hamlett
caac39c3bf
new --cursorpos argument for the location of cursor within the file's contents
2015-05-06 16:24:25 -07:00
Alan Hamlett
afe9e429b2
new --lineno argument for passing the current line number being edited at time of heartbeat
2015-05-06 15:19:48 -07:00
Alan Hamlett
a4f7c6bc32
new command line argument --notfile for logging time towards things other than files
2015-02-12 17:27:21 -08:00
Alan Hamlett
d3a31fc72d
fix a few bugs and remove unused imports
2015-02-10 12:09:32 -08:00
Alan Hamlett
67c5f02a80
dependency parser base models
2014-12-22 23:12:57 -06:00
Alan Hamlett
e144fa4f7a
new heartbeat table in offline sqlite database. get ready to detect dependencies from current file.
2014-12-22 00:37:13 -06:00
Alan Hamlett
85a68293ac
upgrade pygments to v2.0.1
2014-11-30 22:10:30 -08:00
Alan Hamlett
7609078d5a
support .mdown extension as Markdown
2014-11-10 23:52:48 -08:00
Alan Hamlett
c8960e2bde
if something goes wrong, just return None.
2014-10-07 04:43:00 -07:00
Alan Hamlett
4bad3541d9
new compat file for python2 and python3 compatibility. read files as utf-8.
2014-09-30 09:09:30 -07:00
Alan Hamlett
1055a25aff
option for obfuscating file names called --hidefilenames
2014-07-25 02:28:32 -07:00
Alan Hamlett
e392ff6e77
namespace logger to prevent conflicts with other plugins
2014-07-25 00:59:25 -07:00
Alan Hamlett
731ce02a59
recognize .twig extension as Twig language
2013-12-03 20:20:57 +01:00
Alan Hamlett
7ab0d54ec9
recognize markdown file extension as Markdown language
2013-11-03 11:34:54 -08:00
Alan Hamlett
4e8d3ead82
recognize jinja2 file extensions as HTML
2013-10-31 17:16:38 -07:00
Alan Hamlett
8f38ba5932
add rhtml translation
2013-10-29 00:25:12 -07:00
Alan Hamlett
b08e1955c8
update language lexer translations
2013-10-26 17:58:15 -07:00
Alan Hamlett
5a0e9ad17f
force Perl6 to be Perl
2013-10-26 14:14:13 -07:00
Alan Hamlett
ffd557dfef
force some languages to be recognized as others
2013-10-26 14:06:54 -07:00
Alan Hamlett
1038529fd0
force .js files to be reported at JavaScript
2013-10-26 13:46:22 -07:00
Alan Hamlett
92e290c217
force some file extensions to be recognizes as certain languages
2013-10-25 21:28:59 -07:00
Alan Hamlett
98b9056c77
ignore any errors when detecting language type with pygments
2013-10-14 14:12:40 -07:00
Alan Hamlett
8de2be936b
filtering lexer guesses by filename
2013-09-22 16:28:09 -07:00
Alan Hamlett
43cb99b560
fixed pygments import
2013-09-22 16:10:08 -07:00
Alan Hamlett
9c9fbeeb8e
split pygments package into python2 and python3 versions
2013-09-22 15:24:03 -07:00
Alan Hamlett
79acd45adf
v0.4.6
2013-09-22 13:41:13 -07:00
Alan Hamlett
934cc51a6c
sending file stats (total lines in file, language name) to api
2013-09-22 13:39:16 -07:00