mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
8ff885a3a8
Closes #17 Implements the IsGenerated helper function to filter out generated files using the rules and matchers in: - https://github.com/github/linguist/blob/master/lib/linguist/generated.rb Since the vast majority of matchers have very different logic, it cannot be autogenerated directly from linguist like other logics in enry, so it's translated by hand. There are three different types of matchers in this implementation: - By extension, which mark as generated based only in the extension. These are the fastest matchers, so they're done first. - By file name, which matches patterns against the filename. These are performed in second place. Unlike linguist, we try to use string functions instead of regexps as much as possible. - Finally, the rest of the matchers, which go into the content and try to identify if they're generated or not based on the content. Unlike linguist, we try to only read the content we need and not split it all unless it's necessary and use byte functions instead of regexps as much as possible. Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
48 lines
2.0 KiB
HTML
48 lines
2.0 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>Asm Mode - GNU Emacs Manual</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="description" content="GNU Emacs Manual">
|
|
<meta name="generator" content="makeinfo 4.8">
|
|
<link title="Top" rel="start" href="index.html#Top">
|
|
<link rel="up" href="Programs.html#Programs" title="Programs">
|
|
<link rel="prev" href="C-Modes.html#C-Modes" title="C Modes">
|
|
<link rel="next" href="Fortran.html#Fortran" title="Fortran">
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
<!--
|
|
This is the `GNU Emacs Manual',
|
|
updated for Emacs version {No value for `EMACSVER'}.
|
|
|
|
Copyright (C) 1985--1987, 1993--2019 Free Software Foundation, Inc.
|
|
|
|
Permission is granted to copy, distribute and/or modify this
|
|
document under the terms of the GNU Free Documentation License,
|
|
Version 1.3 or any later version published by the Free Software
|
|
Foundation; with the Invariant Sections being ``The GNU
|
|
Manifesto,'' ``Distribution'' and ``GNU GENERAL PUBLIC LICENSE,''
|
|
with the Front-Cover Texts being ``A GNU Manual,'' and with the
|
|
Back-Cover Texts as in (a) below. A copy of the license is
|
|
included in the section entitled ``GNU Free Documentation
|
|
License.''
|
|
|
|
(a) The FSF's Back-Cover Text is: ``You have the freedom to copy
|
|
and modify this GNU manual. Buying copies from the FSF supports
|
|
it in developing GNU and promoting software freedom.''
|
|
-->
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<style type="text/css"><!--
|
|
pre.display { font-family:inherit }
|
|
pre.format { font-family:inherit }
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
|
pre.smallexample { font-size:smaller }
|
|
pre.smalllisp { font-size:smaller }
|
|
span.sc { font-variant:small-caps }
|
|
span.roman { font-family:serif; font-weight:normal; }
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
|
--></style>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|