Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
added magic comments to warp sources to set up indentation in Emacs
Browse files Browse the repository at this point in the history
Test Plan:
  fbconfig -r warp && fbmake dev && fbmake runtests_dev
  # open some of the files in Emacs and see that it now automatically indents 4 spaces instead of 2

Reviewers: aalexandre, njormrod

Reviewed By: aalexandre

Subscribers: sdwilsh

Differential Revision: https://phabricator.fb.com/D1646276

Signature: t1:1646276:1420752359:192a01d4c2cd6141f98fa37401496cce6b130f18
  • Loading branch information
inglorion authored and markisaa committed Mar 29, 2015
1 parent b665719 commit f04461f
Show file tree
Hide file tree
Showing 20 changed files with 140 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charclass.d
Expand Up @@ -131,3 +131,10 @@ ubyte isMultiTok(uchar c) pure nothrow
{
return cclassTable[c] & CClass.multiTok;
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions cmdline.d
Expand Up @@ -196,3 +196,10 @@ unittest
assert(sysIndex == 4);
assert(paths == [".","a","b","d","e","c","f"]);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions constexpr.d
Expand Up @@ -762,3 +762,10 @@ unittest




/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions context.d
Expand Up @@ -938,3 +938,10 @@ unittest
"# 1 \"test.c\"\n# 1 \"test.c\"\n+def=3=* +\n");
// exit(0);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions directive.d
Expand Up @@ -1024,3 +1024,10 @@ void includeFile(R)(R ctx, IncludeType includeType, bool sysstring,
writeStatus(sf.cachedRead ? 'C' : ' ');
ctx.pushFile(sf, system, pathIndex, includeTrace);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions expanded.d
Expand Up @@ -156,3 +156,10 @@ struct Expanded(R)
lineBuffer.put(0);
}
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions file.d
Expand Up @@ -215,3 +215,10 @@ void myReadFree(void[] buf)
{
free(buf.ptr - SPAD);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions id.d
Expand Up @@ -202,3 +202,10 @@ struct Id
return hash;
}
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions lexer.d
Expand Up @@ -1113,3 +1113,10 @@ unittest
assert(lexer.front == TOK.eof);
}
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions loc.d
Expand Up @@ -74,3 +74,10 @@ struct LocList
Loc first;
LocList* rest;
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions macros.d
Expand Up @@ -1678,3 +1678,10 @@ void textPrint(const(uchar)[] s)
}
writeln(']');
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions main.d
Expand Up @@ -121,3 +121,10 @@ void err_warning(T...)(Loc loc, T args)
stderr.write("warning: ");
stderr.writefln(args);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions number.d
Expand Up @@ -486,3 +486,10 @@ unittest
s = s.skipFloat(bitbucket, false, false, true);
assert(s.empty);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions outdeps.d
Expand Up @@ -92,3 +92,10 @@ void dependencyFileWrite(string filename, string[] deps)
auto w = f.lockingTextWriter();
dependencyFileFormat(w, deps);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions ranges.d
Expand Up @@ -95,3 +95,10 @@ unittest
++i;
assert(buf[0 .. i] == "ab");
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions skip.d
Expand Up @@ -576,3 +576,10 @@ unittest
r2 = s2.skipBlankLine();
assert(r2.empty);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions sources.d
Expand Up @@ -207,3 +207,10 @@ void myBuildPath(R)(ref R buf, const(char)[] seg1, const(char)[] seg2)
buf.put(c);
}
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions stringlit.d
Expand Up @@ -334,3 +334,10 @@ unittest
assert(r.empty && n == 0x6162);
}
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions textbuf.d
Expand Up @@ -175,3 +175,10 @@ unittest
assert(textbuf.length == 0);
textbuf.free();
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/
7 changes: 7 additions & 0 deletions warpdrive.d
Expand Up @@ -180,3 +180,10 @@ int main(string[] args) {

return execvp(options[0], options);
}

/*
* Local Variables:
* mode: d
* c-basic-offset: 4
* End:
*/

0 comments on commit f04461f

Please sign in to comment.