PageRenderTime 63ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/src/html/tags/r/Ruby.php

http://github.com/facebook/xhp
PHP | 19 lines | 9 code | 1 blank | 9 comment | 0 complexity | f35c22ac8ee021d2c9337e8ce59a9f16 MD5 | raw file
Possible License(s): MIT, MPL-2.0-no-copyleft-exception
  1. <?hh // strict
  2. /*
  3. * Copyright (c) 2015, Facebook, Inc.
  4. * All rights reserved.
  5. *
  6. * This source code is licensed under the BSD-style license found in the
  7. * LICENSE file in the root directory of this source tree. An additional grant
  8. * of patent rights can be found in the PATENTS file in the same directory.
  9. *
  10. */
  11. class :ruby extends :xhp:html-element {
  12. category %flow, %phrase;
  13. children (
  14. (pcdata | :rb)+ |
  15. ((:rp, :rt) | (:rp, :rtc) | (:rt, :rp) | (:rtc, :rp))+
  16. );
  17. protected string $tagName = 'ruby';
  18. }