Fix trailing whitespace & empty lines (#6385)
Fix formatting in various files Co-authored-by: Colin Seymour <colin@github.com>
This commit is contained in:
Родитель
c9898bcdd0
Коммит
b6c3b15c8b
|
@ -5,8 +5,8 @@ title: ''
|
|||
labels: Bug
|
||||
assignees: ''
|
||||
---
|
||||
<!--
|
||||
NOTE: Please use Discussions for all incorrect or unexpected language analysis or
|
||||
<!--
|
||||
NOTE: Please use Discussions for all incorrect or unexpected language analysis or
|
||||
statistics behaviour BEFORE opening a bug.
|
||||
|
||||
If you know how to fix this bug, please feel free to submit a Pull Request
|
||||
|
@ -14,11 +14,11 @@ NOTE: Please use Discussions for all incorrect or unexpected language analysis o
|
|||
-->
|
||||
|
||||
## Describe the bug
|
||||
<!--
|
||||
Please provide a clear and detailed explanation of the bug you've found, and why
|
||||
you consider it to be a bug.
|
||||
<!--
|
||||
Please provide a clear and detailed explanation of the bug you've found, and why
|
||||
you consider it to be a bug.
|
||||
|
||||
Ideally, please provide steps to reproduce the bug and include the output from
|
||||
Ideally, please provide steps to reproduce the bug and include the output from
|
||||
using `github-linguist` on the command line.
|
||||
-->
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ assignees: ''
|
|||
|
||||
<!--
|
||||
|
||||
👋 If you have the time and know-how, send us a pull-request: everybody is welcome to contribute!
|
||||
👋 If you have the time and know-how, send us a pull-request: everybody is welcome to contribute!
|
||||
Otherwise, fill out the following fields as best you can.
|
||||
|
||||
-->
|
||||
|
|
|
@ -23,7 +23,7 @@ The percentages are calculated based on the bytes of code for each language as r
|
|||
|
||||
## How Linguist works on GitHub.com
|
||||
|
||||
When you push changes to a repository on GitHub.com,
|
||||
When you push changes to a repository on GitHub.com,
|
||||
a low priority background job is enqueued to analyze the [default branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches#about-the-default-branch) of your repository as explained above.
|
||||
The results of this analysis are cached for the lifetime of your repository and are only updated when the repository is updated.
|
||||
As this analysis is performed by a low priority background job, it can take a while, particularly during busy periods, for your language statistics bar to reflect your changes.
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
|
||||
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
|
||||
* if you want the limit (max/min) macros for int types.
|
||||
* if you want the limit (max/min) macros for int types.
|
||||
*/
|
||||
#ifndef __STDC_LIMIT_MACROS
|
||||
#define __STDC_LIMIT_MACROS 1
|
||||
|
@ -260,7 +260,7 @@ typedef uint32_t flex_uint32_t;
|
|||
typedef signed char flex_int8_t;
|
||||
typedef short int flex_int16_t;
|
||||
typedef int flex_int32_t;
|
||||
typedef unsigned char flex_uint8_t;
|
||||
typedef unsigned char flex_uint8_t;
|
||||
typedef unsigned short int flex_uint16_t;
|
||||
typedef unsigned int flex_uint32_t;
|
||||
|
||||
|
@ -384,10 +384,10 @@ typedef size_t yy_size_t;
|
|||
#define EOB_ACT_CONTINUE_SCAN 0
|
||||
#define EOB_ACT_END_OF_FILE 1
|
||||
#define EOB_ACT_LAST_MATCH 2
|
||||
|
||||
|
||||
#define YY_LESS_LINENO(n)
|
||||
#define YY_LINENO_REWIND_TO(ptr)
|
||||
|
||||
|
||||
/* Return all but the first "n" matched characters back to the input stream. */
|
||||
#define yyless(n) \
|
||||
do \
|
||||
|
@ -1016,7 +1016,7 @@ extern int yywrap ( yyscan_t yyscanner );
|
|||
#endif
|
||||
|
||||
#ifndef YY_NO_UNPUT
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef yytext_ptr
|
||||
|
@ -2165,7 +2165,7 @@ static void yy_load_buffer_state (yyscan_t yyscanner)
|
|||
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
|
||||
{
|
||||
YY_BUFFER_STATE b;
|
||||
|
||||
|
||||
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
|
||||
if ( ! b )
|
||||
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
||||
|
@ -2231,7 +2231,7 @@ static void yy_load_buffer_state (yyscan_t yyscanner)
|
|||
}
|
||||
|
||||
b->yy_is_interactive = 0;
|
||||
|
||||
|
||||
errno = oerrno;
|
||||
}
|
||||
|
||||
|
@ -2373,7 +2373,7 @@ static void yyensure_buffer_stack (yyscan_t yyscanner)
|
|||
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
|
||||
{
|
||||
YY_BUFFER_STATE b;
|
||||
|
||||
|
||||
if ( size < 2 ||
|
||||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
|
||||
base[size-1] != YY_END_OF_BUFFER_CHAR )
|
||||
|
@ -2409,7 +2409,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscann
|
|||
*/
|
||||
YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
|
||||
{
|
||||
|
||||
|
||||
return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
|
||||
}
|
||||
|
||||
|
@ -2426,7 +2426,7 @@ YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan
|
|||
char *buf;
|
||||
yy_size_t n;
|
||||
int i;
|
||||
|
||||
|
||||
/* Get memory for full buffer, including space for trailing EOB's. */
|
||||
n = (yy_size_t) (_yybytes_len + 2);
|
||||
buf = (char *) yyalloc( n , yyscanner );
|
||||
|
@ -2499,7 +2499,7 @@ int yyget_lineno (yyscan_t yyscanner)
|
|||
|
||||
if (! YY_CURRENT_BUFFER)
|
||||
return 0;
|
||||
|
||||
|
||||
return yylineno;
|
||||
}
|
||||
|
||||
|
@ -2512,7 +2512,7 @@ int yyget_column (yyscan_t yyscanner)
|
|||
|
||||
if (! YY_CURRENT_BUFFER)
|
||||
return 0;
|
||||
|
||||
|
||||
return yycolumn;
|
||||
}
|
||||
|
||||
|
@ -2574,7 +2574,7 @@ void yyset_lineno (int _line_number , yyscan_t yyscanner)
|
|||
/* lineno is only valid if an input buffer exists. */
|
||||
if (! YY_CURRENT_BUFFER )
|
||||
YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
|
||||
|
||||
|
||||
yylineno = _line_number;
|
||||
}
|
||||
|
||||
|
@ -2589,7 +2589,7 @@ void yyset_column (int _column_no , yyscan_t yyscanner)
|
|||
/* column is only valid if an input buffer exists. */
|
||||
if (! YY_CURRENT_BUFFER )
|
||||
YY_FATAL_ERROR( "yyset_column called with no buffer" );
|
||||
|
||||
|
||||
yycolumn = _column_no;
|
||||
}
|
||||
|
||||
|
@ -2807,6 +2807,3 @@ void yyfree (void * ptr , yyscan_t yyscanner)
|
|||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
#line 173 "tokenizer.l"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -246,7 +246,7 @@
|
|||
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
|
||||
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
|
||||
* if you want the limit (max/min) macros for int types.
|
||||
* if you want the limit (max/min) macros for int types.
|
||||
*/
|
||||
#ifndef __STDC_LIMIT_MACROS
|
||||
#define __STDC_LIMIT_MACROS 1
|
||||
|
@ -263,7 +263,7 @@ typedef uint32_t flex_uint32_t;
|
|||
typedef signed char flex_int8_t;
|
||||
typedef short int flex_int16_t;
|
||||
typedef int flex_int32_t;
|
||||
typedef unsigned char flex_uint8_t;
|
||||
typedef unsigned char flex_uint8_t;
|
||||
typedef unsigned short int flex_uint16_t;
|
||||
typedef unsigned int flex_uint32_t;
|
||||
|
||||
|
|
|
@ -171,4 +171,3 @@
|
|||
.|\n { /* nothing */ }
|
||||
|
||||
%%
|
||||
|
||||
|
|
|
@ -5,5 +5,3 @@ cd "$(dirname "$0")/.."
|
|||
rm -rf ./linguist-grammars
|
||||
./script/grammar-compiler compile -o linguist-grammars || true
|
||||
tar -zcvf linguist-grammars.tar.gz linguist-grammars
|
||||
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ class TestSamples < Minitest::Test
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def case_insensitive_glob(extension)
|
||||
glob = ""
|
||||
extension.each_char do |c|
|
||||
|
|
Загрузка…
Ссылка в новой задаче